IsPlayerInAnyVehicle(playerid) in OnPlayerDeath - 0.3-DL
#4

Its not a bug, i mean, when they die they simple get ejected out, OnPlayerDeath is called the moment they die (once they exit the vehicle).

Although, OnPlayerStateChange can be very helpful, set a timer of 1500MS to see when a player has just gotten out of a vehicle if (newstate == 1 && (oldstate == 3 || oldstate == 2) ) to set a variable true and set it false after 1500MS to see when the player has just gotten out, then check for that variable's value at OnPlayerDeath.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)