[Ajuda] AFK Sistema
#3

PHP код:
new bool:AFK[MAX_PLAYERS];
CMD:afk(playerid)
{
    new 
string[64];
    if(!
AFK[playerid])
    {
        
SetPlayerPos(playerid322.197998,302.497985,999.148437);
        
SetPlayerInterior(playerid5);
        
SetPlayerHealth(playerid9999);
        
ResetPlayerWeapons(playerid);
        
AFK[playerid] = true;
        
format(stringsizeof string"o Jogador (%s) Estб no /AFK"PlayerName(playerid));
        
SendClientMessageToAll(COR_ERROstring);
    }
    else
    {
        
SpawnPlayer(playerid);
        
SetPlayerInterior(playerid0);
        
SetPlayerHealth(playerid100);
        
SetPlayerArmour(playerid100);
        
AFK[playerid] = false;
        
format(stringsizeof string"o Jogador (%s) Saiu Do AFK /sairafk"PlayerName(playerid));
        
SendClientMessageToAll(COR_ERROstring);
    }
    return 
1;

Reply


Messages In This Thread
AFK Sistema - by JuniorTheDM - 24.07.2015, 00:19
Re: AFK Sistema - by iMFear - 24.07.2015, 00:24
Re: AFK Sistema - by Thider - 24.07.2015, 00:26
Re: AFK Sistema - by Thider - 24.07.2015, 00:31
Re: AFK Sistema - by s4kuL - 24.07.2015, 00:36

Forum Jump:


Users browsing this thread: 1 Guest(s)