10.01.2016, 10:04
Why he should aim to get the job lol, about Y you can use OnPlayerKeyStateChange
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
Also Y button is KEY_YES
https://sampwiki.blast.hk/wiki/Keys
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
Also Y button is KEY_YES
https://sampwiki.blast.hk/wiki/Keys
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys & KEY_YES) { if(IsPlayerInRangeOfPoint(playerid, 10.0, actorX, actorY, actorZ)) { // Get Job } } return 1; }