Raised This Month: $ Target: $400
 0% 

Help me plzzz [CountDown]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NiceGuyx
Senior Member
Join Date: Nov 2011
Old 11-30-2011 , 10:55   Help me plzzz [CountDown]
Reply With Quote #1

Hello,
I want after i say /countdown then
Start a hud message who change to other number after "1sec"
Exemple: 5 "1sec =" 4 "1sec" 3 "1sec" 2 "1sec" 1 "1sec" FIGHT!!

PHP Code:
register_clcmd("say /countdown""cmd_countdown")
new const 
g_Count[][] =
{
    
"5",
    
"4",
    
"3",
    
"2",
    
"1",
    
"FIGHT!!"
}


public 
cmd_countdown(id)
{
        
set_hudmessage(00205, -1.0, -1.021.09.00.10.24)
        
show_hudmessage(0,"%i"g_Count)
        
g_Count 0
        g_Count
++

It's not working

Last edited by NiceGuyx; 11-30-2011 at 10:57.
NiceGuyx is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 11-30-2011 , 10:56   Re: Help me plzzz [CountDown]
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?t=130616
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
NiceGuyx
Senior Member
Join Date: Nov 2011
Old 11-30-2011 , 11:04   Re: Help me plzzz [CountDown]
Reply With Quote #3

It's not working very good
After i say /countdown

I have to wait "1sec" before the Countdown Start

And you can use only Numbers, "I want after 1" Then show: FIGHT!!

Last edited by NiceGuyx; 11-30-2011 at 15:32.
NiceGuyx is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 12-01-2011 , 15:50   Re: Help me plzzz [CountDown]
Reply With Quote #4

From Wrecked's Post:

Code:
#define SECONDS 10 new iSeconds public function( ) {     iSeconds = SECONDS     set_hudmessage( 120, 120, 120, 0.50, 0.50, 0, 0.1, 0.8, 0.1, 0.1, -1 )     show_hudmessage( 0, "Seconds Remaining: %i", iSeconds )         set_task( 1.0, "TaskShowCountdown", TASKID, _, _, "a", SECONDS ) } public TaskShowCountdown( ) {     set_hudmessage( 120, 120, 120, 0.50, 0.50, 0, 0.1, 0.8, 0.1, 0.1, -1 )     iSeconds--     if( iSeconds < 1 )     {         show_hudmessage( 0, "FIGHT!!!" )     }     else     {         show_hudmessage( 0, "Seconds Remaining: %i", iSeconds )     } }
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath 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 08:24.


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