I need the code /c freeze all in GUPS
/c unfreezeall
else if (strcmp(cmd, "freezeall", true) == 0) {
if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
else if(!IsPlayerCommandLevel(playerid,"healall")) SendClientMessage(playerid, COLOR_RED, "You don't have access to use this command!");
else {
FreezeAll();
}
return 1;
}
Add this some where on the bottom of your script
Code:
stock FreezeAll()
{
for(new i = 0; i <= MAX_PLAYERS; i++) {
if(IsPlayerConnected(i) == 1) TogglePlayerControllable(i,1);
}
}
@Edit --
Thanks to everyone who helped me