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

Random C4 Timer


Post New Thread Reply   
 
Thread Tools Display Modes
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 08-02-2006 , 03:46   Re: Random C4 Timer
Reply With Quote #11

A. yes, cvar stuffs. Do it
B. I cannot think of a map personally that start with de_ and does not have a the "detonate explosives" objective. And if this is the case, a simple get_mapname should do :O
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
VEN
Veteran Member
Join Date: Jan 2005
Old 08-02-2006 , 04:07   Re: Random C4 Timer
Reply With Quote #12

+ cs_de_*
I don't like this obsolete inefficient method.
Let's say you run this plugin on some kind of DM server where all bomb targets is removed before plugin_init. Your method will detect such map as bomb/defuse but in fact it's not so. So, in my opinion, implementation methods worth more than -1 module in the memory, especially if it's a fakemeta which becomes more and more popular/usable every day.

Last edited by VEN; 08-02-2006 at 04:13.
VEN is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 08-02-2006 , 04:27   Re: Random C4 Timer
Reply With Quote #13

Point taken.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 08-09-2006 , 00:43   Re: Random C4 Timer
Reply With Quote #14

Code:
    if(ANOUNCE)         client_print(0,print_chat,"[RANDOM-C4] The C4-timer has been set to %i seconds.",randomTime);     else if(ANOUNCE==2)         client_print(0,print_chat,"[RANDOM-C4] There is a new random time on the C4-timer");
should be
Code:
    if(ANOUNCE==1)         client_print(0,print_chat,"[RANDOM-C4] The C4-timer has been set to %i seconds.",randomTime);     else if(ANOUNCE==2)         client_print(0,print_chat,"[RANDOM-C4] There is a new random time on the C4-timer");

or else the second if statement will never be called.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 08-09-2006 , 01:24   Re: Random C4 Timer
Reply With Quote #15

Are you sure because afaik,
PHP Code:
if(ANOUNCE
means
if(ANOUNCE==1)
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 08-09-2006 , 01:33   Re: Random C4 Timer
Reply With Quote #16

no.

if(something)
checks if "something" has a value that is not 0.

if(!something)
checks if "something" has a value that is 0.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
MR.X
Member
Join Date: Aug 2006
Old 08-09-2006 , 05:25   Re: Random C4 Timer
Reply With Quote #17

I wont txt for random c4 time I dont know how & where bot It can some one tell me
MR.X is offline
Send a message via MSN to MR.X
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 08-09-2006 , 05:32   Re: Random C4 Timer
Reply With Quote #18

sweaty for the map name



Code:
public plugin_init() {
new mapname[32]
get_mapname(mapname, 32)
if(contain(mapname, "de_")){
register_cvar("random_time or w\e is the cvar name" . "1")
} 




k007 is offline
Send a message via MSN to k007
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 08-09-2006 , 10:04   Re: Random C4 Timer
Reply With Quote #19

k007: That's already been addressed. The method you provided is not reliable.
__________________
Brad is offline
Old 08-09-2006, 10:23
SweatyBanana
This message has been deleted by SweatyBanana.
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 08-11-2006 , 00:59   Re: Random C4 Timer
Reply With Quote #20

New update:
  • Added multilingual support.
  • Changed RoundStart to after the pausetime. (fixed Problem displaying in WC3FT)
  • Fixed checking teams and displaying.

Last edited by SweatyBanana; 08-11-2006 at 15:13.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
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:01.


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