05.11.2011, 19:51
pawn Код:
if(strcmp(cmdtext, "/nickoff", true) == 0)
{
for(new i; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i))
ShowPlayerNameTagForPlayer(playerid, i, 0);
SendClientMessage(playerid, 0xFF9900AA, "(INFO): Nicks desativados !");
GameTextForPlayer(playerid,"~w~Nicks ~r~Desativados",1000,6);
gNameTags[playerid] = 0;
}
return 1;
}
if(strcmp(cmdtext, "/nickon", true) == 0)
{
for(new i; i < MAX_PLAYERS; i++)
if(IsPlayerConnected(i))
ShowPlayerNameTagForPlayer(playerid, i, 1);
SendClientMessage(playerid, 0xFF9900AA, "(INFO): Nicks ativados !");
GameTextForPlayer(playerid,"~w~Nicks ~g~Ativado",1000,6);
gNameTags[playerid] = 1;
}
return 1;
}