Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
admin commands
6 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)
![cs2d cmd](img/i_codehelp.png)
![cs2d cmd](img/i_codehelp.png)
![cs2d cmd](img/i_codehelp.png)
![cs2d cmd](img/i_codehelp.png)
![cs2d cmd](img/i_codehelp.png)
I recommend to search the Lua script file archive for CS2D. there are MANY admin scripts.
edited 1×, last 05.08.11 10:30:31 am
![user](img/i_friend.png)
To easy thanks! He is newbie. I think he can't understand that easily
![](img/smiles/bigsmile.gif)
![user](img/i_friend.png)
OMG! DC
![](img/smiles/bigsmile.gif)
![×](img/x.gif)
Here i will show how to create a simple admin system,
that the admin will can kick. If you want, you can create Others Functions.
1. You have to create a usgn admin system.
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
isadmin=initArray(32) addhook("spawn","onspawn") function onspawn(id) 	for id = 1,32 do 		if player(id,"usgn") == |Your usgn| then 		isadmin[id] = 1 		end 	end end
2. Create a Kick System
![>](img/i_next.png)
See more in my Topic
1
2
3
4
5
6
2
3
4
5
6
function saykick(id, t) 	if isadmin[id] = 1 and t:sub(1,5)=="!kick" then 		kid=tonumber(t:sub(7,8)) 		parse("kick "..kid) 	end end
![>](img/i_next.png)
Okay, this script will know if the player has the admin usgn
If the player has, so he will can use the kick system, else
the player will cannot
To use the kick system just say:
!kick |ID of the Player that will be kicked|
Example: !kick 4
That's all, I hope i helped you.
![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)