SA-MP Forums Archive
Death problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Death problem (/showthread.php?tid=321827)



Death problem - No Fear - 28.02.2012

pawn Код:
if( killerid == INVALID_PLAYER_ID )
    {
        SendDeathMessage( INVALID_PLAYER_ID, playerid, reason );
        GameTextForPlayer( playerid, "~r~N~r~~h~e~r~g~r~~h~y~r~v~r~~h~a~r~~h~s!" , 2, 2 );
        SetSpawnInfo( playerid,GetPlayerTeam( playerid ),GetPlayerSkin( playerid ),-2645.6074,697.1324,27.9375,356.4937,0,0,0,0,0,0 );
        print( "Lol 2" );
    }else{
        StartSpawnFunction      ( playerid );
        print( "Lol 1" );
        SendDeathMessage( killerid, playerid, reason );

    }

    if( InGameCheck[ killerid ] || InGameCheck[ playerid ] )
    {
        StartSpawnFunction      ( playerid );
        print( "Lol 3" );
    }
It's not working when i kill my friend and we both have InGameCheck true, "system shows he suicided print( "Lol 2" ); What's the problem?