And they drop a medikit
Forum
Scripts
medikite drop
medikite drop
13 replies
1

And they drop a medikit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Admins = {USGN(s)HERE}
function inusgn(id)
	local us = player(id,"usgn")
	for i, v in pairs(Admins) do
		if us == tonumber(v) then
			return true
		end
	end
	return false
end
addhook("say","hp")
function hp(id,text)
	if inusgn(i) then
		if (text=="!medicine") then
			parse("spawnitem 64 "..player(id,"tilex").." "..player(id,"tiley"))
		end
	end
end
Edit: Forgot to add that admins only thing.
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
--UNTESTED
addhook("say","md")
function md(id,txt)
if txt=="!medicine" then
if player(id,"usgn")== then --admin usgn here
parse("spawnitem 64 "..player(id,"x").." "..player(id,"y"))
else
prase('msg2 '..id..' '"you aren't admin"')
end
end
end
and team speak you're didint work too ;/
Necr0 has written1
if player(id,"usgn")== then --admin usgn here
Then you could only add 1 admin.
Necr0 has written1
prase
Wai- Wha?
Flame has writtenYates you're didint work
and team speak you're didint work too ;/
and team speak you're didint work too ;/Seriously?
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
--TESTED!!!
addhook("say","md")
function md(id,txt)
if txt=="!medicine" then
if player(id,"usgn")==0 then	--change 0 to admin usgn
parse("spawnitem 64 "..player(id,"tilex").." "..player(id,"tiley"))
end
end
end
1
if inusgn(i) then
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Admins = {USGN(s)HERE}
function inusgn(id)
	local us = player(id,"usgn")
	for i, v in pairs(Admins) do
		if us == tonumber(v) then
			return true
		end
	end
	return false
end
addhook("say","hp")
function hp(id,text)
	if inusgn(id) then
		if (text=="!medicine") then
			parse("spawnitem 64 "..player(id,"tilex").." "..player(id,"tiley"))
		end
	end
end
-- Tested and works.
edited 1×, last 17.09.11 04:30:22 pm
1

Offline