10.09.2013, 09:24
How to detect a button being pressed:
Here's a link to all of the KEY_'s
https://sampwiki.blast.hk/wiki/GetPlayerKeys#Key_List
To detect if a command made in an area / zone:
Replace RANGE with the max distance from player to points ( PosX, Y and Z).
Good luck! REP if I helped
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
https://sampwiki.blast.hk/wiki/GetPlayerKeys#Key_List
To detect if a command made in an area / zone:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, RANGE, PosX, PosY, PosZ))
{
.... // code
}
Good luck! REP if I helped