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;
}