SA-MP Forums Archive
PickUp - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: PickUp (/showthread.php?tid=201188)



PickUp - Drowzz - 20.12.2010

Hello,
Is it possible in Sa-Mp
That when a player drives trough an pick-up, that the pickup give the player Nitro/Nos?
It would be nice!

Drowzz


Re: PickUp - [Lsrcr]Hoss - 20.12.2010

Yeah its possible!


Re: PickUp - Drowzz - 20.12.2010

Can you give me an example?


Re: PickUp - blackwave - 20.12.2010

pawn Код:
if(pickupid == pickup) // Have to define the pickup on the top
{
   new id = GetPlayerVehicleID(playerid);
   if(IsPlayerInAnyVehicle(playerid)) return AddVehicleComponent(id, 1058);
   return 1;
}



Re: PickUp - Babul - 20.12.2010

you could need to know the https://sampwiki.blast.hk/wiki/PickupTypes pickup type 14 will do fine for vehicles...