Toggleplayercontrollable question?
#1

is there any way to get the player's state if he is freeze or set to toggleplayercontrollable(playerid, 0)?
Reply
#2

Variables.


pawn Код:
new IsFrozen[MAX_PLAYERS];

//freeze command here.

//AFTER the TogglePlayerControllable:
IsFrozen[playerid] = 1; //sets it to one. So they're frozen
You can pretty much use the above:
pawn Код:
if(IsFrozen[playerid] == 1) //something
if(IsFrozen[playerid] == 0) //something
Reset them OnPlayerDisconnect too.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)