07.07.2012, 17:58
In vehicle Mouse Wheel Detection
KEY_CTRL_BACK is used to detect mouse wheel scrolling backwards in vehicle
pawn Код:
#define KEY_MOUSE_SCROLL_CLICK (320) // VEHICLE ONLY
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == 320)
{
SendClientMessage(playerid, -1, "Mouse-click.");
}
return 1;
}