just add
It's not very hard if you made that script
@Yasday
you don't need for for that
id 0 strips everything besides the main melee wep.
parse('strip '..id..' 0')
^ Works
^
TDShuft read that^
edited 2×, last 27.11.10 11:09:05 pm
parse([[strip ]]..id..[[ ]]..wpnid) --wpnid must be the id of the waepon ;)
for wpnid = 1,88 do 	parse([[strip ]]..id..[[ ]]..wpnid) end
for wpnid = 1,playerweapons(id) do 	parse([[strip ]]..id..[[ ]]..wpnid) end
local pwp = playerweapons(id) for i = 1,#pwp do parse([[strip ]]..id..[[ ]]..pwp[i]) end
function initArray(m) local array = {} for i = 1, m do array[i]=0 end return array end level=initArray(32) exp=initArray(32) credits=initArray(32) points=initArray(32) streak=initArray(32) hacker=initArray(32) medikit=initArray(32) function string.split(text,b) local cmd = {} if b then b = b else b = "%s" end b = "[^"..b.."]+" for o in string.gmatch(text,b) do table.insert(cmd,o) end return cmd end if hacker==nil then hacker={} end hacker={} addhook("second","hack") function hack() for p = 1,32 do if (hacker[p]==1) then credits[id]=credits[id]+15 	end end end addhook("spawn","class") function class(id) parse("equip "..id.." 56") -- Equips Ct's with defuse kit. hacker[id] = 1 -- The Hacker Special is on 	parse("strip "..id)
Colors = { green = "000255000", red = "255000000", blue = "000000255", yellow = "255255000" } VipTable = { Rank = {} } btimer={} for i=1,32 do btimer[i]=0 end addhook("say","AdminSay") addhook("second", "startsec") function NewVip(USGN,COLOR,RANK) VipTable[USGN] = { C = COLOR, R = RANK} local A = VipTable[USGN] end end function GiveCookie(P,T) if string.sub (T,1,5)=="@givecookie" then local A = VipTable[player(P,"usgn")] 	if A then 	 if player(tmpid, "exists") then 		 msg(Color(0, 0, 0), player(P, "name").." Gave a cookie to "..player(tmpid, "name")..".") 	 parse("gavecookie"..tmpid) 	 end	 end end		 end end end NewVip(20104,"Red","Vip") NewVip(010101,"green","Vip")
addhook("objectdamage","zm_hit") function zm_hit(id) sx=player(id,"money") 	parse("setmoney "..id.." "..(sx+25)) end
parse("setmoney "..id.." '..sx..' +25)
parse("setmoney "..id.." "..player(id, "money") + 25);
id -- building not player amt -- amount of damage player -- the players id
function zm_hit(bld, dmg, id) 	... end
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,"Modern Warfare 2 Character,Shepherd|Deagle-Armor,Ghost|UMP45,Cpt.Price|MP5,Soap Mactavish|AUG,James Ramirez|M4A1+Fast,Captain MacMillan|Scout+TMPSD")	 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 Modern Warfare 2 Character") then 		if (sel>=0 and sel<=6) 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) 	-- Shepherd 	if (sample.classes.class[id]==1) then 		parse ("setmaxhealth "..id.." 200") 		parse ("setarmor "..id.." 0") 		parse ("speedmod "..id.." 5") 		return "3"; 	end 	-- Ghost 	if (sample.classes.class[id]==2) then 		parse ("setmaxhealth "..id.." 125") 		parse ("setarmor "..id.." 150") 		parse ("speedmod "..id.." 7") 		return "24,5"; 	end 	-- Cpt. Price 	if (sample.classes.class[id]==3) then 		parse ("setmaxhealth "..id.." 100") 		parse ("setarmor "..id.." 50") parse ("speedmod "..id.." -2") 		return "4,20"; 	end 	-- Soap MacTavish 	if (sample.classes.class[id]==4) then 		parse ("setmaxhealth "..id.." 150") 		parse ("setarmor "..id.." 75") 		return "33,6"; 	end 	-- James Ramirez 	if (sample.classes.class[id]==5) then 		parse ("setmaxhealth "..id.." 75") 		parse ("setarmor "..id.." 0") 		parse ("speedmod "..id.." 13") 		return "32,1"; 	end 	-- Captain MacMillan 	if (sample.classes.class[id]==6) then 		parse ("setmaxhealth "..id.." 50") 		parse ("setarmor "..id.." 125") parse ("speedmod "..id.." 10") 		return "34,21"; 	end end
ai_goto(id,x,y,[walk])
addhook("objectkill","zm_hit") function zm_hit(p,id) money=player(p,"money") 	parse("setmoney "..p.." "..(money+15)) end
addhook("objectkill","zm_hit") function zm_hit(p,id) money=player(p,"money") 	parse("setmoney "..p.." "..(money+15)) end
function zm_hit(p,id)
function zm_hit(id,p)