[FilterScript] Ehab1911's Nitrous
#1

Hello, Today I've decided to make some kind of a new Nitrous System by using the OnPlayerKeyStateChange, I've successfully made it, I am so happy, So proud!!

If you want to install it in your GM or as an FS:

ADD THIS TO THE TOP OF YOUR SCRIPT:

pawn Code:
#define RELEASED(%0) \
    ((newkeys & (%0)) == (%0))
#define HOLDING(%3) \
    ((newkeys & (%3)) == (%3))

AND REPLACE THIS:

pawn Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (HOLDING( KEY_FIRE ))
    {
        if (IsPlayerInAnyVehicle(playerid))
        {
            AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
        }
            else if (RELEASED(KEY_FIRE))
    {
            RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1010);
            //RemoveVehicleComponent(playerid, 1010);
    }
}
    return 1;
}
THIS WILL WORK LIKE THE POLICE SIRENS, IF YOU CLICK TIGHTLY-HARD ON THE MOUSE BUTTON, NITROUS STARTS, AND IF YOU PRESS/RELEASE YOUR FINGER FROM IT SOFTLY-NICE IT STOPS ..


Tell me what do you think about it, and Enjoy using it :']
Reply


Messages In This Thread
Ehab1911's Nitrous - by Ehab1911 - 13.06.2011, 14:43
Re: Ehab1911's Nitrous - by The Taker - 13.06.2011, 14:47
Re: Ehab1911's Nitrous - by Ehab1911 - 13.06.2011, 14:48
Re: Ehab1911's Nitrous - by Iphone1234g - 13.06.2011, 15:35
Re: Ehab1911's Nitrous - by Ehab1911 - 13.06.2011, 15:47
Re: Ehab1911's Nitrous - by BASITJALIL - 13.06.2011, 16:50
Re: Ehab1911's Nitrous - by Ehab1911 - 13.06.2011, 16:56
Respuesta: Ehab1911's Nitrous - by alfredo[TgR] - 13.06.2011, 22:43
Re: Ehab1911's Nitrous - by Ehab1911 - 14.06.2011, 07:49

Forum Jump:


Users browsing this thread: 1 Guest(s)