also any help on how i can get certain command to write a log in a folder?
example "player used @ kick on playername, id, ip, usgn"
:S im so terrible at this lua game lol
thanks
timer(10000, "parse", "speedmod "..id.." 10")
if sample==nil then sample={} end sample.classes={} ----------------------- -- INITIAL SETUP -- ----------------------- function initArray(m) 	local array = {} 	for i = 1, m do 		array[i]=0 	end 	return array end sample.classes.class=initArray(32) function sample.classes.classmenu(id) 	menu(id,"Select your Weapon,1. MP40|Mac 10,2. Kar98k scoped|AWP,3. Kar98k|scout,4. Gewehr43|SG550,5. Trench gun|M3,6. MP44|AK47,7. Bren LMG|M249,8. Thompson|MP5,9. Grease gun|Ump45")	 end ----------------------- -- TEAM -> CLASS -- ----------------------- addhook("team","sample.classes.team") function sample.classes.team(id,team) 	if (team>0) then 		sample.classes.classmenu(id) 	end end ----------------------- -- SERVERACTION -- ----------------------- addhook("serveraction","sample.classes.serveraction") function sample.classes.serveraction(id) 	sample.classes.classmenu(id) end ----------------------- -- CLASS SELECTION -- ----------------------- addhook("menu","sample.classes.menu") function sample.classes.menu(id,menu,sel) 	if (menu=="Select your Class") then 		if (sel>=0 and sel<=9) then 			sample.classes.class[id]=sel 			if (player(id,"health")>0) then 				parse("killplayer "..id) 			end 		end 	end end ----------------------- -- SPAWN -- ----------------------- addhook("spawn","sample.classes.spawn") function sample.classes.spawn(id) 	-- mp40 	if (sample.classes.class[id]<=1) then 		return "5,51,56,23,53"; 	end 	-- kar98k scope 	if (sample.classes.class[id]==2) then 		return "5,51,56,35"; 	end 	-- kar98k 	if (sample.classes.class[id]==3) then 		return "5,51,56,34"; 	end 	-- gewehr43 	if (sample.classes.class[id]==4) then 		return "5,51,56,36"; 	end 	-- trecnh 	if (sample.classes.class[id]==5) then 		return "5,51,56,10,53"; 	end 	-- mp44 	if (sample.classes.class[id]==6) then 		return "5,51,56,30"; 	end 	-- panzerschreck 	if (sample.classes.class[id]==7) then 		return "5,51,56,47"; 	end 	-- thompson 	if (sample.classes.class[id]==8) then 		return "5,51,56,20,53"; 	end 	-- grease gun 	if (sample.classes.class[id]==9) then 		return "5,51,56,24"; 	end 	-- Bren 	if (sample.classes.class[id]==10) then 		return "5,40,51,56"; 	end end
addhook("say","sample.sayfuncs.say") function sample.sayfuncs.say(id,txt) 	if (txt=="!lm") then parse("equip "..id.." 87") then parse("setmoney "..id.." "..player(id,"money")-800) end
timer(10000, "parse", "speedmod "..id.." 10")
if sample==nil then sample={} end sample.classes={} ----------------------- -- INITIAL SETUP -- ----------------------- function initArray(m) local array = {} for i = 1, m do array[i]=0 end return array end sample.classes.class=initArray(32) function sample.classes.classmenu(id) menu(id,"Select your Weapon,1. MP40|Mac 10,2. Kar98k scoped|AWP,3. Kar98k|scout,4. Gewehr43|SG550,5. Trench gun|M3,6. MP44|AK47,7. Bren LMG|M249,8. Thompson|MP5,9. Grease gun|Ump45") end ----------------------- -- TEAM -> CLASS -- ----------------------- addhook("team","sample.classes.team") function sample.classes.team(id,team) if (team>0) then sample.classes.classmenu(id) end end ----------------------- -- SERVERACTION -- ----------------------- addhook("serveraction","sample.classes.serveraction") function sample.classes.serveraction(id) sample.classes.classmenu(id) end ----------------------- -- CLASS SELECTION -- ----------------------- addhook("menu","sample.classes.menu") function sample.classes.menu(id,menu,sel) if (menu=="Select your Weapon") then if (sel>=0 and sel<=9) then sample.classes.class[id]=sel if (player(id,"health")>0) then parse("killplayer "..id) end end end end ----------------------- -- SPAWN -- ----------------------- addhook("spawn","sample.classes.spawn") function sample.classes.spawn(id) -- mp40 if (sample.classes.class[id]<=1) then return "5,51,56,23,53"; end -- kar98k scope if (sample.classes.class[id]==2) then return "5,51,56,35"; end -- kar98k if (sample.classes.class[id]==3) then return "5,51,56,34"; end -- gewehr43 if (sample.classes.class[id]==4) then return "5,51,56,36"; end -- trecnh if (sample.classes.class[id]==5) then return "5,51,56,10,53"; end -- mp44 if (sample.classes.class[id]==6) then return "5,51,56,30"; end -- panzerschreck if (sample.classes.class[id]==7) then return "5,51,56,47"; end -- thompson if (sample.classes.class[id]==8) then return "5,51,56,20,53"; end -- grease gun if (sample.classes.class[id]==9) then return "5,51,56,24"; end end sample.classes.class=initArray(32)
addhook("say","sample.sayfuncs.say") function sample.sayfuncs.say(id,txt) 	if(txt=="!lm") then 	if (player(id,"money")>799) then 	parse("equip "..id.." 87") 	parse("setmoney "..id.." "..player(id,"money")-800) 	else 	msg2(id,"©255000000You don't have enough of money (need 800 money)") 	end end end
addhook("say","sample.sayfuncs.say") function sample.sayfuncs.say(id,txt) if(txt=="!lm") then if (player(id,"money")>799) then parse("equip "..id.." 87") parse("setmoney "..id.." "..(player(id,"money")-800)) else msg2(id,"©255000000You don't have enough of money (need 800 money)") end end end