Raised This Month: $ Target: $400
 0% 

Say text as a hud


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
blackops7799
Senior Member
Join Date: May 2006
Old 10-08-2006 , 15:42   Say text as a hud
Reply With Quote #1

Hey, i was able to make the say text in OOC chat for TSRP a hud. I was wondering if you can get it to stack instead of going over eachother.

Example
[OOC] blackops (( Sup ))

[OOC] DERKA (( hey ))


Code:
public handle_say(id)
{
	new Speech[300], arg[32], arg2[32]

	read_args(Speech, 299)
	remove_quotes(Speech)
	if(equali(Speech,"")) return PLUGIN_HANDLED
	parse(Speech,arg,31,arg2,31) 

	new name[33]
	get_user_name(id,name,sizeof(name))

	if(equali(Speech,"ooc",3))
	{
		if(get_cvar_num("sv_ooc") <= 0) {
			client_print(id,print_chat,"[TalkArea] OOC is currently Disabled!^n")
			return PLUGIN_HANDLED
		}
		replace(Speech,299,"ooc","")
		trim(Speech)
		remove_quotes(Speech)
		set_hudmessage(0, 255, 0, 1.9, 0.60, 0.0, 0.0, 20.0)
		show_hudmessage(0,"^n[OOC] %s: (( %s ))^n",name,Speech)
		client_print(0,print_console,"^n[OOC] %s: (( %s ))^n",name,Speech)

		if( get_cvar_num( "rp_printconsole" ) == 1 ) server_print( Speech )

		return PLUGIN_HANDLED
	}
blackops7799 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 04:58.


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