Right mouse Button + F = Tazer!
#2

Follow the // commented lines:

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;
}
Try it.
Reply


Messages In This Thread
Right mouse Button + F = Tazer! - by imagician - 07.10.2011, 21:31
Re: Right mouse Button + F = Tazer! - by grand.Theft.Otto - 07.10.2011, 21:44
Re: Right mouse Button + F = Tazer! - by Gamer_Z - 08.10.2011, 00:18
Re: Right mouse Button + F = Tazer! - by grand.Theft.Otto - 08.10.2011, 00:42

Forum Jump:


Users browsing this thread: 1 Guest(s)