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

[CS:S & Others] FireWaLL Radio (v1.02, 15 April 2012)


Post New Thread Reply   
 
Thread Tools Display Modes
LightningZLaser
Member
Join Date: Dec 2010
Old 04-15-2012 , 07:10   Re: [CS:S & Others] FireWaLL Radio (v1.02, 15 April 2012)
Reply With Quote #21

v1.02- Updated plugin with the updated radio station links. Now message options are all set in cvars.

Disabling Plugin Messages:
To Disable Welcome Messages- Set server cvar: fr_welcome_message 0
To Disable Round Messages- Set server cvar: fr_round_message 0
To Disable Listening Messages- Set server cvar: fr_listen_message 0
LightningZLaser is offline
kaju666
Junior Member
Join Date: Feb 2010
Old 05-23-2012 , 16:51   Re: [CS:S & Others] FireWaLL Radio (v1.02, 15 April 2012)
Reply With Quote #22

why missing plugin?
kaju666 is offline
LightningZLaser
Member
Join Date: Dec 2010
Old 05-24-2012 , 05:28   Re: [CS:S & Others] FireWaLL Radio (v1.02, 15 April 2012)
Reply With Quote #23

Quote:
Originally Posted by kaju666 View Post
why missing plugin?
can u state more about the problem? Is the plugin corrupted or something?
LightningZLaser is offline
kaju666
Junior Member
Join Date: Feb 2010
Old 05-24-2012 , 14:28   Re: [CS:S & Others] FireWaLL Radio (v1.02, 15 April 2012)
Reply With Quote #24

when i type !radio i get radio page, but in player place i have missing plugin.
kaju666 is offline
LightningZLaser
Member
Join Date: Dec 2010
Old 05-25-2012 , 13:26   Re: [CS:S & Others] FireWaLL Radio (v1.02, 15 April 2012)
Reply With Quote #25

Maybe you're missing some plugins to run the webpage? I'm not sure, because it works on my community's server.
LightningZLaser is offline
kaju666
Junior Member
Join Date: Feb 2010
Old 05-27-2012 , 13:14   Re: [CS:S & Others] FireWaLL Radio (v1.02, 15 April 2012)
Reply With Quote #26

yeah i know, but what? i think it uses internet explorer to run pages, and i have flash player on it
kaju666 is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 05-29-2012 , 17:12   Re: [CS:S & Others] FireWaLL Radio (v1.02, 15 April 2012)
Reply With Quote #27

Why exactly is this

PHP Code:
!(StrEqual(steamid"STEAM_0:1:15503124"false)) 
scattered around the plugin?
__________________
databomb is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 05-29-2012 , 17:18   Re: [CS:S & Others] FireWaLL Radio (v1.02, 15 April 2012)
Reply With Quote #28

Also,

PHP Code:
    RegConsoleCmd("radio"ConsoleCmd);
    
RegConsoleCmd("say !radio"ConsoleCmd);
    
RegConsoleCmd("say_team !radio"ConsoleCmd); 
Have you tried just RegConsoleCmd("sm_radio", ConsoleCmd); ?

Lastly, why are you using FindConVar everywhere? You can take 4 bytes of RAM instead and save lots of CPU.
__________________

Last edited by databomb; 05-29-2012 at 17:23. Reason: added
databomb is offline
LightningZLaser
Member
Join Date: Dec 2010
Old 05-30-2012 , 02:52   Re: [CS:S & Others] FireWaLL Radio (v1.02, 15 April 2012)
Reply With Quote #29

Quote:
Originally Posted by databomb View Post
Why exactly is this

PHP Code:
!(StrEqual(steamid"STEAM_0:1:15503124"false)) 
scattered around the plugin?
It's just my steam id. I made it so that it will not display any info about me listening to a channel no matter what the server cvar is.

Quote:
Originally Posted by databomb View Post
Also,

PHP Code:
    RegConsoleCmd("radio"ConsoleCmd);
    
RegConsoleCmd("say !radio"ConsoleCmd);
    
RegConsoleCmd("say_team !radio"ConsoleCmd); 
Have you tried just RegConsoleCmd("sm_radio", ConsoleCmd); ?

Lastly, why are you using FindConVar everywhere? You can take 4 bytes of RAM instead and save lots of CPU.
I fixed that extra lines of regconsolecmd in v1.02 (removed the old version now, to prevent confusion)

About the convars, if I set a variable to a convar
eg.
Code:
    new Handle:roundMessage = FindConVar("fr_round_message");
    new RoundMessage = GetConVarInt(roundMessage);
as a global variable, at the start of the plugin, will the variable update itself if this convar is changed?
I wasn't too sure so I just made it check for the convar every time it had to know the value of the convar.
LightningZLaser is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 10-06-2012 , 16:14   Re: [CS:S & Others] FireWaLL Radio (v1.02, 15 April 2012)
Reply With Quote #30

Quote:
Originally Posted by databomb View Post
Why exactly is this

PHP Code:
!(StrEqual(steamid"STEAM_0:1:15503124"false)) 
scattered around the plugin?
Yeah... can you remove that from the public version and just add it privately?

Any chance at configuration options?
KyleS 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 04:43.


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