Pivity

Help with ammo

Last read Never
#1
ammo = {
["cw_ammo_45acp"] = 50
},

what is bad with this command? How do i add ammo to a job? i just go to entities and copy to clipboard the ammo and add it to the code but why when i pick the job i dont get the ammo?

#2

That looks ok to me, perhaps send the rest of the job though?

#3

i googled it and looks like i need to find ammo type not copy the entity name... but i cant find cw:2 ammo types

#4

is cw_ammo_45acp not the entity that spawns on the ground as a pickup?

if so is there not a GiveAmmo command in there somewhere?

ply:GiveAmmo(20,"Some_Ammo_Type) or similar?

#5

These are the CW 2.0 ammo names:

cw_ammo_338lapua = .338 Lapua
cw_ammo_40mm = 40MM
cw_ammo_44magnum = .44 Magnum
cw_ammo_50ae = .50 AE
cw_ammo_545x39 = 5.45x39MM
cw_ammo_556x45 = 5.56x45MM
cw_ammo_762x51 = 7.62x51MM
cw_ammo_9x19 = 9x19MM
cw_ammo_fraggrenades = Frag Grenades
Friendly x 2Winner x 1
#6

oh wow thank you very mutch!

Users viewing this thread
Nobody