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

C4 Countdown Sounds


Post New Thread Reply   
 
Thread Tools Display Modes
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 10-12-2020 , 10:49   Re: C4 Countdown Sounds
Reply With Quote #11

You cannot use sourcemod plugins on amxx and vise versa.
__________________

Mordekay is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 10-12-2020 , 12:09   Re: C4 Countdown Sounds
Reply With Quote #12

Stop sending me PM's about that.
If you have sourcemod use this plugin.
If you are using amxx yuse the plugin provided with it as it does what you want.
You cannot simply change .sma to .sp and expect this to work. amxx is NOT sourcemod.
__________________


Last edited by Mordekay; 10-12-2020 at 12:09.
Mordekay is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-12-2020 , 13:59   Re: C4 Countdown Sounds
Reply With Quote #13

https://forums.alliedmods.net/showthread.php?t=278600
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 10-12-2020 , 19:42   Re: C4 Countdown Sounds
Reply With Quote #14

i think he wants to play custom sounds in c4 countdown events, not the default ones, so it would be something like this

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "c4 countdown custom"
#define VERSION "1.0"
#define AUTHOR "tarsisd2"

new c4_countdown;
public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_logevent("Bomb_Planted"3"2=Planted_The_Bomb");
    
register_logevent("Round_Ended"2"1=Round_End");
}
public 
Round_Ended()
{
    if(
task_exists(4567))
    {
        
remove_task(4567);
    }
}
public 
Bomb_Planted()
{
    
c4_countdown get_cvar_num("mp_c4timer");
    
set_task(1.0"countdown"4567""0"b");
}
public 
countdown()
{
    if(
c4_countdown 0)
    {
        if(
c4_countdown == 30 || c4_countdown == 20 || c4_countdown <= 10)
        {
            
play_sound(c4_countdown);
        }
    }
    else
    {
        
remove_task(4567);
    }
}
play_sound(count)
{
    
client_cmd(0"mp3 play sound/misc/%ds.mp3"count);
}
public 
plugin_precache()
{
    
precache_sound("mp3 play sound/misc/30s.mp3");
    
precache_sound("mp3 play sound/misc/20s.mp3");
    
precache_sound("mp3 play sound/misc/10s.mp3");
    
precache_sound("mp3 play sound/misc/9s.mp3");
    
precache_sound("mp3 play sound/misc/8s.mp3");
    
precache_sound("mp3 play sound/misc/7s.mp3");
    
precache_sound("mp3 play sound/misc/6s.mp3");
    
precache_sound("mp3 play sound/misc/5s.mp3");
    
precache_sound("mp3 play sound/misc/4s.mp3");
    
precache_sound("mp3 play sound/misc/3s.mp3");
    
precache_sound("mp3 play sound/misc/2s.mp3");
    
precache_sound("mp3 play sound/misc/1s.mp3");

not great but you get the point

Last edited by tarsisd2; 10-12-2020 at 19:42.
tarsisd2 is offline
zay
BANNED
Join Date: Jul 2020
Old 10-14-2020 , 00:44   Re: C4 Countdown Sounds
Reply With Quote #15

Quote:
Originally Posted by OciXCrom View Post
Thank you but I don't want style c4
zay is offline
zay
BANNED
Join Date: Jul 2020
Old 10-14-2020 , 00:47   Re: C4 Countdown Sounds
Reply With Quote #16

Quote:
Originally Posted by tarsisd2 View Post
i think he wants to play custom sounds in c4 countdown events, not the default ones, so it would be something like this

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "c4 countdown custom"
#define VERSION "1.0"
#define AUTHOR "tarsisd2"

new c4_countdown;
public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_logevent("Bomb_Planted"3"2=Planted_The_Bomb");
    
register_logevent("Round_Ended"2"1=Round_End");
}
public 
Round_Ended()
{
    if(
task_exists(4567))
    {
        
remove_task(4567);
    }
}
public 
Bomb_Planted()
{
    
c4_countdown get_cvar_num("mp_c4timer");
    
set_task(1.0"countdown"4567""0"b");
}
public 
countdown()
{
    if(
c4_countdown 0)
    {
        if(
c4_countdown == 30 || c4_countdown == 20 || c4_countdown <= 10)
        {
            
play_sound(c4_countdown);
        }
    }
    else
    {
        
remove_task(4567);
    }
}
play_sound(count)
{
    
client_cmd(0"mp3 play sound/misc/%ds.mp3"count);
}
public 
plugin_precache()
{
    
precache_sound("mp3 play sound/misc/30s.mp3");
    
precache_sound("mp3 play sound/misc/20s.mp3");
    
precache_sound("mp3 play sound/misc/10s.mp3");
    
precache_sound("mp3 play sound/misc/9s.mp3");
    
precache_sound("mp3 play sound/misc/8s.mp3");
    
precache_sound("mp3 play sound/misc/7s.mp3");
    
precache_sound("mp3 play sound/misc/6s.mp3");
    
precache_sound("mp3 play sound/misc/5s.mp3");
    
precache_sound("mp3 play sound/misc/4s.mp3");
    
precache_sound("mp3 play sound/misc/3s.mp3");
    
precache_sound("mp3 play sound/misc/2s.mp3");
    
precache_sound("mp3 play sound/misc/1s.mp3");

not great but you get the point
Yeah I want this but I'm not a developer I don't know how to make plugins can you please make it and send it here then I will download the plugin thank you please
zay is offline
zay
BANNED
Join Date: Jul 2020
Old 10-14-2020 , 02:00   Re: C4 Countdown Sounds
Reply With Quote #17

Error
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	40
Size:	40.1 KB
ID:	184373  
zay is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 10-14-2020 , 07:13   Re: C4 Countdown Sounds
Reply With Quote #18

Quote:
Originally Posted by zay View Post
Error
You should to save file before complier !!
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-14-2020 , 07:39   Re: C4 Countdown Sounds
Reply With Quote #19

Quote:
Originally Posted by zay View Post
Thank you but I don't want style c4
A "style" is just the way of displaying the timer. Nobody is forcing you to use the fancy preset ones. The plugin is fully customizable, it has sounds, it has text and from what I understood, it's what you want.
__________________

Last edited by OciXCrom; 10-14-2020 at 07:40.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 10-14-2020 , 13:49   Re: C4 Countdown Sounds
Reply With Quote #20

Quote:
Originally Posted by OciXCrom View Post
A "style" is just the way of displaying the timer. Nobody is forcing you to use the fancy preset ones. The plugin is fully customizable, it has sounds, it has text and from what I understood, it's what you want.
but in your plugin can we use custom sounds? like in my server i have a different countdown voice like 30 seconds left, hurry up, 20 seconds go defuse, then 10, down with different custom sounds,

if i add a folder in your plugin like VOICE_SPEAKER sound/custom_c4 will the plugin precache and play those files? and then i would have to add START_VOICE_AT 30
tarsisd2 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:20.


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