28.10.2009, 04:17
is it seem possible if i try for example click on a textdraw and it will do a function? if not what r can i find some key strings? dont think im no newbie ive been scripting for over a year since july of 2008
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){ if (PRESSED(KEY_FIRE)){ new vehicleid = GetPlayerVehicleID(playerid); if (vehicleid){ AddVehicleComponent(vehicleid, 1010);}} return 1;}
Originally Posted by Kye
The keys are a set of bits. Multiple keys/buttons can be pressed at the same time. So rather than using == or - you should use bitwise &.
pawn Code:
pawn Code:
pawn Code:
|