Raised This Month: $32 Target: $400
 8% 

start a sound later


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 04-08-2022 , 13:07   start a sound later
Reply With Quote #1

PHP Code:
new const MenuSound [ ]  = "sound/deathrun/votekick/votekick.wav";

menu_additemmenu"\wVote Kick\r (Votekick someone)""");

case 
5:
        {
            
client_cmd(id"messagemode amx_votekick" )
            
set_hudmessage(25500, -1.0, -1.006.05.0)
            
show_hudmessage(id"Enter player name^n and press enter")
            
client_cmd (0"spk ^"%s^""MenuSound)
        } 

How can you make the sound start when the votekick starts as well?
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 04-08-2022 , 13:14   Re: start a sound later
Reply With Quote #2

Quote:
Originally Posted by Nutu_ View Post
PHP Code:
new const MenuSound [ ]  = "sound/deathrun/votekick/votekick.wav";

menu_additemmenu"\wVote Kick\r (Votekick someone)""");

case 
5:
        {
            
client_cmd(id"messagemode amx_votekick" )
            
set_hudmessage(25500, -1.0, -1.006.05.0)
            
show_hudmessage(id"Enter player name^n and press enter")
            
client_cmd (0"spk ^"%s^""MenuSound)
        } 

How can you make the sound start when the votekick starts as well?
In the next menu (which will be the vote for kick) put the sound next to menu_display
client_cmd (0, "spk ^"%s^"", MenuSound)
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 04-08-2022 , 13:20   Re: start a sound later
Reply With Quote #3

there isn't a next menu, that's the problem
__________________
a simple act of caring creates an endless ripple.

Last edited by Nutu_; 04-08-2022 at 13:20.
Nutu_ is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 04-08-2022 , 13:29   Re: start a sound later
Reply With Quote #4

Quote:
Originally Posted by Nutu_ View Post
there isn't a next menu, that's the problem
Show, full code.
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
Old 04-08-2022, 13:38
Nutu_
This message has been deleted by Nutu_.
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 04-08-2022 , 13:40   Re: start a sound later
Reply With Quote #5

is there any other way to make this without editing adminvote source?
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 04-08-2022 , 13:53   Re: start a sound later
Reply With Quote #6

I didn't realize that you were using amx_votekick, I believe that the change must be in the amxx sma itself
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 04-08-2022 , 14:46   Re: start a sound later
Reply With Quote #7

gotta do it then, thank you!
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 04-08-2022 , 16:48   Re: start a sound later
Reply With Quote #8

set_task is sufficient.
__________________
DJEarthQuake is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 04-08-2022 , 17:03   Re: start a sound later
Reply With Quote #9

Quote:
Originally Posted by DJEarthQuake View Post
set_task is sufficient.
No, it's not. He wants the sound to start WHEN the voting starts, do you know how long it will take the player to write the nickname for the vote in messagemode?

The best solution is to put the sound next to the amxx sma just below the show_menu.
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 04-08-2022 , 18:25   Re: start a sound later
Reply With Quote #10

i did it and works perfectly! thank you iceeedr!
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
Reply


Thread Tools
Display Modes

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 11:17.


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