SA-MP Forums Archive
Unlimited 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: Unlimited Ammo (/showthread.php?tid=106252)



Unlimited Ammo - Nameless303 - 01.11.2009

Hi,

I wan't to let my players spawn with a deagle with unlimited ammo, is the following line correct?

AddPlayerClass(287, 217.7683,1856.1923,13.0176,6.0815, 348, 0, 0, 0, 0, 0);

Thanks (:


Re: Unlimited Ammo - Devine - 01.11.2009

(skin, Float, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)

so:
AddPlayerClass(287, 217.7683,1856.1923,13.0176,6.0815, 348, 0, 0, 0, 0, 0);

Deagle is ID 24, so why do you have 348? You also haven't put an ammo, so it wouldn't even spawn the gun. Here's the corrent way to put it:
Код:
AddPlayerClass(287, 217.7683,1856.1923,13.0176,6.0815, 24, 35578, 0, 0, 0, 0);
The 35578 will make you have unlimited ammo, if you're wondering.


Re: Unlimited Ammo - Nameless303 - 01.11.2009

Quote:
Originally Posted by Devine
(skin, Float, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)

so:
AddPlayerClass(287, 217.7683,1856.1923,13.0176,6.0815, 348, 0, 0, 0, 0, 0);

Deagle is ID 24, so why do you have 348? You also haven't put an ammo, so it wouldn't even spawn the gun. Here's the corrent way to put it:
Код:
AddPlayerClass(287, 217.7683,1856.1923,13.0176,6.0815, 24, 35578, 0, 0, 0, 0);
The 35578 will make you have unlimited ammo, if you're wondering.
Ow, 348 was the model ID and I thought 0 was unlimited...
Thanks for the quick response! (:

Cheer'z


Re: Unlimited Ammo - Devine - 01.11.2009

Quote:
Originally Posted by Nameless303
Quote:
Originally Posted by Devine
(skin, Float, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)

so:
AddPlayerClass(287, 217.7683,1856.1923,13.0176,6.0815, 348, 0, 0, 0, 0, 0);

Deagle is ID 24, so why do you have 348? You also haven't put an ammo, so it wouldn't even spawn the gun. Here's the corrent way to put it:
Код:
AddPlayerClass(287, 217.7683,1856.1923,13.0176,6.0815, 24, 35578, 0, 0, 0, 0);
The 35578 will make you have unlimited ammo, if you're wondering.
Ow, 348 was the model ID and I thought 0 was unlimited...
Thanks for the quick response! (:

Cheer'z
No problem.