HELP PLEASE
#4

I dont know what u want exactly
I use this to respawn someone
PHP код:
    //=========================================================================================================
if(strcmp(cmd"/respawn"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_GRAD2"USAGE: /respawn [playerid/PartOfName]");
                return 
1;
            }
            new 
playa;
            
playa ReturnUser(tmp);
            if (
PlayerInfo[playerid][pAdmin] >= 1)
            {
                if(
IsPlayerConnected(playa))
                {
                    if(
playa != INVALID_PLAYER_ID)
                    {
                        
//if(SpawnChange[playerid])
                        
{
                            
GetPlayerName(playagiveplayersizeof(giveplayer));
                            
ResetPlayerTofang(playa);
                            
SetSpawnKol(playa);
                            
SpawnPlayer(playa);
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            
format(stringsizeof(string), "* You have respawned %s"giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTREDstring);
                            
format(stringsizeof(string), "* You have been respawned by Admin %s"sendername);
                            
SendClientMessage(playaCOLOR_LIGHTREDstring);
                            
format(string256"AdmWarning: {FFFFFF}%s has respawned the {FFFFFF}%s"sendernamegiveplayer);
                            
ABroadCast(COLOR_YELLOW,string,1);
                            return 
1;
                        }
                    }
                }
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GREEN"Error: Your Admin level isn't high enough to use this command!");
            }
        }
        return 
1;
    }
//---------------------- 
Reply


Messages In This Thread
HELP PLEASE - by DAREL - 13.05.2016, 21:31
Re: HELP PLEASE - by Dayrion - 13.05.2016, 21:34
Re: HELP PLEASE - by Darkwood17 - 13.05.2016, 21:55
Re: HELP PLEASE - by BloodyDexter - 13.05.2016, 22:03
Re: HELP PLEASE - by Darkwood17 - 13.05.2016, 22:11
Re: HELP PLEASE - by Dayrion - 13.05.2016, 22:13
Re: HELP PLEASE - by BloodyDexter - 13.05.2016, 22:14
Re: HELP PLEASE - by Darkwood17 - 13.05.2016, 22:24

Forum Jump:


Users browsing this thread: 2 Guest(s)