Raised This Month: $ Target: $400
 0% 

Problem on my plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bladell
Senior Member
Join Date: Jun 2012
Old 07-21-2014 , 10:00   Re: Problem on my plugin
Reply With Quote #6

Code:
#include <amxmodx>
 
#define NAME "Infection countdown"
#define VERSION "1.0"
#define AUTHOR "Bladell"

#define TIME 5

public plugin_init() 
{
	register_plugin(NAME, VERSION, AUTHOR)
	
	register_logevent("logevent_round_start", 2, "1=Round_Start")
}

public logevent_round_start(client)
{  
	set_task(1.0, "countdown", TIME)
}

public countdown(time)
{
	set_hudmessage(179, 0, 0, -1.0, -1.0, 2, 0.02, 1.0, 0.01, 0.1, 10)
	
	if(time)
	{			
		show_hudmessage(0, "The Infected Will Start In: %d Seconds", time)
		
		set_task(1.0, "countdown", time - 1)
	}
	else
		show_hudmessage(0, "Infection started")
}
Bladell 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