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

CT killing music Request


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CheetosFXP
Junior Member
Join Date: Oct 2018
Old 10-23-2018 , 13:18   CT killing music Request
Reply With Quote #1

Hey, I need a mod, that when I kill CT, then music is turned on for everyone, random.
Thanks to all the helpers!
CheetosFXP is offline
CheetosFXP
Junior Member
Join Date: Oct 2018
Old 10-26-2018 , 14:15   Re: CT killing music Request
Reply With Quote #2

Help?
CheetosFXP is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 10-26-2018 , 18:13   Re: CT killing music Request
Reply With Quote #3

do you mean, if ct team wins, there will start a music, if t team wins will start another music? or
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
Mr Misw
Member
Join Date: Aug 2018
Location: India
Old 10-27-2018 , 03:47   Re: CT killing music Request
Reply With Quote #4

Try
PHP Code:
#include <amxmodx>
#include <amxmisc>


public plugin_init() 
{
    
register_plugin
    
(
        .
plugin_name " ScrewedUP [ Playing Music On CT Death] ",
        .
version " 1.0"
        .
author " ScrewedUP "
    
)
    
    
register_cvar"sup_ctdeathmusic""1.0" FCVAR_SERVER|FCVAR_SPONLY )
    
}

public 
plugin_precache()
{

    
precache_sound("sup_ctdeath/sup1.mp3")
    
    
precache_sound("sup_ctdeath/sup2.mp3")
    
    
precache_sound("sup_ctdeath/sup3.mp3")
    
    
precache_sound("sup_ctdeath/sup4.mp3")
    
}


public 
client_deathvictim )
{
    new 
Victim_Team get_user_team(victim)
    
    if ( 
Victim_Team == )
    {
        
PlayMusic()
    }
    return 
PLUGIN_CONTINUE;
}
PlayMusic()
{
    switch( 
random_num) )
    {
        case 
1:
        {
            
            
client_cmd"mp3 play ^"sound/sup_ctdeath/sup1.mp3^"" )
            
        }
        case 
2:
        {
            
            
client_cmd"mp3 play ^"sound/sup_ctdeath/sup2.mp3^"" )
            
        }
        case 
3:
        {
            
            
client_cmd"mp3 play ^"sound/sup_ctdeath/sup3.mp3^"" )
            
        }
        case 
4:
        {
            
            
client_cmd"mp3 play ^"sound/sup_ctdeath/sup4.mp3^"" )
            
        }
        
    }

__________________
Facebook ==> Here
ScrewedUP's Website :
Main Website
My Ranking System [Skin Version] :
ScrewedUP Ranking System
My Ranking System [Without Skin Version] :
ScrewedUP Ranking System

Last edited by Mr Misw; 10-27-2018 at 05:44.
Mr Misw 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 11:01.


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