CMD:admins(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
new count = 0, string[196], sendername[MAX_PLAYER_NAME];
SendClientMessage(playerid, COLOR_TEAL, "----Admins Online----------------------------------------------------");
foreach(Player, i)
{
if(IsPlayerConnected(i))
{
if(playerVariables[i][pAdminLevel] == 1)
{
format(string, sizeof(string), "(%d) %s - admin level 1", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[playerid][pAdminLevel] == 2)
{
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 2", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 2", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[playerid][pAdminLevel] == 3)
{
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 3", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 3", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[playerid][pAdminLevel] == 4)
{
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 4", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 4", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[playerid][pAdminLevel] == 5)
{
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 5", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 5", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[playerid][pAdminLevel] == 6)
{
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 6", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 6", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[playerid][pAdminLevel] == 7)
{
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - Founder", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - Founder", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
}
}
27320 if(count == 0)
{
SendClientMessage(playerid, COLOR_IN2,"* No admins online on the server.");
SendClientMessage(playerid, COLOR_TEAL,"----------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE,"Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n.");
SendClientMessage(playerid, COLOR_TEAL,"----------------------------------------------------------------------------");
}
27327 else if(count == 1)
{
SendClientMessage(playerid, COLOR_IN2,"* Now are 1 admin online.");
SendClientMessage(playerid, COLOR_TEAL,"----------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE,"Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n.");
SendClientMessage(playerid, COLOR_TEAL,"----------------------------------------------------------------------------");
}
27334 else if (count >= 2)
{
27336 format(string, sizeof(string), "* There are now %d admins online.", count);
SCM(playerid, COLOR_IN2, string);
SendClientMessage(playerid, COLOR_TEAL, "----------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, "Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n.");
SendClientMessage(playerid, COLOR_TEAL, "----------------------------------------------------------------------------");
}
}
return 1;
}
C:\Users\SebyIonut\Desktop\TEST GM\gamemodes\buggedv330.pwn(27320) : error 017: undefined symbol "count"
C:\Users\SebyIonut\Desktop\TEST GM\gamemodes\buggedv330.pwn(27327) : error 017: undefined symbol "count"
C:\Users\SebyIonut\Desktop\TEST GM\gamemodes\buggedv330.pwn(27334) : error 017: undefined symbol "count"
C:\Users\SebyIonut\Desktop\TEST GM\gamemodes\buggedv330.pwn(27336) : error 017: undefined symbol "string"
C:\Users\SebyIonut\Desktop\TEST GM\gamemodes\buggedv330.pwn(27336) : error 017: undefined symbol "string"
C:\Users\SebyIonut\Desktop\TEST GM\gamemodes\buggedv330.pwn(27336) : error 029: invalid expression, assumed zero
C:\Users\SebyIonut\Desktop\TEST GM\gamemodes\buggedv330.pwn(27336) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
CMD:admins(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
new count = 0, string[254], sendername[MAX_PLAYER_NAME];
SendClientMessage(playerid, COLOR_TEAL, "----Admins Online----------------------------------------------------");
foreach(Player, i)
{
if(IsPlayerConnected(i))
{
if(playerVariables[i][pAdminLevel] == 1)
{
format(string, sizeof(string), "(%d) %s - admin level 1", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[playerid][pAdminLevel] == 2)
{
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 2", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 2", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[playerid][pAdminLevel] == 3)
{
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 3", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 3", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[playerid][pAdminLevel] == 4)
{
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 4", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 4", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[playerid][pAdminLevel] == 5)
{
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 5", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 5", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[playerid][pAdminLevel] == 6)
{
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 6", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 6", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[playerid][pAdminLevel] == 7)
{
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - Founder", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - Founder", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
}
}
if(count == 0)
{
SendClientMessage(playerid, COLOR_IN2,"* No admins online on the server.");
SendClientMessage(playerid, COLOR_TEAL,"----------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE,"Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n.");
SendClientMessage(playerid, COLOR_TEAL,"----------------------------------------------------------------------------");
}
else if(count == 1)
{
SendClientMessage(playerid, COLOR_IN2,"* Now are 1 admin online.");
SendClientMessage(playerid, COLOR_TEAL,"----------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE,"Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n.");
SendClientMessage(playerid, COLOR_TEAL,"----------------------------------------------------------------------------");
}
else if (count >= 2)
{
format(string, sizeof(string), "* There are now %d admins online.", count);
SCM(playerid, COLOR_IN2, string);
SendClientMessage(playerid, COLOR_TEAL, "----------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, "Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n.");
SendClientMessage(playerid, COLOR_TEAL, "----------------------------------------------------------------------------");
}
}
return 1;
}
CMD:admins(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
new count = 0, string[196], sendername[MAX_PLAYER_NAME];
SendClientMessage(playerid, COLOR_TEAL, "----Admins Online----------------------------------------------------");
foreach(Player, i)
{
if(IsPlayerConnected(i))
{
if(playerVariables[i][pAdminLevel] == 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 1", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 1", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[playerid][pAdminLevel] == 2)
{
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 2", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 2", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[playerid][pAdminLevel] == 3)
{
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 3", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 3", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[playerid][pAdminLevel] == 4)
{
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 4", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 4", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[playerid][pAdminLevel] == 5)
{
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 5", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 5", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[playerid][pAdminLevel] == 6)
{
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 6", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 6", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[playerid][pAdminLevel] == 7)
{
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - Founder", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - Founder", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
}
}
if(count == 0)
{
SendClientMessage(playerid, COLOR_IN2,"* No admins online on the server.");
SendClientMessage(playerid, COLOR_TEAL,"----------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE,"Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n.");
SendClientMessage(playerid, COLOR_TEAL,"----------------------------------------------------------------------------");
}
else if(count == 1)
{
SendClientMessage(playerid, COLOR_IN2,"* Now are 1 admin online.");
SendClientMessage(playerid, COLOR_TEAL,"----------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE,"Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n.");
SendClientMessage(playerid, COLOR_TEAL,"----------------------------------------------------------------------------");
}
else if (count >= 2)
{
format(string, sizeof(string), "* There are now %d admins online.", count);
SCM(playerid, COLOR_IN2, string);
SendClientMessage(playerid, COLOR_TEAL, "----------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, "Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n.");
SendClientMessage(playerid, COLOR_TEAL, "----------------------------------------------------------------------------");
}
}
return 1;
}
CMD:admins(playerid, params[]) { if (playerVariables[i][pScore] >= 750) { new count = 1, string[828], sendername[MAX_PLAYER_NAME]; for(new i = 0; i < MAX_PLAYERS; i++) { GetPlayerName(i, sendername, sizeof(sendername)); if(IsPlayerConnected(i) && playerVariables[i][pAdminLevel] >= 1 && playerVariables[i][pAdminLevel] < 8) { // If admin level is higher than 1, here it goes... format(string, sizeof(string), "%s%s(%i) - Level: %i\n", string, playerVariables[i][pName] , i, playerVariables[i][pAdminLevel]); count ++; } } if(count != 1) { // Show admins that are presently online, along with their rank ShowPlayerDialog(playerid, 200, DIALOG_STYLE_MSGBOX, "Online Administrators", string, "OK", ""); } else { // No admins online - Either this or nothing, either way the user will know admins are offline... ShowPlayerDialog(playerid, 200, DIALOG_STYLE_MSGBOX, "Online Admins", "There are no administrators present.", "OK", ""); } } else { SendClientMessage(playerid, COLOR_WHITE, "{E81919}[ERROR] {FFFFFF}You must have at least 750 score to view the admin list."); } return 1; }
CMD:admins(playerid, params[])
{
new string[1000];
new count = 0;
if(IsPlayerConnected(playerid))
{
sendername[MAX_PLAYER_NAME];
SendClientMessage(playerid, COLOR_TEAL, "----Admins Online----------------------------------------------------");
foreach(Player, i)
{
if(IsPlayerConnected(i))
{
if(playerVariables[i][pAdminLevel] == 1)
{
format(string, sizeof(string), "(%d) %s - admin level 1", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[playerid][pAdminLevel] == 2)
{
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 2", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 2", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[playerid][pAdminLevel] == 3)
{
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 3", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 3", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[playerid][pAdminLevel] == 4)
{
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 4", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 4", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[playerid][pAdminLevel] == 5)
{
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 5", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 5", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[playerid][pAdminLevel] == 6)
{
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 6", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 6", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[playerid][pAdminLevel] == 7)
{
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - Founder", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - Founder", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
}
}
27320 if(count == 0)
{
SendClientMessage(playerid, COLOR_IN2,"* No admins online on the server.");
SendClientMessage(playerid, COLOR_TEAL,"----------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE,"Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n.");
SendClientMessage(playerid, COLOR_TEAL,"----------------------------------------------------------------------------");
}
27327 else if(count == 1)
{
SendClientMessage(playerid, COLOR_IN2,"* Now are 1 admin online.");
SendClientMessage(playerid, COLOR_TEAL,"----------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE,"Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n.");
SendClientMessage(playerid, COLOR_TEAL,"----------------------------------------------------------------------------");
}
27334 else if (count >= 2)
{
27336 format(string, sizeof(string), "* There are now %d admins online.", count);
SCM(playerid, COLOR_IN2, string);
SendClientMessage(playerid, COLOR_TEAL, "----------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, "Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n.");
SendClientMessage(playerid, COLOR_TEAL, "----------------------------------------------------------------------------");
}
}
return 1;
}
try this
PHP код:
|
if(playerVariables[playerid][pAdminLevel] == 2)
if(playerVariables[i][pAdminLevel] == 2)
CMD:admins(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
new count = 0, string[254], sendername[MAX_PLAYER_NAME];
SendClientMessage(playerid, COLOR_TEAL, "----Admins Online----------------------------------------------------");
foreach(Player, i)
{
if(IsPlayerConnected(i))
{
if(playerVariables[i][pAdminLevel] == 1)
{
format(string, sizeof(string), "(%d) %s - admin level 1", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[i][pAdminLevel] == 2)
{
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 2", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 2", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[i][pAdminLevel] == 3)
{
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 3", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 3", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[i][pAdminLevel] == 4)
{
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 4", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 4", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[i][pAdminLevel] == 5)
{
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 5", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 5", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[i][pAdminLevel] == 6)
{
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - admin level 6", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - admin level 6", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
if(playerVariables[i][pAdminLevel] == 7)
{
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty[i] == 0)
{
format(string, sizeof(string), "(%d) %s - Founder", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else
{
format(string, sizeof(string), "(%d) %s - Founder", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
}
}
if(count == 0)
{
SendClientMessage(playerid, COLOR_IN2,"* No admins online on the server.");
SendClientMessage(playerid, COLOR_TEAL,"----------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE,"Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n.");
SendClientMessage(playerid, COLOR_TEAL,"----------------------------------------------------------------------------");
}
else if(count == 1)
{
SendClientMessage(playerid, COLOR_IN2,"* Now are 1 admin online.");
SendClientMessage(playerid, COLOR_TEAL,"----------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE,"Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n.");
SendClientMessage(playerid, COLOR_TEAL,"----------------------------------------------------------------------------");
}
else if (count >= 2)
{
format(string, sizeof(string), "* There are now %d admins online.", count);
SCM(playerid, COLOR_IN2, string);
SendClientMessage(playerid, COLOR_TEAL, "----------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, "Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n.");
SendClientMessage(playerid, COLOR_TEAL, "----------------------------------------------------------------------------");
}
}
return 1;
}
CMD:admins(playerid,params[])
{
new count,string[145],sendername[MAX_PLAYER_NAME];
SendClientMessage(playerid, COLOR_TEAL, "----Admins Online----------------------------------------------------");
foreach(Player,i)
{
if(IsPlayerConnected(i))
{
if(playerVariables[i][pAdminLevel] == 1)
{
format(string,sizeof string,"(%d) %s - admin level 1",i,sendername);
SendClientMessage(playerid,COLOR_WHITE,string);
count ++;
}
else if(playerVariables[i][pAdminLevel] == 2)
{
format(string,sizeof string,"(%d) %s - admin level 2",i,sendername);
SendClientMessage(playerid,COLOR_WHITE,string);
count ++;
}
else if(playerVariables[i][pAdminLevel] == 3)
{
format(string,sizeof string,"(%d) %s - admin level 3",i,sendername);
SendClientMessage(playerid,COLOR_WHITE,string);
count ++;
}
else if(playerVariables[i][pAdminLevel] == 4)
{
format(string, sizeof(string), "(%d) %s - admin level 4", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else if(playerVariables[i][pAdminLevel] == 5)
{
format(string, sizeof(string), "(%d) %s - admin level 5", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else if(playerVariables[i][pAdminLevel] == 6)
{
format(string, sizeof(string), "(%d) %s - admin level 6", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
else if(playerVariables[i][pAdminLevel] == 7)
{
format(string, sizeof(string), "(%d) %s - admin level 7", i, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
}
if(count == 0)
{
SendClientMessage(playerid, COLOR_IN2,"* No admins online on the server.");
SendClientMessage(playerid, COLOR_TEAL,"----------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE,"Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n.");
SendClientMessage(playerid, COLOR_TEAL,"----------------------------------------------------------------------------");
}
else if(count == 1)
{
SendClientMessage(playerid, COLOR_IN2,"* Now are 1 admin online.");
SendClientMessage(playerid, COLOR_TEAL,"----------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE,"Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n.");
SendClientMessage(playerid, COLOR_TEAL,"----------------------------------------------------------------------------");
}
else if(count >= 2)
{
format(string, sizeof(string), "* There are now %d admins online.", count);
SCM(playerid, COLOR_IN2, string);
SendClientMessage(playerid, COLOR_TEAL, "----------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, "Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n.");
SendClientMessage(playerid, COLOR_TEAL, "----------------------------------------------------------------------------");
}
return 1;
}
stock GetAdminLevel(playerid) {
new Rank[24];
switch(playerVariables[playerid][pAdminLevel]) {
case 1: "Level 1"; //change to what admin rank u want to call it
case 2: "Level 2";
case 3: "Level 3";
case 4: "Level 4";
case 5: "Level 5";
case 6: "Level 6";
case 7: "Level 7";
}
return Rank;
}
CMD:admins(playerid,params[])
{
new string[128],sendername[MAX_PLAYER_NAME],count;
foreach(Player,i) {
if(IsPlayerConnected(i)) {
format(string,sizeof(string),"Name: %s -- Rank: %s",GetAdminLevel(i),sendername);
count++;
SendClientMessage(playerid,COLOR_WHITE,string);
}
}
if(count == 0) return SendClientMessage(playerid,COLOR_RED,"There are no admins online");
else if(count >= 1) {
format(string,sizeof(string),"There are %i admins online",count);
SendClientMessage(playerid,COLOR_RED,string);
SendClientMessage(playerid, COLOR_TEAL, "----------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, "Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n.");
SendClientMessage(playerid, COLOR_TEAL, "----------------------------------------------------------------------------");
}
return true;
}