Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google Log In with Steam Sign In
  • Create Account
Photo

commands and stuf

- - - - -

  • Please log in to reply
1 reply to this topic

#1
OFFLINE   killerspace

killerspace

    Newbie

  • Members
  • Pip
  • 1 posts
0
Unknown
hello all im a new player and i have et server with running silend mod

and i had the question for

how to put commands to a lvl like setlevel,flinga [levedit]

and how to make commmands with sound like !rofl [rolling on the floor laughing] with sound

2 questions i hope you guys can help me

greetz killerspace ip server 213.108.31.11:27050

#2
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland
Adding commands to a level happens through srhubbot.cfg file. Put desired flags to desired levels and then issue !readconfig on the server. Or start/restart server.

You need to add the custom commands into the shrubbot cfg. Just like with editing the levels.
Here is 2 examples of custom commands.
[command]
command = rofl
exec = playsound sound/teasing/rofl.wav; chat ^7[n]^7 is rofl what you want as text!
desc = You rofl
levels = 2 3 4 5

[command]
command = crybaby
exec = playsound sound/teasing/crybaby.wav; chat ^7[1?]^7 is crying like a little baby!
desc = Make someone cry.
levels = 2 3 4 5

The latter one is using the silEnT mod specific place holder. If a partial name is given to the command, it will be replaced by a real player name if there is one and only one player to whos name it matches.

Also, read documentation here.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users