OnPlayerEnterVehicle problem
#1

Hi, when I use OnPlayerEnterVehicle to send a message when this function is called,
the message shows up BEFORE the player has entered the vehicle.
What's the problem?
Reply
#2

use all your stuff in OnPlayerStateChange not at onplayerenter vehicle
Reply
#3

pawn Код:
if (newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
    {
// your message here
    }
Reply
#4

Check the wiki page at onplayerentervehicle.

It's useful for stuff like anti-teamjack etc. because it's called when the player issues the command to enter the vehicle(presses enter near one), not when he enters it.
Reply
#5

Thanks!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)