Mr Rooster Opublikowano Grudzień 6, 2017 o 21:29 Udostępnij Opublikowano Grudzień 6, 2017 o 21:29 Chciałbym przerobić jeden plugin wygląda on tak: Spoiler #include <sourcemod> #include <cstrike> #define REQUIRE_PLUGIN #include <hl_gangs> #pragma newdecls required #pragma semicolon 1 public Plugin myinfo = { name = "[CS:GO/CS:S] Jailbreak Gangs Clan Tags", author = "Headline", description = "Gangs clan tag extension", version = GANGS_VERSION, url = "http://michaelwflaherty.com" }; public void OnPluginStart() { HookEvent("player_spawn", Event_PlayerSpawn); AddCommandListener(Command_JoinTeam, "jointeam"); for (int i = 0; i < MaxClients; i++) { if (IsValidClient(i)) { SetClientClanTag(i); } } } public void OnClientPutInServer(int client) { SetClientClanTag(client); } public Action Command_JoinTeam(int client, const char[] command, int argc ) { SetClientClanTag(client); } public Action Event_PlayerSpawn(Event event, const char[] name, bool dontBroadcast) { int client = GetClientOfUserId(event.GetInt("userid")); if (!IsValidClient(client)) { return Plugin_Continue; } SetClientClanTag(client); return Plugin_Continue; } void SetClientClanTag(int client) { if (!IsValidClient(client)) { return; } if (Gangs_HasGang(client)) { char gangName[256]; Gangs_GetGangName(client, gangName, sizeof(gangName)); CS_SetClientClanTag(client, gangName); } else { CS_SetClientClanTag(client, "[Plac Zabaw]"); } } bool IsValidClient(int client, bool bAllowBots = false, bool bAllowDead = true) { if (!(1 <= client <= MaxClients) || !IsClientInGame(client) || (IsFakeClient(client) && !bAllowBots) || IsClientSourceTV(client) || IsClientReplay(client) || (!bAllowDead && !IsPlayerAlive(client))) { return false; } return true; } Potrzebuję by tag wyświetlał się przed nickiem a nie w tabeli jest to dla mnie bardzo ważne , przed nickiem ma się wyświetlać "[{gang}]" w miejsce {gang} nazwe gangu , osoby bez gangu nie mają mieć nic dopisane Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Mr Rooster Opublikowano Grudzień 7, 2017 o 10:05 Autor Udostępnij Opublikowano Grudzień 7, 2017 o 10:05 Zaloguj się lub zarejestruj aby zobaczyć zawartość. Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
xBonio | AS Opublikowano Grudzień 7, 2017 o 18:32 Udostępnij Opublikowano Grudzień 7, 2017 o 18:32 Zaloguj się lub zarejestruj aby zobaczyć zawartość. 1 Podziękuj! ArenaSkilla.pl Sieć serwer CS 1.6 i CS:GO Pluginy na Twój serwer! Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
owner_2019 Opublikowano Listopad 23, 2019 o 09:57 Udostępnij Opublikowano Listopad 23, 2019 o 09:57 Zaloguj się lub zarejestruj aby zobaczyć zawartość. Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi