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

Quote:
Originally Posted by RogueDrifter
View Post
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.
It's best to try non-time checking methods first.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)