[Tutorial] Anti driver drive-by ( simple + very explaind )
#9

Quote:
Originally Posted by Chrisis
View Post
that will remove his weapon the time he press ENTER , not the time he enter the vehicle . if he is fast enough he can equip his weapon another time before he gets in the car . in simple words ,,, no
So just use this?
This is a tutorial, you should know about PLAYER_STATE_PASSENGER before presenting people with half-assed solutions.

pawn Code:
public OnPlayerStateChanged(playerid, newstate, oldstate) {
    if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER) {
        // code
    }
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)