binding fix+nitro
#7

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_SUBMISSION) /// This will add 10x NOS to the car and repair it if player is in a car.
    {
        if(adminlevel[playerid] < 1) return 1;
        else if(!IsPlayerInAnyVehicle(playerid)) return 1;
        else
        {
            AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
            RepairVehicle(GetPlayerVehicleID(playerid));
            SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
            return 1;
        }
    }
    return 1;
}
About Correct Indention!
http://forum.sa-mp.com/index.php?topic=61893.0
Reply


Messages In This Thread
binding fix+nitro - by jamesbond007 - 02.12.2009, 09:36
Re: binding fix+nitro - by Cedimedi - 02.12.2009, 09:54
Re: binding fix+nitro - by dice7 - 02.12.2009, 10:10
Re: binding fix+nitro - by _Sami_ - 02.12.2009, 10:53
Re: binding fix+nitro - by dice7 - 02.12.2009, 11:11
Re: binding fix+nitro - by _Sami_ - 02.12.2009, 11:38
Re: binding fix+nitro - by Djiango - 02.12.2009, 12:10
Re: binding fix+nitro - by Cedimedi - 02.12.2009, 12:46
Re: binding fix+nitro - by _Sami_ - 02.12.2009, 19:54

Forum Jump:


Users browsing this thread: 4 Guest(s)