17.02.2018, 21:48
PHP код:
new BlockedPlayer[MAX_PLAYERS];
public OnPlayerText(playerid, text[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && BlockedPlayer[i] != playerid)
{
//mensagem
}
}
return 1;
}
//OnPlayerConnect
BlockedPlayer[playerid] = -1;
//OnPlayerDisconnect
for(new i = 0; i < MAX_PLAYERS; i++) if(BlockedPlayer[i] == playerid) BlockedPlayer[i] = -1;