21.11.2018, 21:08
Someone know why it does't working?, he compiles, but ingame it just do not work
PHP код:
CMD:adminlist(playerid, params[])
{
new nomeadmintrabalho[MAX_PLAYER_NAME];
new nomeadminjogo[MAX_PLAYER_NAME];
new admlevel;
new admtrabalhando;
new count = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if((IsPlayerAdmin(i)) && (GetPlayerAdminLevel(i) >= 2))
{
GetPlayerName(i, nomeadmintrabalho, sizeof(nomeadmintrabalho));
GetPlayerAdminLevel(i);
if(IsPlayerOnAdminDuty(i))
{
admtrabalhando = 1;
}
else
{
admtrabalhando = 2;
}
new rank[24];
new checagem[50];
switch(admlevel)
{
case 1: rank = "Ajudante";
case 2: rank = "Admin 1";
case 3: rank = "Admin 2";
case 4: rank = "Admin 3";
case 5: rank = "Admin Master";
case 6: rank = "CEO Servidor";
}
switch(admtrabalhando)
{
case 1: checagem = "Trabalhando";
case 2: checagem = "Jogador";
}
new str[1000];
format(str, sizeof(str), "[%s] %s (%s)", rank, nomeadmintrabalho, checagem);
SendClientMessage(playerid, -1, str);
count++;
}
}
}
return 1;
}