AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Visible admin names in server says (https://forums.alliedmods.net/showthread.php?t=9282)

Trip~Hazard 01-12-2005 17:28

Visible admin names in server says
 
Is there a config that I can edit to keep the admin name from appearing in all server say messages? If so, what would I change? I still want admin commands to show admin names, just not tsay and csays. Basically to have it back to the way AMX functioned with server says. Thanks for any advice.

f1del1ty.oXi 01-12-2005 17:41

So you want everything like commands to show who did it, but remove the names from TSAYs and CSays and such?

Well..I was going to give you the solution but it's not as easy as AMX, as I had thought. :x I'll keep looking though..

XxAvalanchexX 01-12-2005 22:03

adminchat.sma, lines 227-236:

Code:
if ( get_cvar_num("amx_show_activity") == 2 ){   show_hudmessage(0,"%s :   %s",name,message[length])   client_print(0,print_notify,"%s :   %s",name,message[length])   console_print(id,"%s :   %s",name,message[length]) } else{   show_hudmessage(0,message[length])   client_print(0,print_notify,message[length])   console_print(id,message[length]) }

Change this to:

Code:
/*if ( get_cvar_num("amx_show_activity") == 2 ){   show_hudmessage(0,"%s :   %s",name,message[length])   client_print(0,print_notify,"%s :   %s",name,message[length])   console_print(id,"%s :   %s",name,message[length]) } else{*/ show_hudmessage(0,message[length]) client_print(0,print_notify,message[length]) console_print(id,message[length]) //}

Trip~Hazard 01-13-2005 00:46

Thanks Avalanche...I will hack on that .sma tomorrow at work. And thanks for trying fidelity, you understood exactly what I was asking.

Trip~Hazard 01-17-2005 03:08

Well I tried that code change Avalanche and had no success. It gave me about 3 warnings for "loose indentations" while compiling. An .amxx was created but it didn't stop the admins name from showing on server messages. Any suggestions?

XxAvalanchexX 01-17-2005 13:16

Server messages as in csays and tsays, or are you doing other admin text commands?

Trip~Hazard 01-18-2005 00:21

csays & tsays

XxAvalanchexX 01-18-2005 13:43

Well, did you put the .amxx file in the plugins folder? ;-)

Trip~Hazard 01-19-2005 00:23

:? lol yea. I overwrote the existing adminchat.amxx with the newly compiled one and all server says were unchanged. It could be that me simply cut/pasting your recommended change into my .sma somehow messes up the structure or something. It does give a couple "loose indentation" warnings while compiling.

Do you have a working .sma or .amxx that you could either provide as an attachment or send to me by email? Thanks for your help on this.

Da Bishop 01-19-2005 15:04

loose indents are nothing don't worry about them .... did you happen to restart your server or change the map after writing over the .amxx file :D?


All times are GMT -4. The time now is 19:22.

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