12.12.2012, 18:43
Quote:
https://sampwiki.blast.hk/wiki/OnPlayerEnterVehicle
or: https://sampwiki.blast.hk/wiki/OnPlayerStateChange https://sampwiki.blast.hk/wiki/RemovePlayerFromVehicle Then something like "new privatecar[MAX_VEHICLES];" (= playerid). OnPlayerEnterVehicle: if(privatecar[vehicleid] == playerid) -> Everything is okey, else -> RemovePlayerFromVehicle OnPlayerStateChange: if (newstate == PLAYER_STATE_DRIVER) -> if(privatecar[vehicleid] == playerid) -> Everything is okey, else -> RemovePlayerFromVehicle Notes: - Only for the driver or for both (driver and passengers)? -> See wiki (ispassenger,states) - OnPlayerEnterVehicle only works if you "press f (or another key)", but if you get teleported into the car it doesnt work!) |
![Smiley](images/smilies/smile.png)