serveraction ist auf F2,f3,f4 verteil
1
2
3
4
5
2
3
4
5
---> F2(serveraction) <-- addhook("serveraction","sample.classes.serveraction") function sample.classes.serveraction(id) sample.classes.classmenu(id) end
---> F2(serveraction) <-- addhook("serveraction","sample.classes.serveraction") function sample.classes.serveraction(id) sample.classes.classmenu(id) end
---> F2(serveraction) <-- addhook("serveraction","sample.classes.serveraction") function sample.classes.serveraction(id) if (id==1) then sample.classes.classmenu(id) end end
if (action==1) then 	-- aktion für f2 hier elseif (action==2) then 	-- aktion für f3 hier else 	-- aktion für f4 hier end
Primary-->M4A1
function prim_men(id) 	menu(id,"Inventar,Primary|Priomary Weapon") end function mav_menu(id) 	menu(id,"Primary Weapon,Maverick") end addhook("serveraction","sact") function sact(id,act) 	if(act==1) then 		prim_men(id) 	end end addhook("menu","imenu") function imenu(id,title,sel) 	if(title=="Inventar") then 	 if(sel==1) then mav_menu(id) end end if(title=="Primary Weapon") then if(sel==1) then 	parse("equip "..id.." 32") end end
addhook("hit","sample.hit2") function sample.hit2(p) parse("speedmod "..p.." 10") msg2(p,"YOUR SPEEDMOD +10") end