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
}