How to make MMB /ar
#1

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
Reply
#2

Try:

pawn Код:
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;
}
Reply
#3

Ok i will check
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)