I want ask you, how to check weapon id ammo and make function for it, example:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
addhook("ms100,"mssto") function mssto(id) local wpn = player(id,"weapon") 	for _,id in pairs (player(0, "table")) do if wpn==2 then freeimage(phud) phud=image("blalblbabl) 	if weapon(id,"ammoin")==20 then --or how?-idk pammo=image("gfx/mora/20ammoP.png",22,23,2,id) 	elseif weapon(id,"ammoin")==19 then pammo=image("gfx/mora/19ammoP.png",22,23,2,id) and more and more.... elseif wpn==10 then freeimage(shud) shud=image("blabalbabl") 	if weapon(id,"ammoin")==8 then same as in last sammo=image("gfx/mora/8ammoS.png",22,23,2,id) 	elseif weapon(id,"ammoin")==7 then sammo=image("gfx/mora/7ammoS.png",22,23,2,id) and more and more.... else freeimage(shud) freeimage(phud) 	end end end
But i think it's wil be so long and terrible, but i don't know how to make one image with my ammo is(sounds terrible, thanks to my english) but i try writte as example:
Thanks