PDA

View Full Version : One Button


Er@x3r
03/10/2012, 04:01 PM
How to make commands like in CrazyBob's server with MMB you can give ticket or arrest peoples?



please help me :)

CmZxC
03/10/2012, 04:16 PM
Define you are looking for is KEY_LOOK_BEHIND.

The callback you are looking for is OnPlayerKeyStateChange.

The code you are looking for is below.


public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_LOOK_BEHIND)
{
// what happens if player pressed MMB / Numpad 1 ?
}
}

Er@x3r
03/10/2012, 04:24 PM
thanks man :)