27.10.2015, 22:12
Hey, so I have an admin system and I thought it'd be great to have "admin status"
such as
Usage: /status [1,2,3]
Hint: Available (1), Busy (2), Away (3)
now, I wanna show it on my admins list, here is my admin list from South Central Roleplay -
And I want the admin status to be "Available" as default everytime, how I do this? I'm kinda new at this and I need some help around :P
such as
Usage: /status [1,2,3]
Hint: Available (1), Busy (2), Away (3)
now, I wanna show it on my admins list, here is my admin list from South Central Roleplay -
PHP код:
CMD:admins(playerid, params[])
{
new count = 0;
SendClientMessage(playerid, COLOR_YELLOW, "Online Administrators:");
foreach (new i : Player) if (PlayerData[i][pAdmin] > 0 && PlayerData[i][pAdminHide] < 1)
{
if (PlayerData[i][pAdminDuty])
SendClientMessageEx(playerid, COLOR_NICEBLUE, "* %s (Level: %d) - (Status)", ReturnName(i, 0), PlayerData[i][pAdmin]);
else
SendClientMessageEx(playerid, COLOR_NICEBLUE, "* %s (Level: %d) - (Status)", ReturnName(i, 0), PlayerData[i][pAdmin]);
count++;
}
if (!count) {
SendClientMessage(playerid, COLOR_WHITE, "There is no admins currently online");
}
return 1;
}