Raised This Month: $ Target: $400
 0% 

Problem on my plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 07-18-2014 , 16:47   Re: Problem on my plugin
Reply With Quote #3

PHP Code:
#include <amxmodx>
 
#define TIME 5
#define TASKID 1337

new iTime

public plugin_init() {
    
        
register_logevent("logevent_round_start"2"1=Round_Start")
    
}
public 
logevent_round_startclient )
{  
        
iTime TIME
        
        
// every 1 sec will show the countdown & taskid = when the countdown is 0 don't show countdown again
        
set_task1.0"countdown"TASKID__"a"TIME )
    
        
set_hudmessage(17900, -1.0, -1.020.021.00.010.110)
        
show_hudmessageclient"The Infected Will Start In: 5 Seconds"iTime )

}
// countdown (5 - 4 - 3 - 2 ...)
public countdown()
{
    if( 
iTime >= )
    {    
        
// iTime-- : every 1 sec decrease 1 iTime
        
iTime--
        
        
set_hudmessage(17900, -1.0, -1.020.021.00.010.110)
        
show_hudmessage0"The Infected Will Start In: %i Seconds"iTime )
    }

__________________

Last edited by Eagle07; 07-18-2014 at 16:48.
Eagle07 is offline
 



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 13:04.


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