Raised This Month: $51 Target: $400
 12% 

Play sound on ban cs 1.6


Post New Thread Reply   
 
Thread Tools Display Modes
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 04-15-2017 , 14:06   Re: Play sound on ban cs 1.6
Reply With Quote #11

Quote:
Originally Posted by newman19 View Post
You are the best thank you very much

A question and if for example I do not use any plugin for ban and I only use amx_ban of amx by default? How would you add it to admincmd.sma? I put that same code that you did inside admincmd.sma?
Yes, plugin_precache() above plugin_init() and emit_sound in the cmd_ban function on the bottom, but not below a return.
redivcram is offline
woooow
Member
Join Date: Mar 2017
Old 04-15-2017 , 14:29   Re: Play sound on ban cs 1.6
Reply With Quote #12

Quote:
Originally Posted by newman19 View Post
You are the best thank you very much

A question and if for example I do not use any plugin for ban and I only use amx_ban of amx by default? How would you add it to admincmd.sma? I put that same code that you did inside admincmd.sma?
you're welcome

yes exactly you can add it to any plugin you want
but you should add it where the server exec the ban command

for default amxmodx ban menu just edit plmenu.sma

here i made it for you
you need to compile the code in ur pc compiler to fix the colors
Attached Files
File Type: sma Get Plugin or Get Source (plmenu.sma - 420 views - 21.6 KB)

Last edited by woooow; 04-15-2017 at 16:12.
woooow is offline
newman19
Junior Member
Join Date: Nov 2015
Old 04-15-2017 , 14:39   Re: Play sound on ban cs 1.6
Reply With Quote #13

Quote:
Originally Posted by woooow View Post
you're welcome

yes exactly you can add it to any plugin you want
but you should add it where the server exec the ban command

for default amxmodx ban just edit plmenu.sma

here i made it for you
you need to compile the code in ur pc compiler to fix the colors
God, thank you very much for your help, last a long time looking for this now one last question

It could add color to the time that the server ban someone, something like the ultimate that appears a message "[UltimateBans: Banned "player" in red, you could do that with the plmenu or I have to have the Ultimatebans or the advancedbans for that?

Last edited by newman19; 04-15-2017 at 14:40.
newman19 is offline
woooow
Member
Join Date: Mar 2017
Old 04-15-2017 , 15:06   Re: Play sound on ban cs 1.6
Reply With Quote #14

Quote:
Originally Posted by newman19 View Post
God, thank you very much for your help, last a long time looking for this now one last question

It could add color to the time that the server ban someone, something like the ultimate that appears a message "[UltimateBans: Banned "player" in red, you could do that with the plmenu or I have to have the Ultimatebans or the advancedbans for that?
yes for sure you can do this
you can add print_chat with colors to plmenu with ban info like ultimatebans

but unfortunately i dont know how to do this yet
maybe someone else better then me will do it for you.

wish you good luck !
woooow is offline
newman19
Junior Member
Join Date: Nov 2015
Old 04-15-2017 , 15:22   Re: Play sound on ban cs 1.6
Reply With Quote #15

Quote:
Originally Posted by woooow View Post
yes for sure you can do this
you can add print_chat with colors to plmenu with ban info like ultimatebans

but unfortunately i dont know how to do this yet
maybe someone else better then me will do it for you.

wish you good luck !
It's fine thank you very much, you helped me a lot
newman19 is offline
newman19
Junior Member
Join Date: Nov 2015
Old 04-15-2017 , 21:54   Re: Play sound on ban cs 1.6
Reply With Quote #16

Quote:
Originally Posted by woooow View Post
yes for sure you can do this
you can add print_chat with colors to plmenu with ban info like ultimatebans

but unfortunately i dont know how to do this yet
maybe someone else better then me will do it for you.

wish you good luck !
I tried the file that you passed me and replace what you said and I put it on my server but when banning someone does not sound any sound and does not even download the .wav sound file I put it
newman19 is offline
woooow
Member
Join Date: Mar 2017
Old 04-16-2017 , 01:19   Re: Play sound on ban cs 1.6
Reply With Quote #17

Quote:
Originally Posted by newman19 View Post
I tried the file that you passed me and replace what you said and I put it on my server but when banning someone does not sound any sound and does not even download the .wav sound file I put it
show me your code.
woooow is offline
newman19
Junior Member
Join Date: Nov 2015
Old 04-17-2017 , 16:36   Re: Play sound on ban cs 1.6
Reply With Quote #18

Quote:
Originally Posted by woooow View Post
show me your code.

Error: server failed to transmit file 'sound/misc/bye.wav'
newman19 is offline
woooow
Member
Join Date: Mar 2017
Old 04-17-2017 , 19:52   Re: Play sound on ban cs 1.6
Reply With Quote #19

Quote:
Originally Posted by newman19 View Post
Error: server failed to transmit file 'sound/misc/bye.wav'
sound file is missing

make sure you add it to your server and your fast download url if any.
woooow is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode