11.10.2014, 06:00
pawn Код:
CMD:afk(playerid, params[])
{
if(IsPlayerAfk[playerid] == 0){
IsPlayerAfk[playerid] = 1;
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "~g~AFK",5000,3);
}
return 1;
}
CMD:back(playerid,params[])
{
if(IsPlayerAfk[playerid] == 0) return SendClientMessage(playerid, -1, "{FF0000}[SERVER]{ffffff}:You are not AFK");
if(IsPlayerAfk[playerid] == 1)
{
IsPlayerAfk[playerid] = 0;
TogglePlayerControllable(playerid,1);
}
return 1;
}