pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/congelartds", true) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
TogglePlayerControllable(i, 0);
return 1;
}
if(strcmp(cmdtext, "/desongelartds", true) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
TogglePlayerControllable(i, 1);
return 1;
}
return 0;
}