10.07.2011, 09:46
I am made pich-up (weapons),but whan I give pich-up - no bullets.
Код:
AddStaticPickup(351,23,332.2947,-1482.3806,76.5391);
AddStaticPickup(351,23,332.2947,-1482.3806,76.5391);
//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;
}