for example a deagle just with 3 bullets.
Is it possible? how can i do it?
function mw2spawn(id) wpnp = primw[id] return wpnp end
function mw2spawn(id) wpnp = primw[id] return wpnp end
players = {} wpnids = {39, } -- add in the rest of your weapons addhook("menu","mw2menu5") function mw2menu5(id,title,key) 	if (title=="Select Your Rifle") then 		players[id] = wpnids[key] 	end end function mw2spawn(id) 	return players[id] end
addhook("menu","mw2menu5") function mw2menu5(id,title,key) 	sc = player(id,"score") 	if (title=="Select Your Rifle") then 	if (key == 1) then	 		famas(id) 	end 	if (key == 2) then 	if (sc > 22) then	 		galil(id) 	else msg2(id,"©000000255Your rank is too low.@C") 	end end 	if (key == 3) then 	if (sc > 99) then	 		m4a1(id) 	else msg2(id,"©000000255Your rank is too low.@C") 	end end 	if (key == 4) then 	if (sc > 124) then	 		sg552(id) 	else msg2(id,"©000000255Your rank is too low.@C") 	end end 	if (key == 5) then 	if (sc > 299) then	 		aug(id) 	else msg2(id,"©000000255Your rank is too low.@C") 	end end 	if (key == 6) then 	if (sc > 390) then	 		ak47(id) 	else msg2(id,"©000000255Your rank is too low.@C") 	end end 	end end
--require("sys.lua.wpnids") players = {} wpnids = {(famas, 0), (galil, 22), (m4a1, 99), (sg552, 124), (aug, 299), (ak47, 390) } -- add in the rest of your weapons addhook("menu","mw2menu5") function mw2menu5(id,title,key) 	local score = player(id, "score") -- score here indicates kills..., not sure 390 kills for an AK is prudent 	if (title=="Select Your Rifle") then 		if score > wpnids[key][2] then 			players[id] = wpnids[key][1] 		end 	end end function mw2spawn(id) 	return players[id] end
--require("sys.lua.wpnids") players = {} wpnids = {(famas, 0), (galil, 22), (m4a1, 99), (sg552, 124), (aug, 299), (ak47, 390) } -- add in the rest of your weapons addhook("menu","mw2menu5") function mw2menu5(id,title,key) 	local score = player(id, "score") -- score here indicates kills..., not sure 390 kills for an AK is prudent 	if (title=="Select Your Rifle") then 		if score > wpnids[key][2] then 			players[id] = wpnids[key][1] 		end 	end end function mw2spawn(id) 	return players[id] end
function mw2spawn(id) 	if not players[id] then players[id] = wpnids[1][1] end 	return players[id] end