Raised This Month: $ Target: $400
 0% 

[Help] Equalize music and glow for players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ghyth
Junior Member
Join Date: Mar 2014
Old 03-07-2014 , 11:07   [Help] Equalize music and glow for players
Reply With Quote #1

I could say as I do for the players to have glow in different colors?
and how do I equalize the music and put it to be heard?

Last edited by Ghyth; 03-07-2014 at 12:20.
Ghyth is offline
mapper07
Member
Join Date: Oct 2012
Location: NY
Old 03-07-2014 , 13:26   Re: [Help] Equalize music and glow for players
Reply With Quote #2

lol wut?
mapper07 is offline
Spawner30
BANNED
Join Date: Dec 2013
Location: I Don't Know Yet
Old 03-07-2014 , 13:35   Re: [Help] Equalize music and glow for players
Reply With Quote #3

^.- Explain More
Spawner30 is offline
Send a message via Skype™ to Spawner30
Ghyth
Junior Member
Join Date: Mar 2014
Old 03-07-2014 , 15:30   Re: [Help] Equalize music and glow for players
Reply With Quote #4

I want the players have 10 seconds Glow

I also want to put music on a plugin, as it should change the music to be heard well
Ghyth is offline
Spawner30
BANNED
Join Date: Dec 2013
Location: I Don't Know Yet
Old 03-07-2014 , 16:07   Re: [Help] Equalize music and glow for players
Reply With Quote #5

I Understang The Part Of Glow Time But To Put Music


PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fun>

#define CS_TEAM_CT 2
#define CS_TEAM_T 1

new cvar_time

public plugin_init()
{
   
register_plugin"Glow Sec""2.0""Spawner" );
   
RegisterHam(Ham_Spawn"player""player_spawn"1)
   
cvar_time register_cvar("amx_remove_render_time""10.0"// float x.x Seconde For Remove Glow :3
}

public 
player_spawn(id)
{
   if(!
is_user_alive(id))
      return
   
   new 
rgbalpha

   
switch(get_user_team(id))
   {
      case 
CS_TEAM_CT : { 00255alpha 255; }
      case 
CS_TEAM_T : { 25500alpha 255; }
   }
   
   
// set render color
   
set_user_rendering(idkRenderFxGlowShellrgbkRenderNormalalpha)

   
// remove render color
   
set_task(get_pcvar_float(cvar_time), "remove_color"id)
}

public 
remove_color(index)
   
set_user_rendering(indexkRenderFxGlowShell000,kRenderNormal0

Last edited by Spawner30; 03-07-2014 at 16:12.
Spawner30 is offline
Send a message via Skype™ to Spawner30
Old 03-08-2014, 09:48
Ghyth
This message has been deleted by Ghyth.
Spawner30
BANNED
Join Date: Dec 2013
Location: I Don't Know Yet
Old 03-08-2014 , 09:50   Re: [Help] Equalize music and glow for players
Reply With Quote #6

PuT The Code In PHP

1- Go Advanced
2- Click On PHP
3- Put The Code

Last edited by Spawner30; 03-08-2014 at 09:50.
Spawner30 is offline
Send a message via Skype™ to Spawner30
Old 03-08-2014, 09:51
Ghyth
This message has been deleted by Ghyth.
Old 03-08-2014, 09:56
Ghyth
This message has been deleted by Ghyth.
Ghyth
Junior Member
Join Date: Mar 2014
Old 03-08-2014 , 09:59   Re: [Help] Equalize music and glow for players
Reply With Quote #7

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

#define PLUGIN "RR FM"
#define VERSION "1.0"
#define AUTOR "Ghyth"

new spFile[96]

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTOR)
    
register_clcmd("amx_restart","cmdRR",ADMIN_CVAR)
    
set_task(54.45,"cancion")
    
set_task(54.5,"aviso")
    
set_task(55.1,"aviso1")
    
set_task(55.8,"aviso2")
    
set_task(56.5,"aviso3")
    
set_task(57.2,"aviso4")
    
set_task(60.0,"Autorr")
}

public 
plugin_precache()
{
    
formatspFile95"sound/fm/rr.wav")
    if(
file_exists(spFile))
    {
        
precache_sound("fm/rr.wav")
    }
}

public 
cmdRR(id,level,cid)
{
    if(!
cmd_access(id,level,cid,1))
        return 
PLUGIN_HANDLED
        
    set_task
(0.1,"setear",id)
    
    return 
PLUGIN_HANDLED
}

