Jump to content

Commands


=EMP=Avery13

Recommended Posts

I created a few new custom commands for my server. I put them in the shrubbot.cfg file and they pull up on the server. I also have a .pk3 for a few sounds specifically for them. I have it titled as commands.pk3 and it is located in my silent folder. The problem is that it will not use it in game and I don't even get an error for it when I am in game saying that there is no path. I must have something written wrong. Here is an example of one of them:

 

[command]

command = bang

exec = playsound silent/commands/pulp.wav; cp Oh I'm sorry, did I break your concentration?

desc = Plays pulp fiction sound

levels = 0 1 2 3 4 5 6 7 8 9 10

 

As you can see, the command is !bang. When done, the "Oh i'm sorry, did I break your concentration?" pops up like it is suppose to.

The file i am trying to use in the commands.pk3 file is pulp.wav

 

What is wrong here?

Link to comment
Share on other sites

I've messed with it a little bit. I now have a sound folder in my silent folder, and in that file there is another one that is named silent. then I have the .wav files in that folder. the path is now "silent/sound/silent/pulp.wav".

 

I tried what you mentioned, nothing even pops up for it to be wrong. Should sound folder be in my general server folder and the path changed to "sound/silent/pulp.wav"?

Link to comment
Share on other sites

  • Management

Try this in console:

 

rcon playsound silent/sound/silent/pulp.wav

 

If you can hear the sound, location is correct and then use this:

 

[command]
command = bang
exec	= playsound silent/sound/silent/pulp.wav; cp Oh I'm sorry, did I break your concentration?
desc	= Plays pulp fiction sound
levels	= 0 1 2 3 4 5 6 7 8 9 10

Link to comment
Share on other sites

  • Management

Just something that could easily be wrong, start the path from the fs_game folder. What I mean is, only put those folders in the path that are used inside the pk3.

 

I don't know is that the case here, but I got suspicious because you have the silent as the first folder in the path.

Link to comment
Share on other sites

Try this in console:

 

rcon playsound silent/sound/silent/pulp.wav

 

If you can hear the sound, location is correct and then use this:

 

[command]
command = bang
exec	= playsound silent/sound/silent/pulp.wav; cp Oh I'm sorry, did I break your concentration?
desc	= Plays pulp fiction sound
levels	= 0 1 2 3 4 5 6 7 8 9 10

I moved the sound folder to my main server folder where you can find the etmain and silent folders and everything. I tried the command you suggested without the first silent since that would be the soundpath.. didn't do anything.

 

Man, why do I have to be such a NOOB when it comes to this?! lol

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...