How do I add this for admins - 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)
+--- Thread: How do I add this for admins (
/showthread.php?tid=385576)
How do I add this for admins -
Eminem 2ka9 - 16.10.2012
When an admin comments, it will add "Admin" to the start in the chatbox. Example: "Admin Thomas: Blah Blah" And the text will appear in pink.
I also want the admin player blip or color to be pink. Thanks !
Re: How do I add this for admins -
сомрτоn - 16.10.2012
you mean Tag behind the name ?
Re: How do I add this for admins -
Eminem 2ka9 - 16.10.2012
Yes just add "Admin" behind the name, and it all should appear in pink.
Re: How do I add this for admins -
DaizeN - 16.10.2012
Quote:
Originally Posted by Eminem 2ka9
Yes just add "Admin" behind the name, and it all should appear in pink.
|
Like an command such as /admins?
Re: How do I add this for admins -
Eminem 2ka9 - 16.10.2012
No I already have the /admins command. It should have "Admin" beside his name in the Chatbox.
If a player is admin level 1+ then "Admin" will appear beside his name. EXAMPLE: Admin<<This "Rafik" << Admin Name: Blah Blah.
So It should look like:
Admin Rafik: Blah Blah...
Re: How do I add this for admins -
gtakillerIV - 16.10.2012
This is just an example:
PHP код:
public OnPlayerText(playerid, text[])
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
new string[128];
new name[MAX_PLAYER_NAME];
format(string,sizeof(string),"Admin %s: %s", name,text);
SendClientMessageToAll(GetPlayerColor(playerid), string);
return 0;
}
return 1;
}
So you can create your own one.