#7

pawn Код:
new Died[ MAX_PLAYERS ];

public OnPlayerConnect( playerid )
{
    Died[ playerid ] = 0;
    return 1;
}

public OnPlayerDeath( playerid, killerid, reason )
{
    Died[ playerid ] = 1;
    return 1;
}

public OnPlayerSpawn( playerid )
{
    if( Died[ playerid ] == 1 && DMZone[ playerid ] == 1 )
    {
      DMZone[ playerid ] = 0; // Incase you want to unset it.
        SetPlayerPos(playerid, 2520.8533, -1677.9012, 15.1480);
        SetPlayerFacingAngle(playerid, 94.3242);
        Died[ playerid ] = 0;
       
    }
   
    return 1;
}
Just add on to it, instead of pasting my code over all of yours.
Reply


Messages In This Thread
Help - by [WF]Demon - 02.03.2010, 12:42
Re: Help - by aircombat - 02.03.2010, 12:47
Re: Help - by aircombat - 02.03.2010, 12:51
Re: Help - by [WF]Demon - 02.03.2010, 13:00
Re: Help - by SpiderPork - 02.03.2010, 13:02
Re: Help - by [WF]Demon - 02.03.2010, 13:35
Re: Help - by Calgon - 02.03.2010, 14:21

Forum Jump:


Users browsing this thread: 3 Guest(s)