14.02.2015, 16:05
PHP код:
CMD:back(playerid,params[])
{
if(AFK[playerid] == 0)
{
return SendClientMessage(playerid,COLOR_RED,"You're Not In AFK To Use This Command");
}
new string[128];
new PNAME[MAX_PLAYER_NAME];
AFK[playerid] = 0;
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
SetPlayerHealth(playerid,OldHealth);
SetVehicleHealth(vehicleid,OldHealth);
SendClientMessage(playerid,GREEN,"You're Back From AFK");
GetPlayerName(playerid, PNAME, MAX_PLAYERS);
format(string, sizeof(string), "{ffff00}%s now back to keyboard", PNAME);
SendClientMessageToAll(COLOR_ORANGE,string);
TogglePlayerControllable(playerid,1);
return 1;
}

