Quote:
Originally Posted by Bugsy
I don't think your client_infochanged() code is needed for his purposes. For your ban plugin where you want to hook name change, may want to consider switching to this.
I think add() or copy() is ideal, format()/formatex() should be avoided if you are not truly formatting.
Code:
new szConfig[ MAX_FMT_LENGTH ] , iConfigDirLen;
iConfigDirLen = get_configsdir(szConfig, charsmax( szConfig) );
copy( szConfig[ iConfigDirLen ] , charsmax( szConfig ) - iConfigDirLen , "/newban.ini" );
|
I completely agree, I just wrote the plugin so that it understands the mechanics of reading / writing to the ban file, I don't use this bans system and wouldn't use it by name.
Now regarding copy / add I totally agree with you.
Regarding the client_infochanged issue I had a problem executing that function, in which the names of the players were being changed "automatically", by names of other players that had already left the server.
__________________