Pick-up
#1

I am made pich-up (weapons),but whan I give pich-up - no bullets.
Код:
AddStaticPickup(351,23,332.2947,-1482.3806,76.5391);
Reply
#2

try use this https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup
Reply
#3

like jumbo sad
you will need OnPlayerPickUpPickup

Becouse when you do AddStaticPickup it will just add it and when u go over it
it will not know what to do so thats what OnPlayerPickUpPickup is for

EXAMPLE how to use it
pawn Код:
//have your pickup created
new pickup1;
pickup1 = AddStaticPickup(351,23,332.2947,-1482.3806,76.5391);

//then this is what you need
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == pickup1)
     {
          GivePlayerWeapon(playerid,GetPlayerWeapon(playerid),400);//Thats is +400 amo
     }
     return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)