Making chat text commands in multiplayer

正在查看此主题的用户

Praox

Recruit
Hello guys!

I've been searching for this for hours, but I haven't found it yet.

The thing I want to do is, that when a player insert a forward slash (/) in global chat, the server search for an existent command and if it exists, do a specific operation.

For example:

Using /kick (player) will kick that player if you're admin, and also that command won't appear in global chat.

So, thanks for your help and for your time reading this. I would be extremely grateful if someone helps me or say at least which script I need to edite.

Oh, I forgot to say that all of this things must done by server-side.

Have a good day!
 
WSE has specific (server-side) string parsing functions like the ones you're looking for, even more, cmpxchg8b did a video about it.
Take a look, and have fun:
插入代码块:
http://www.youtube.com/watch?v=BgRJeQ1L3ak
 
后退
顶部 底部