i dont know how to explain it, I hope you understand
Screenshot:
I want the Scout is dropped when I buy the new weapon instead of Aug
thanks
if (sample.classes.class[id]==1) then 		msg2(id,"©000255150» Your Choose Zombie. «") 		parse ("setmaxhealth "..id.." 75") 		parse ("setarmor "..id.." 204") 		parse ("speedmod "..id.." 5") 		return "78,86"; 	end
return "78,86";
weapon ={ [1] = 500; } addhook("buy", "_buy") function _buy(p, w) 	parse("equiip "..p.." "..w) 	--parse("setweapon "..p.." "..w) this is used for setting bought weapon to hand 	local money = player(p, "money") - weapon[w] 	parse("setmoney "..p.." "..money) end --[[Write the weapons in [weaponid] = weapon_money form ]]
if player(id,"weapon")==41 then 	parse("strip "..id.." 41") 	parse("equip "..id.." 41") end
... 	if weapon~=player(id,"weapon") then 		parse("equip "..id.." "..weapon) 		parse("setweapon "..id.." "..weapon) 		eqweapon[id]=eqweapon[id]+1 		return 1 	else 		return 0 	end ...
if weapon~=player(id,"weapon") then 		--Here 	parse("equip "..id.." "..weapon)
if weapons[wpn] then 		msg2 (p, "\169255000000Buying this weapon isn't allowed in this server!@C") 		return 1 	end
weapons = { [1] = false;}
function GetPlayers() 	return #player(0,"table") end local max_players = GetPlayers()
#player(0,"table") -- for id = 1,32 do 	if (player(id,"exists") then -- for _,id in pairs(player(0,"tableliving")) do
for i=1,32 do 	-- this code gets executed 32 times! end
myArray = {5,4,16,7} -- some random data -- create an own function function SearchNumber(number) 	for _,i in pairs(myArray) do -- loop for every item in the array 		if (i == number) then -- if the actual item is number 			return i; -- stop the function and return the position/index of that item 		end 	end 	return 0; -- return 0 if the number is not in that array end -- call function position = SearchNumber(4) print(position) -- output: 2 <- because this is the position in the array
#player(0,"table")
for id=1,32 do if player(id,"exist") then ...