(A) tag with name
#1

hello samp,i want to know how to tag (A) with any admin,, and (Vip) with Vip player.. +1 for helper
Reply
#2

What do you mean?
Reply
#3

It depends on your script.
This is a way to make it check for the player name:
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,24);
if(strcmp(tfname,"yourname",true) ==0)
{
new pName[MAX_PLAYER_NAME], String[128];
GetPlayerName(playerid, pName, 24);
format(String, sizeof(String), "{F81414}[{FFFFFF}YOURRANK{F81414}]{FFFFFF}%s[%i]: %s", pName, playerid, text);
SendClientMessageToAll(-1, String);
return 0;
}

It should be pasted under public OnPlayerText
Reply
#4

I mean Attach (A) tag with player name if player Admin..
Simple a name is Sana..if Sana have admin level than attach tag and it show (A)Sana
In Main Chat
Reply
#5

I need this tag for all Admins not only one
Reply
#6

In order to do this, you need the variable holding the admin level of the player
like:
Код:
    if(PlayerInfo[playerid][AdminLevel] == 1) //This is a way to check the admin level, could be checked in different ways depends on the script.
    {
		new pName[MAX_PLAYER_NAME], String[128];
		GetPlayerName(playerid, pName, 24);
		format(String, sizeof(String), "{F81414}[{F3FF02}Admin{F81414}]{F3FF02}%s[%i]: %s", pName, playerid, text);
		SendClientMessageToAll(-1, String);
		return 0;
    }
Reply
#7

Your code looks good..i will try and post here result
Reply
#8

bad results not working
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)