10.07.2011, 11:52
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
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;
}