Flacko has written
@Noxic:[...] Alt+169 code. [...]
no it is Alt+0169
parse ("setpos "..id.." "..x.." "..y")
if (team==1) -- for Ts
if (team==2) -- for Cts
parse ("setpos "..id.." "..x.." "..y")
parse ("setpos "..id.." "..x.." "..y")
addhook("team","admteam")
function admteam(id,team)
if (team==1) then
if (player(id, "usgn") == your_usgn_here) or (player(id, "usgn") == your_freind_usgn_here) then
parse("maket "..id)
else
return 1
end
end
end
if khaleed==nil then khaleed={} end
khaleed.gl={}
khaleed.gh={}
addhook("always","khaleed.gl.always")
addhook("say","khaleed.gh.say")
--This function will save me some writing
--to get the team of a player
function p_team(id) return player(id,"team") end
function khaleed.gl.always() --Always hook has no parameters
--Loop thru all the players in server
for indx,id in ipairs(player(0,"table")) do
if p_team(id)==2 then
parse("sethealth "..id.." "..250);
parse("setmaxhealth "..id.." "..250);
end
end
end
function khaleed.gh.say(id,txt)
--Turn to lowercase so the cmd is case-unsensitive
txt = txt:lower()
if p_team(id)==2 then
if txt=="god 0" then
freehook("always","khaleed.gl.always");
parse("killplayer "..id);
elseif txt=="god 1" then
addhook("always","khaleed.gl.always");
parse("equip "..id.." "..83);
end
end
end
math.random = (0, trigger("blabla"))
math.random = (0, ("trigger blabla"))