English admin commands

6 replies
Goto Page
To the start Previous 1 Next To the start
03.08.11 11:35:23 pm
Up
DarkSucker
BANNED
Offline Off
hi guys plss help i need some commands admin like !goto !bring !kick !ban !report !info i need that for my server who can help me pls?
• And remember kids: Crashing certain servers will get you into trouble. Don't fucking do it.
03.08.11 11:36:52 pm
Up
buraxia3
User
Offline Off
You need make lua for it. DC doesn't added it in CS2D. But still there is usefull commands in console.
03.08.11 11:45:25 pm
Up
DC
Admin
Offline Off
kick and ban are regular commands which can be entered in the console without using any Lua (on remote servers using cs2d cmd rcon)

cs2d cmd kick
cs2d cmd banip
cs2d cmd banname
cs2d cmd banusgn

I recommend to search the Lua script file archive for CS2D. there are MANY admin scripts.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
04.08.11 04:56:11 am
Up
PyKemis
User
Offline Off
Here you can start creating your own lua. Click more it's very long.

More >
edited 1×, last 05.08.11 10:30:31 am
04.08.11 09:06:28 am
Up
buraxia3
User
Offline Off
user PyKemis has written:
Here you can start creating your own lua. Click more it's very long.

More >

To easy thanks! He is newbie. I think he can't understand that easily
08.09.11 01:45:58 pm
Up
AlphaCheeryo
User
Offline Off
user DC has written:
kick and ban are regular commands which can be entered in the console without using any Lua (on remote servers using cs2d cmd rcon)

cs2d cmd kick
cs2d cmd banip
cs2d cmd banname
cs2d cmd banusgn

I recommend to search the Lua script file archive for CS2D. there are MANY admin scripts.


OMG! DC
Ålphâ
08.09.11 11:30:22 pm
Up
DragonAwper
User
Offline Off
× Warning: It's not Tested!

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.

Code:
1
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

> I used string.sub functions.

See more in my Topic

Code:
1
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


> What this Script do?

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 Previous 1 Next To the start