24.06.2009, 10:08
dude ... TogglePlayerControllable(playerid,0) will always return 1 that is true and so you will always get that message .......... You have to create a variable at the stating like
And the place where you have your afk code .... add something like this
now you can run it like this
Thank You
Abhinav![Wink](images/smilies/wink.png)
Код:
new bool:IsPlayerFreezed[MAX_PLAYERS]=false;
Код:
IsPlayerFreezed[playerid]=true;
Код:
if (IsPlayerFreezed[playerid])) return SendClientMessage(playerid,0xFF000FFF,"You are already freezed"); // Below this goes your BACK code ////// // add this one in BACK code too // IsPlayerFreezed[playerid]=false; TogglePlayerControllable(playerid,1); SendClientMessage(playerid,0xFF000FFF,"You have been un-freezed"); return 1;
Abhinav
![Wink](images/smilies/wink.png)