Raised This Month: $51 Target: $400
 12% 

Hide say command?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
biscuit628
Senior Member
Join Date: Jun 2007
Location: 香港HongKong
Old 02-27-2009 , 04:34   Hide say command?
Reply With Quote #1

For example..timeleft.amxx
when i type "thetime"
it will show you "the time is now xxx\xxx\xxx"
---------------------------------------
Player:thetime <<How to hide this msg?
The time is now xxx\xxx\xxx
---------------------------------------
biscuit628 is offline
Mlk27
Veteran Member
Join Date: May 2008
Old 02-27-2009 , 04:53   Re: Hide say command?
Reply With Quote #2

use return PLUGIN_HANDLED
Mlk27 is offline
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
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 05:38.


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