vehilce nitro
#3

pawn Код:
#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (PRESSED(KEY_FIRE))
    {
        if (IsPlayerInAnyVehicle(playerid))
        {
            new gpvi = GetPlayerVehicleID(playerid);
            RemoveVehicleComponent(gpvi, 1010);
            AddVehicleComponent(gpvi, 1010);
        }
    }
    return 1;
}
Reply


Messages In This Thread
vehilce nitro - by JEkvall95 - 27.09.2012, 16:23
Re: vehilce nitro - by newbienoob - 27.09.2012, 16:25
Re: vehilce nitro - by Danyal - 27.09.2012, 16:29

Forum Jump:


Users browsing this thread: 2 Guest(s)