PickUp
#1

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
Reply
#2

Yeah its possible!
Reply
#3

Can you give me an example?
Reply
#4

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;
}
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)