Pick-up
#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


Messages In This Thread
Pick-up - by romanzi - 10.07.2011, 09:46
Re: Pick-up - by iJumbo - 10.07.2011, 10:02
Re: Pick-up - by park4bmx - 10.07.2011, 11:52

Forum Jump:


Users browsing this thread: 1 Guest(s)