09.07.2010, 10:22
(
Последний раз редактировалось [XST]O_x; 09.07.2010 в 10:39.
)
You need all vehicle names first.
There you go:
http://pastebin.com/Gmfg72wk
Should work
EDIT: Hiddos was faster than me xD
But I'd recommend you using OnPlayerStateChange as I did,and not OnPlayerEnter/ExitVehicle as you guys did,since OnPlayerEnterVehicle calls the function when the player hits Enter/F button,and as for OnPlayerStateChange calls the function only after the player sits inside the vehicle.
There you go:
http://pastebin.com/Gmfg72wk
Should work
EDIT: Hiddos was faster than me xD
But I'd recommend you using OnPlayerStateChange as I did,and not OnPlayerEnter/ExitVehicle as you guys did,since OnPlayerEnterVehicle calls the function when the player hits Enter/F button,and as for OnPlayerStateChange calls the function only after the player sits inside the vehicle.