Posts: 84
Threads: 20
Joined: Jun 2010
Reputation:
0
ok so i just want the basic code for when a player left clicks, right clicks, and middle mouse buttons. I know how to script and all but i've never used player buttons. If theres a wiki please post link b/c i have no idea what i'm even looking for. Thanks.
Posts: 84
Threads: 20
Joined: Jun 2010
Reputation:
0
well i read that and I might use that sometime, but like here... something simple. How do i make it to where when a player left clicks his health gets set to 0 using SetPlayerHealth(playerid,0); like i don't know if there's a OnPlayerLeftClick(playerid) callback or something like it.
Posts: 3,793
Threads: 196
Joined: Jan 2010
Reputation:
0
I dont think u can get a callback to get the persons Left Click
Posts: 545
Threads: 4
Joined: Dec 2006
Reputation:
0
there is OnPlayerClickPlayer but it only works for the score board witch is source 0
Posts: 84
Threads: 20
Joined: Jun 2010
Reputation:
0
Ettans, is there a list on wiki that shows all the keys?
Posts: 545
Threads: 4
Joined: Dec 2006
Reputation:
0
look in a_samp.inc in the include folder
#define KEY_....
Posts: 84
Threads: 20
Joined: Jun 2010
Reputation:
0
u can't i'm on my windows phone and i forgot to put pawno on there