26.06.2014, 13:02
i want middle mouse button to be bind for /ar when cops press MMB ( middle mouse button ) with deagle by aiming on criminal the criminal got arrest
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
new targetid = INVALID_PLAYER_ID;
if (newkeys & KEY_LOOK_BEHIND && (targetid = GetPlayerTargetPlayer(playerid)) != INVALID_PLAYER_ID && GetPlayerWeapon(playerid) >= 24)
{
new
string[8];
format(string, sizeof(string), "%d", targetid);
cmd_ar(playerid, string);
}
return 1;
}