13.03.2018, 19:46
(
Последний раз редактировалось Zeus666; 13.03.2018 в 20:31.
)
Hi. I want to set a specific color for each admin level, and those colors to be shown in /admins. And to be shown a "Administrators are" message before showing each admin. How to do so?
Plus, I want to add /forumname which will show admin's forum name. ex each admin will set his forum name and at /admins it will show his forum name. Admin Name / Forum Name.
I want to be shown like
Online Administrators are:
Rank / Admin Name / Forum Name - On Duty.
Rank / Admin Name 2 / Forum Name 2 - Off Duty.
Rank / Admin Name 3 / Forum Name 3 - On Duty.
Now it shows
Rank Admin Name(ID)
How can I achieve this, pls ! I give up + rate
My code right now
Plus, I want to add /forumname which will show admin's forum name. ex each admin will set his forum name and at /admins it will show his forum name. Admin Name / Forum Name.
I want to be shown like
Online Administrators are:
Rank / Admin Name / Forum Name - On Duty.
Rank / Admin Name 2 / Forum Name 2 - Off Duty.
Rank / Admin Name 3 / Forum Name 3 - On Duty.
Now it shows
Rank Admin Name(ID)
How can I achieve this, pls ! I give up + rate
My code right now
Код HTML:
CMD:admins(playerid, params[])
{
if(pInfo[playerid][pHour] >= 0)
{
new adminstring[128];
new text[128];
if(IsPlayerConnected(playerid))
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(pInfo[i][pAdminLevel] > 0)
{
format(adminstring, sizeof(adminstring),"%s%s: %s\n", adminstring, GetAdminName(i), PlayerName(i));
format(text, sizeof(text),"Administratori Online");
}
}
}
SendClientMessage(playerid,COLOR_WHITE, text);
SendClientMessage(playerid,COLOR_GREEN, adminstring);
}
else return SendClientMessage(playerid,-1,"*"COL_LGREEN" Nici un admin online");
}
return 1;
}