Kolor Opublikowano Styczeń 20, 2017 o 20:24 Udostępnij Opublikowano Styczeń 20, 2017 o 20:24 Witam, Jeżeli post w złym dziale to przepraszam, Ale mam problem z plugin'em Iż mam plugin na TAG i jak pisze na "u" to tekst się pokazuje na czacie globalnym. Kod: if ((IsPlayerGenericAdmin(client)) && GetConVarBool(Tagsay)) { decl String:sTextToAll[1024]; GetCmdArgString(sTextToAll, sizeof(sTextToAll)); StripQuotes(sTextToAll); LogPlayerEvent(client, "say=", sTextToAll); new team = GetClientTeam(client); if(IsPlayerAlive(client) && team == 2 || team == 3) { for(new i = 1; i <= MaxClients; i++) { if(IsClientInGame(i) && sTextToAll[0] != '@' && sTextToAll[0] != '/' && sTextToAll[0] != '!') { new PlayersTeam = GetClientTeam(i); if(PlayersTeam & team && sTextToAll[0] > 0) { if(team == 2) PrintToChat(i, "\x01(Terrorysta) [\x02ADMIN\x01]\x05 %N \x01%s", client, sTextToAll); else PrintToChat(i, "\x01(Antyterrorysta) [\x02ADMIN\x01]\x05 %N \x01%s", client, sTextToAll); } } } } /* Player isn't alive and have team (no spec) */ else if(!IsPlayerAlive(client) && team == 2 || team == 3 && sTextToAll[0] != '@' && sTextToAll[0] != '/' && sTextToAll[0] != '!') { for(new i = 1; i <= MaxClients; i++) { if(IsClientInGame(i) && !IsPlayerAlive(i)) { new PlayersTeam = GetClientTeam(i); if(PlayersTeam & team && sTextToAll[0] > 0) { if(team == 2) PrintToChat(i, "\x01*NIE ŻYJE*(Terrorysta) [\x02ADMIN\x01]\x05 %N \x01%s", client, sTextToAll); else PrintToChat(i, "\x01*NIE ŻYJE*(Antyterrorysta) [\x02ADMIN\x01]\x05 %N \x01%s", client, sTextToAll); } } } } /* Player is in spectate */ else if(!IsPlayerAlive(client) && team != 2 && team != 3 && sTextToAll[0] != '@' && sTextToAll[0] != '/' && sTextToAll[0] != '!') { for(new i = 1; i <= MaxClients; i++) { if(IsClientInGame(i) && !IsPlayerAlive(i)) { new PlayersTeam = GetClientTeam(i); if(PlayersTeam & team && sTextToAll[0] > 0) { if(team == 2) PrintToChat(i, "\x01*OBSERWATOR*(Terrorysta) [\x02ADMIN\x01]\x05 %N \x01%s", client, sTextToAll); else PrintToChat(i, "\x01*OBSERWATOR*(Antyterrorysta) [\x02ADMIN\x01]\x05 %N \x01%s", client, sTextToAll); } } } } return Plugin_Handled; } Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi
Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto
Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.
Zarejestruj nowe konto
Załóż nowe konto. To bardzo proste!
Zarejestruj sięZaloguj się
Posiadasz już konto? Zaloguj się poniżej.
Zaloguj się