Restoring last positions
#9

Quote:
Originally Posted by Digii
Посмотреть сообщение
Anyone?
sorry i forgot the declaration and justjamie did float: i think its Float:

like this

PHP код:
CMD:spawn(playeridparams[])  
{  
    if(
gPlayerLogged[playerid] == 0) return SendClientMessage(playeridCOLOR_LIGHTRED"You need to login first.");  
    if(
IsPlayerConnected(playerid))  
    {  
          if (
PlayerInfo[playerid][pAdmin] >= 1)  
        {  
            new 
id,sendername[30],giveplayer[30],string[256];  
            if(
sscanf(params"u"id)) return SCM(playerid,COLOR_WHITE,"{FF9900}Scrie: {cef0ac}/spawn <Name/Playerid>");  
            {  
                if(
IsPlayerConnected(id))  
                {  
                    if(
id != INVALID_PLAYER_ID)  
                    {  
                        new 
Float:x,Float:y,Float:z
                        
GetPlayerName(idgiveplayersizeof(giveplayer));  
                        
GetPlayerPos(idxyz);   
                                                
SetPlayerPos(idxyz+5);  
                        
GetPlayerName(playeridsendernamesizeof(sendername));  
                         
format(stringsizeof(string), "* Admin %s has spawn-ed you."sendername);  
                        
SendClientMessage(idCOLOR_IN2string);  
                        
format(stringsizeof(string), "You have respawned %s."giveplayer);  
                        
SendClientMessage(playeridCOLOR_IN2string);  
                        
format(stringsizeof(string), "AdmCmd: %s has /spawn-ed %s.",sendernamegiveplayer);  
                        
ABroadCast(COLOR_ADMCMD,string,1);  
                        
HLChat(COLOR_ADMCMD,string);  
                        return 
1;  
                    }  
                }  
                else  
                {  
                    
SCM(playerid,COLOR_WHITE,"{FFFFCC}Error: Player not connected.");  
                }  
            }  
           }  
        else  
        {  
            
SendClientMessage(playeridCOLOR_ERRORAdminOnly);  
        }  
    }  
    return 
1;  

Reply


Messages In This Thread
Restoring last positions - by Digii - 09.06.2016, 11:41
Re: Restoring last positions - by SyS - 09.06.2016, 12:13
Re: Restoring last positions - by Digii - 09.06.2016, 12:18
Re: Restoring last positions - by SyS - 09.06.2016, 12:38
Re: Restoring last positions - by Digii - 09.06.2016, 13:33
Re: Restoring last positions - by justjamie - 09.06.2016, 13:56
Re: Restoring last positions - by Digii - 09.06.2016, 14:55
Re: Restoring last positions - by Digii - 11.06.2016, 11:51
Re: Restoring last positions - by SyS - 11.06.2016, 11:54
Re: Restoring last positions - by Digii - 12.06.2016, 21:22

Forum Jump:


Users browsing this thread: 1 Guest(s)