Back command help
#2

top of your script
pawn Код:
bool:IsPlayerAFK[MAX_PLAYERS];
pawn Код:
CMD:back(playerid,params[])
{
 if(IsPlayerAfk[playerid] == false) return SendClientMessage(playerid, -1, "{FF0000}[SERVER]{ffffff}:You are not AFK");
 if(IsPlayerAfk[playerid] == true) TogglePlayerControllable(playerid,1);
 IsPlayerAFK[playerid] = false;
 return 1;
}
and show your afk cmd, just in-case.
Reply


Messages In This Thread
Back command help - by YanLanger - 11.10.2014, 05:45
Re: Back command help - by GwENiko - 11.10.2014, 05:56
Re: Back command help - by YanLanger - 11.10.2014, 05:57
Re: Back command help - by Shaktimaan - 11.10.2014, 05:57
Re: Back command help - by Stinged - 11.10.2014, 05:59
Re: Back command help - by GwENiko - 11.10.2014, 06:00
Re: Back command help - by YanLanger - 11.10.2014, 06:00
Re: Back command help - by Shaktimaan - 11.10.2014, 06:00
Re: Back command help - by GwENiko - 11.10.2014, 06:02
Re: Back command help - by Stinged - 11.10.2014, 06:03

Forum Jump:


Users browsing this thread: 3 Guest(s)