How do add ammo? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How do add ammo? (
/showthread.php?tid=76422)
How do add ammo? -
kevin13 - 04.05.2009
public OnGameModeInit()
{
SetGameModeText("[...] V2.0");
//Weapon Spawn
CreatePickup(348, 2, 2443.1848,-1979.8909,13.5469); // Emmets deagle
348 - deagle, how can i add ammo, it spawns with 10 ammo only
Re: How do add ammo? -
Diler - 04.05.2009
in OnPlayerPickUpPickup ;]
Re: How do add ammo? -
kevin13 - 04.05.2009
How, I do this?
Re: How do add ammo? -
kevin13 - 05.05.2009
Help somebody?
Re: How do add ammo? -
Magie[CZ] - 05.05.2009
new emments_deagle;
public OnGameModeInit()
{
SetGameModeText("[...] V2.0");
//Weapon Spawn
emments_deagle = CreatePickup(348, 2, 2443.1848,-1979.8909,13.5469); // Emmets deagle
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == emments_deagle)
{
GivePlayerWeapon(playerid, 24, 77); //77 is ammo
}
Re: How do add ammo? -
kevin13 - 05.05.2009
Thanks, worked