07.10.2011, 21:44
Follow the // commented lines:
Try it.
pawn Код:
// Defining KEY_AIM (right mouse button), as it is not defined in the SA-MP includes)
// place at the top of your script:
#define KEY_AIM (128)
// Under OnPlayerKeyStateChange
if(newkeys == KEY_AIM && newkeys == KEY_SECONDARY_ATTACK) // i think KEY_AIM is RMB and SECONDARY_ATTACK is the F key
{
// tazer code here
return 1;
}