Raised This Month: $ Target: $400
 0% 

C4 Timer


Post New Thread Reply   
 
Thread Tools Display Modes
1337
Senior Member
Join Date: Mar 2009
Old 04-17-2009 , 21:16   Re: C4 Timer
Reply With Quote #41

hi.
amx_showc4msg <0|1> doesnt work for me...
1337 is offline
Honor
Junior Member
Join Date: Aug 2010
Old 08-20-2010 , 04:53   Re: C4 Timer
Reply With Quote #42

Thanks, This was what I was searching
Honor is offline
nuked
Member
Join Date: Oct 2009
Old 08-22-2010 , 14:26   Re: C4 Timer
Reply With Quote #43

Am I missing something here.. the bomb is planted - perfect - the bomb sprite is showing - BUT - the time keep on ticking - not the bomb time but the round time.... Not good... But maybe I'm doing something wrong?
__________________
If it's not you it has to be them
nuked is offline
Send a message via ICQ to nuked Send a message via MSN to nuked
nuked
Member
Join Date: Oct 2009
Old 08-24-2010 , 02:13   Re: C4 Timer
Reply With Quote #44

Hmm... A bit false my last post... It's only the first round that the counter misbehaves but still a bug right?
__________________
If it's not you it has to be them
nuked is offline
Send a message via ICQ to nuked Send a message via MSN to nuked
vase070
Senior Member
Join Date: Jun 2011
Old 08-28-2011 , 18:44   Re: C4 Timer
Reply With Quote #45

only two bugs i saw in this plugin
one : when the server first start if you plant the bomb on the first map and the first round the c4 exact timer will not show
two : when you are in spectate you cant see the timer in the right corner of the screen when the bomb is planted
vase070 is offline
sameer9092
New Member
Join Date: Jan 2012
Location: pakistan
Old 04-01-2012 , 03:58   Re: C4 Timer
Reply With Quote #46

im new so can any one tell me what to do cvars and what are cvars?
sameer9092 is offline
Send a message via Skype™ to sameer9092
dyablows
Junior Member
Join Date: Sep 2008
Location: Iasi,Romania
Old 02-08-2013 , 12:33   Re: C4 Timer
Reply With Quote #47

can anyone make c4timer announcement via HL-Speech ?
dyablows is offline
AlexisK
Junior Member
Join Date: Jan 2013
Old 03-11-2013 , 12:11   Re: C4 Timer
Reply With Quote #48

Hey

I use this plugin C4 timer on my server

This plugin has a feature that notifies in HUD message and it says "Detonation time intiallized ....."

would anyone be able to change so that it pops up a chat message colored with green or red text from the server when the bomb is planted instead of the HUD message, that says like "The bomb has been planted, one detonation or defusal opposite team will be killed"
AlexisK is offline
3emu
Junior Member
Join Date: Jan 2011
Location: BETTER THAN YOUR!
Old 08-03-2014 , 19:41   Re: C4 Timer
Reply With Quote #49

Can someone update the plugin?
3emu is offline
Vivo
Senior Member
Join Date: May 2014
Old 08-06-2014 , 23:40   Re: C4 Timer
Reply With Quote #50

Quote:
Originally Posted by AlexisK View Post
Hey

I use this plugin C4 timer on my server

This plugin has a feature that notifies in HUD message and it says "Detonation time intiallized ....."

would anyone be able to change so that it pops up a chat message colored with green or red text from the server when the bomb is planted instead of the HUD message, that says like "The bomb has been planted, one detonation or defusal opposite team will be killed"
PHP Code:
#include <amxmodx>

#define PLUGIN     "c4 timer"
#define VERSION "1.1"
#define AUTHOR     "cheap_suit"

new g_c4timer
new mp_c4timer

new cvar_showteam
new cvar_flash
new cvar_sprite
new cvar_msg

new g_msg_showtimer
new g_msg_roundtime
new g_msg_scenario

#define MAX_SPRITES    2
new const g_timersprite[MAX_SPRITES][] = { "bombticking""bombticking1" }
new const 
g_message[] = "The bomb has been planted, one  detonation or defusal opposite team will be killed"

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_cvar(PLUGINVERSIONFCVAR_SPONLY|FCVAR_SERVER)

    
cvar_showteam     register_cvar("amx_showc4timer""3")
    
cvar_flash     register_cvar("amx_showc4flash""0")
    
cvar_sprite     register_cvar("amx_showc4sprite""1")
    
cvar_msg     register_cvar("amx_showc4msg""0")
    
mp_c4timer     get_cvar_pointer("mp_c4timer")

    
g_msg_showtimer    get_user_msgid("ShowTimer")
    
g_msg_roundtime    get_user_msgid("RoundTime")
    
g_msg_scenario    get_user_msgid("Scenario")
    
    
register_event("HLTV""event_hltv""a""1=0""2=0")
    
register_logevent("logevent_plantedthebomb"3"2=Planted_The_Bomb")
}

public 
event_hltv()
    
g_c4timer get_pcvar_num(mp_c4timer)

public 
logevent_plantedthebomb()
{
    new 
showtteam get_pcvar_num(cvar_showteam)
    
    static 
players[32], numi
    
switch(showtteam)
    {
        case 
1get_players(playersnum"ace""TERRORIST")
        case 
2get_players(playersnum"ace""CT")
        case 
3get_players(playersnum"ac")
        default: return
    }
    for(
0num; ++iset_task(1.0"update_timer"players[i])
}

public 
update_timer(id)
{
    
message_begin(MSG_ONE_UNRELIABLEg_msg_showtimer_id)
    
message_end()
    
    
message_begin(MSG_ONE_UNRELIABLEg_msg_roundtime_id)
    
write_short(g_c4timer)
    
message_end()
    
    
message_begin(MSG_ONE_UNRELIABLEg_msg_scenario_id)
    
write_byte(1)
    
write_string(g_timersprite[clamp(get_pcvar_num(cvar_sprite), 0, (MAX_SPRITES 1))])
    
write_byte(150)
    
write_short(get_pcvar_num(cvar_flash) ? 20 0)
    
message_end()
    
    if(
get_pcvar_num(cvar_msg))
    {
        
client_print(0print_chatg_message)
    }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/ 
I'm noob, if not working or wrong, tell me to fix.
__________________
ViRuSeS # The best Servers and Host: viruses.ga
CSGO: 185.107.96.150:27015 or viruses.ga:27015
TeamSpeak3: 185.107.96.150:9987 or viruses.ga
Welcome! Good luck and have fun enjoy your time.
Vivo 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 09:23.


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