19.11.2018, 18:55
pawn Код:
ACMD:congelarevento[1](playerid, params[])
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(e_Participando[i] == true)
{
TogglePlayerControllable(i, 0);
}
}
new str[544];
format(str, sizeof(str), "[ > ] O Administrador {FFFFFF}%s{00D0F6} congelou todos participantes do evento!", name);
SendClientMessageToAll(COLOR_LIGHTBLUE, str);
return 1;
}
it is meant to freeze only those who are participating in the event, so I did a check, in case you are participating in the event is as (true), following the command, it was supposed for everyone who is participating to be frozen, but that does not happen, you know why?