22.06.2013, 21:35
Quote:
|
You'll have to use OnPlayerKeyStateChange to detect them pressing ENTER* then call OnPlayerEditObject with CallLocalFunction.
* Keys don't work on actual keys, but assignments. You example, you can detect when a player presses SPRINT, the assignment, but not for example the spacebar. You'd have to use KEY_SECONDARY_ATTACK (which is the vehicle enter/exit assignment). This is ENTER/F by default but can be changed. pawn Код:
|
pawn Код:
if(newkeys == KEY_SECONDARY_ATTACK)


