03.10.2012, 16:16
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.
The callback you are looking for is OnPlayerKeyStateChange.
The code you are looking for is below.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_LOOK_BEHIND)
{
// what happens if player pressed MMB / Numpad 1 ?
}
}