Unlimited Ammo
#1

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 (:
Reply
#2

(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.
Reply
#3

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
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)