28.10.2012, 01:51
Create a stock of this however you can modify it to your own.
And
format(string, sizeof(string), "|_____Online Admins_____|");
SendClientMessage(playerid, COLOR_ORANGE, string);
If(PlayerInfo[playerid][pAdmin] >=1)
{
format(string, sizeof(string), " %s %s", AdminName(playerid), GetPlayerName(i));
SendClientMessage(playerid, COLOR_HCHAT, string);
}
If you get errors you should modify it on the basis of your script.
Код:
stock AdminName(playerid) { new name[32]; if(PlayerInfo[playerid][pAdmin] == 1) format(name, sizeof(name), "Junior Admin"); else if(PlayerInfo[playerid][pAdmin] == 2) format(name, sizeof(name), "General Admin"); else if(PlayerInfo[playerid][pAdmin] == 3) format(name, sizeof(name), "Senior Admin"); else if(PlayerInfo[playerid][pAdmin] == 6) format(name, sizeof(name), "Lead Admin"); else if(PlayerInfo[playerid][pAdmin] == 1337) format(name, sizeof(name), "Head Admin"); else if(PlayerInfo[playerid][pAdmin] == 1338) format(name, sizeof(name), "Server Owner"); return name; }
format(string, sizeof(string), "|_____Online Admins_____|");
SendClientMessage(playerid, COLOR_ORANGE, string);
If(PlayerInfo[playerid][pAdmin] >=1)
{
format(string, sizeof(string), " %s %s", AdminName(playerid), GetPlayerName(i));
SendClientMessage(playerid, COLOR_HCHAT, string);
}
If you get errors you should modify it on the basis of your script.