SA-MP Forums Archive
Admin Name Set - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Admin Name Set (/showthread.php?tid=168428)



Admin Name Set - [HIR]AlbanianSoilder - 16.08.2010

Is it possible when a admin does /adminmode it places them into admin mode, changes color, etc.

But what i wanted to do is it adds the tag [ADMIN] and thier last nick, as my nickname was "John" when i do /adminmode it does "[ADMIN]John" Please help. Thanks!


Re: Admin Name Set - CuervO - 16.08.2010

pawn Код:
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string),"[ADMIN]%s",name);
SetPlayerName(playerid, string);
As for the removing the [ADMIN] you could store their old name or use an advanced way with strdel and etcetera...


Re: Admin Name Set - [HIR]AlbanianSoilder - 16.08.2010

Thank you very much sir!


Re: Admin Name Set - Mike_Peterson - 16.08.2010

Double thanks i've just wanted to post a thread now its not neccesary anymore