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

Change your Chatname v2.0


Post New Thread Reply   
 
Thread Tools Display Modes
Korxu
Senior Member
Join Date: Sep 2010
Old 11-22-2012 , 08:55   Re: Change your Chatname v2.0
Reply With Quote #11

Ok Magnificent, I will add it. Thanks.

YaMiKaitou, instead of do a lot of is_user_alive ( ) checks, I save the player status in dead and in respawn.
Korxu is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-10-2016 , 12:53   Re: Change your Chatname v2.0
Reply With Quote #12

If you made your life harder and cached get_user_flags, then do it properly. You should also hook client_infochanged forward and update gb_AdminPlayer correctly.

gs_CycCustomChatname [ index ] = "" instead of this you should use EOS(which is '\0', \ being the default escape character in pawn, unless #pragma ctrlchar alter it). EOS is end of string, so the null terminator.

PHP Code:
if ( equal gs_CycCustomChatname index ], "" ) != 
Also instead of this just check if != EOS.

In change_custom_chatname static is misused.

PHP Code:
if ( chatname_len > ( charsmax chatname ) - ) ) 
That makes no sense.

Also, if you want to copy a string into another, use copy.

That's enough for now. Unapproved, PM me when you will make some changes.
__________________
HamletEagle 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 17:45.


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