Here is the stock for the rank names.
pawn Код:
stock GetAdminLevelName(playerid)
{
new name[32];
if(PlayerInfo[playerid][pAdmin] == 1) format(name, sizeof(name), "Rank Name");
else if(PlayerInfo[playerid][pAdmin] == 2) format(name, sizeof(name), "Rank Name");
else if(PlayerInfo[playerid][pAdmin] == 3) format(name, sizeof(name), "Rank Name");
else if(PlayerInfo[playerid][pAdmin] == 4) format(name, sizeof(name), "Rank Name");
else if(PlayerInfo[playerid][pAdmin] == 1336) format(name, sizeof(name), "Rank Name");
else if(PlayerInfo[playerid][pAdmin] == 1337) format(name, sizeof(name), "Rank Name");
else if(PlayerInfo[playerid][pAdmin] == 99999) format(name, sizeof(name), "Rank Name");
return name;
}
GetPlayerNameEx
pawn Код:
stock GetPlayerNameEx(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
for(new i = 0; i < MAX_PLAYER_NAME; i++)
{
if(name[i] == '_') name[i] = ' ';
}
return name;
}
Make a string for the text.
pawn Код:
format(string, sizeof(string), "* %s %s: %s", GetAdminLevelName(playerid), GetPlayerNameEx(playerid), params);
Then send it to your admins, you can add in the playerid yourself.