Raised This Month: $ Target: $400
 0% 

Hide say command?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Wentix
Junior Member
Join Date: Jan 2009
Old 02-27-2009 , 04:54   Re: Hide say command?
Reply With Quote #3

Replace "return PLUGIN_CONTINUE" to "return PLUGIN_HANDLED" in command "sayTimeLeft"

Code:
public sayTimeLeft(id)
{
	if (get_cvar_float("mp_timelimit"))
	{
		new a = get_timeleft()
		
		if (get_cvar_num("amx_time_voice"))
		{
			new svoice[128]
			setTimeVoice(svoice, 127, 0, a)
			client_cmd(id, "%s", svoice)
		}
		client_print(0, print_chat, "%L:  %d:%02d", LANG_PLAYER, "TIME_LEFT", (a / 60), (a % 60))
	}
	else
		client_print(0, print_chat, "%L", LANG_PLAYER, "NO_T_LIMIT")
	
	return PLUGIN_HANDLED
}
Wentix 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 17:05.


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