15.11.2011, 16:25
Quote:
ummm idk xD.
but ehm do you know some where i can find a tutorial for that ammo thing? |
but i can show u a example
pawn Код:
new pickup;
public OnGameModeInit()
{
pickup = CreatePickup(1242, 2, 0, 0, 0, -1);//put the X,Y,Z where ever you want
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickup )
{
SetPlayerAmmo(playerid,GetPlayerWeapon(playerid),GetPlayerAmmo(playerid)+500);//this will make his current weapon that he is holding +500 amo
}
return 1;
}