And they drop a medikit
Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
medikite drop
13 replies![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)
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
![](img/smiles/thoughtfully2.gif)
![user](img/i_friend.png)
1
if player(id,"usgn")== then --admin usgn here
Then you could only add 1 admin.
![user](img/i_friend.png)
1
prase
Wai- Wha?
![](img/smiles/wink.gif)
![user](img/i_friend.png)
Yates you're didint work
and team speak you're didint work too ;/
![](img/smiles/thoughtfully2.gif)
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
![](img/smiles/joy.gif)
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 06:30:22 pm
![](img/smiles/joy.gif)
![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)