10.10.2014, 09:56
create a global variable
On Top
In your freeze command, When you freeze someone add this
And when un-freezing check
under /unfreeze command
Note: This will not work, it's just example. So don't copy it.
On Top
pawn Код:
new Freezed[MAX_PLAYERS];
pawn Код:
Freezed[playerid] = 1;
under /unfreeze command
pawn Код:
CMD:unfreeze(playerid, params[])
{
new id;
if(Freezed[playerid] == 1) //Means player is Frozen
{
TogglePlayerControlable(id, true); //Unfreeze player
}
else // Means player is not frozen
{
SendClientMessage(playerid, -1, "Player is not frozen");
}
return 1;
}