13.12.2014, 22:32
I had the same idea. But I'm using
This is what I actually have under OnPlayerDeath:
pawn Code:
OnPlayerSpawn
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);
}
}