Detecting if a player died...
#5

I had the same idea. But I'm using
pawn Code:
OnPlayerSpawn
This is what I actually have under OnPlayerDeath:
pawn Code:
if(IsPlayerInAnyVehicle(playerid))
                {
                    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
                    {
                        new veh = GetPlayerVehicleID(playerid);
                        new Float:vdPos[4];
                        GetVehiclePos(veh, vdPos[0], vdPos[1], vdPos[2]);
                        GetVehicleZAngle(veh, vdPos[3]);

                        RemovePlayerFromVehicle(playerid);
                        SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], vdPos[0], vdPos[1], vdPos[2], vdPos[3], 0, 0, 0, 0, 0, 0);
                    }
                }
Reply


Messages In This Thread
Detecting if a player died... - by Eyce - 13.12.2014, 21:45
Re: Detecting if a player died... - by FullCircle - 13.12.2014, 21:54
Re: Detecting if a player died... - by Eyce - 13.12.2014, 22:27
Re: Detecting if a player died... - by Abagail - 13.12.2014, 22:29
Re: Detecting if a player died... - by Eyce - 13.12.2014, 22:32
Re: Detecting if a player died... - by FullCircle - 13.12.2014, 23:01
Re: Detecting if a player died... - by Eyce - 13.12.2014, 23:24
Re: Detecting if a player died... - by FullCircle - 13.12.2014, 23:39

Forum Jump:


Users browsing this thread: 1 Guest(s)