[HELP] Nitro and Repair system
#6

try this

pawn Код:
// on the top of your script
new pu;
Check this page https://sampwiki.blast.hk/wiki/CreatePickup
pawn Код:
// put this under OnGameModeInit
pu = CreatePickup(pickup id,pick up type ,X coordinate,Y coordinate,Z coordinate,virtual world id);
pawn Код:
// put this under OnPlayerPickUpPickup
if(pickupid == pu)
{
         if(IsPlayerInAnyVehicle(playerid))
         {
                RepairVehicle(playerid); // will repair your vehicle
                AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); // will add the nos
                return 1;
         }
         return 1;
}
NOTE : the codes are NOT compiled!
Reply


Messages In This Thread
[HELP] Nitro and Repair system - by arjanforgames - 22.01.2012, 15:21
Re: [HELP] Nitro and Repair system - by coole210 - 22.01.2012, 16:40
Re: [HELP] Nitro and Repair system - by niels44 - 22.01.2012, 17:57
Re: [HELP] Nitro and Repair system - by arjanforgames - 22.01.2012, 18:19
Re: [HELP] Nitro and Repair system - by arjanforgames - 24.01.2012, 12:46
Re: [HELP] Nitro and Repair system - by [KHK]Khalid - 24.01.2012, 14:12
Re: [HELP] Nitro and Repair system - by milanosie - 24.01.2012, 14:27
Re: [HELP] Nitro and Repair system - by iZN - 24.01.2012, 14:31
Re: [HELP] Nitro and Repair system - by arjanforgames - 24.01.2012, 19:43

Forum Jump:


Users browsing this thread: 1 Guest(s)