25.05.2016, 10:35
Quote:
|
Try this:
PHP Code:
I found Raven's Roleplay script and thats the code. i already converted it into ZCMD, you just have to change your variables in it to use. Hope it helps. EDIT: i fixed /mods command. here: PHP Code:
|
Code:
PHP Code:
CMD:admins(playerid, params[])
{
new string[128], bool:count = false, rank[35], status[15];
SendClientMessage(playerid, COLOR_ORANGE_RED, " ");
LOOP_PLAYERS(i)
{
if(IsPlayerGAdmin(i) || IsPlayerAdmin(i))
{
if(! count) SendClientMessage(playerid, COLOR_ORANGE_RED, "- Online Administrators -");
if(GetPVarType(playerid, "GAdmin_Onduty") != PLAYER_VARTYPE_NONE) status = "On Duty";
else status = "Playing";
if(! strcmp(ReturnPlayerName(i), "Frelan")) rank = "Server Owner & Developer";
else if(! strcmp(ReturnPlayerName(i), "_zionis_")) rank = "Server Co - Owner";
else if(IsPlayerAdmin(i)) rank = "RCON Admin";
else
{
switch(GetPlayerGAdminLevel(i))
{
case 1: rank = "Newbie Admin";
case 2: rank = "Junior Admin";
case 3: rank = "Pro Admin";
case 4: rank = "Lead Admin";
case 5: rank = "Master Admin";
case 6: rank = "Senior Admin";
default: rank = "Server Owner";
}
}
format(string, sizeof(string), "%s [%i] | Rank: %s | Level %i | Status: %s", ReturnPlayerName(i), i, rank, GetPlayerGAdminLevel(i), status);
SendClientMessage(playerid, COLOR_ORANGE_RED, string);
count = true;
}
}
if(! count) return SendClientMessage(playerid, COLOR_FIREBRICK, "ERROR: No admin on-duty currently.");
return 1;
}


