SetSpawnInfo
#2

Make a new variable or something like
PHP код:
new bool:JustDied[MAX_PLAYERS]; 
when the player dies set it to true

PHP код:
JustDied[playerid] = true
and do something like?

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    if(
killerid != INVALID_PLAYER_ID)
    {
        
JustDied[playerid] = true;
    }
    return 
1;
}
public 
OnPlayerSpawn(playerid)
{
    if(
JustDied[playerid] == true)
    {
        
/*
            Just remove SetPlayerSkin and insert your code for them to select a skin.
        */
        
SetPlayerPos(playerid254.5229, -1367.154553.1094);
        
SetPlayerFacingAngle(playerid297.0670);
        
SetPlayerSkin(playerid51); // Biker Skin?
        
SetPlayerTeam(playeridpBikers);
        
JustDied[playerid] = false;
    }
    return 
1;

Reply


Messages In This Thread
SetSpawnInfo - by rambalili2 - 03.11.2015, 08:52
Re: SetSpawnInfo - by itsCody - 03.11.2015, 09:14
Re: SetSpawnInfo - by rambalili2 - 03.11.2015, 09:18
Re: SetSpawnInfo - by itsCody - 03.11.2015, 09:22
Re: SetSpawnInfo - by rambalili2 - 03.11.2015, 09:29
Re: SetSpawnInfo - by itsCody - 03.11.2015, 09:34
Re: SetSpawnInfo - by rambalili2 - 03.11.2015, 09:39
Re: SetSpawnInfo - by itsCody - 03.11.2015, 09:43
Re: SetSpawnInfo - by rambalili2 - 03.11.2015, 09:44
Re: SetSpawnInfo - by Vince - 03.11.2015, 10:00

Forum Jump:


Users browsing this thread: 1 Guest(s)