public 
setear(id)
{
    
set_task(1.45,"cancion")
    
set_task(1.5,"aviso")
    
set_task(2.1,"aviso1")
    
set_task(2.8,"aviso2")
    
set_task(3.5,"aviso3")
    
set_task(4.2,"aviso4")
    
set_task(6.5,"Autorr")
    new 
name[32]
    
get_user_name(idnamesizeof(name) - 1)
    
client_print(0,print_chat,"ADMIN %s : Seteo Un Super Restart !!!!!",name)
}

public 
cancion()
{
    if(
file_exists(spFile))
    {
        
client_cmd(0,"spk sound/fm/rr.wav")
    }
}
public 
aviso(){
    
set_hudmessage(25517085, -1.00.316.05.0)
    
show_hudmessage(0"--| Empieza la diversion!!! |--")
    new 
iPlayers32 ], iNumConos
    get_players
iPlayersiNum )
    for( new 
0iNumi++ ) 
    {
        
Conos iPlayers[i]

    }
    
Temblor(Conos)
    
}
public 
aviso1(){

    
set_hudmessage(25517085, -1.00.316.05.0)
    
show_hudmessage(0"--| One |--")
}
public 
aviso2(){

    
set_hudmessage(25517085, -1.00.316.05.0)
    
show_hudmessage(0"--| Two |--")
}
public 
aviso3(){

    
set_hudmessage(25517085, -1.00.316.05.0)
    
show_hudmessage(0"--| Three |--")
}
public 
aviso4(){

    
set_hudmessage(25517085, -1.00.316.02.0)
    
show_hudmessage(0"--| Four |--")
    new 
iPlayers32 ], iNumConos
    get_players
iPlayersiNum )
    for( new 
0iNumi++ ) 
    {
        
Conos iPlayers[i]

    }
    
Temblor(Conos)
}

public 
Autorr()
{
    
set_hudmessage(25517085, -1.00.316.02.0)
    
show_hudmessage(0,"eeeeeeesaaaa...!! ")
    
server_cmd("mp_freezetime 3")
    
server_cmd("sv_restart 1")
    
set_task(2.0,"Vale")
}

public 
Vale()
{
    new 
iPlayers32 ], iNumConos
    get_players
iPlayersiNum )
    for( new 
0iNumi++ ) 
    {
        
Conos iPlayers[i]
        
ScreenBlack(Conos)
    }
    new 
host[128],ip[32]
    
get_cvar_string("hostname"host127
    
get_cvar_string("net_address"ip31
    
set_hudmessage(random_num(55,255), random_num(55,255), random_num(55,255), -1.0, -1.016.08.0)
    
show_hudmessage(0,"%s ^n %s  ",host,ip)
    
server_cmd("mp_freezetime 0")
}

public 
Temblor(Conos)
{
    
message_begin(MSG_ALLget_user_msgid("ScreenShake"), {0,0,0}, Conos)
    
write_short(255<< 14 //ammount 
    
write_short(10 << 14//lasts this long 
    
write_short(255<< 14//frequency 
    
message_end() 
}
public 
ScreenBlack(Conos
{
    
message_begin(MSG_ALL,get_user_msgid("ScreenFade"),{0,0,0},Conos
    
write_short(1<<15)
    
write_short(1<<13)
    
write_short(1<<12
    
write_byte
    
write_byte
    
write_byte
    
write_byte255 
    
message_end()

I need to add the glow of this, as I do?
sorry for wrong post
Ghyth is offline
Spawner30
BANNED
Join Date: Dec 2013
Location: I Don't Know Yet
Old 03-08-2014 , 10:02   Re: [Help] Equalize music and glow for players
Reply With Quote #8

You Mean If You Do amx_restart They Show U a Countdown + The Players Got 10 Seconde Glow ?
Spawner30 is offline
Send a message via Skype™ to Spawner30
Ghyth
Junior Member
Join Date: Mar 2014
Old 03-08-2014 , 10:03   Re: [Help] Equalize music and glow for players
Reply With Quote #9

if, I mean I want the players in this event I have glow. Sorry for the ignorance
Ghyth is offline
Ghyth
Junior Member
Join Date: Mar 2014
Old 03-08-2014 , 10:19   Re: [Help] Equalize music and glow for players
Reply With Quote #10

how do I do that have glow?
Ghyth is offline
Old 03-09-2014, 13:23
Ghyth
This message has been deleted by YamiKaitou. Reason: wait 14 days before you bump
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 05:59.


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