CMD:admins(playerid, params[])
{
SendClientMessage(playerid, 0xFF9944FF, "• • • • • • • • • • • [Admins Online] • • • • • • • • • • •");
new AdminNivel[10], ModoADM[22];
if(Player[playerid][qAdmin] == 1) AdminNivel = "Moderador";
if(Player[playerid][qAdmin] == 2) AdminNivel = "Auxiliar";
if(Player[playerid][qAdmin] == 3) AdminNivel = "Master";
if(Player[playerid][qAdmin] == 4) AdminNivel = "Chefao";
if(Player[playerid][qAdmin] == 5) AdminNivel = "Sub-Dono";
if(Player[playerid][qAdmin] == 6) AdminNivel = "Dono";
if(Player[playerid][qAdmin] == 7) AdminNivel = "Fundador";
if(Player[playerid][qVerADM] == 0) ModoADM = "{8FFFA0}(Jogando)";
if(Player[playerid][qVerADM] == 1) ModoADM = "{FBAAF2}(Trabalhando)";
if(Player[playerid][qVerADM] == 2) ModoADM = "{EE7163}(AFK)";
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && Player[i][qAdmin] > 0)
{
format(String,sizeof(String), "{FFFFFF}Nome: {FFEB71}(%s[%d]) {FFFFFF}| Nivel: {6ADFFF}(%s[%d]) {FFFFFF}| Modo: %s", PlayerNick(playerid), playerid, AdminNivel,Player[i][qAdmin], ModoADM);
SendClientMessage(i, 0xF5F5F5F6, String);
}
}
if(Player[playerid][qAdmin] == 0)
{
SendClientMessage(playerid, 0xFF9A86F6, "Nao hб nenhum administrador online.");
}
return true;
}
CMD:admins(playerid, params[])
{
SendClientMessage(playerid, 0xFF9944FF, "• • • • • • • • • • • [Admins Online] • • • • • • • • • • •");
new AdminNivel[10], ModoADM[22];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(Player[i][qAdmin] == 1) AdminNivel = "Moderador";
if(Player[i][qAdmin] == 2) AdminNivel = "Auxiliar";
if(Player[i][qAdmin] == 3) AdminNivel = "Master";
if(Player[i][qAdmin] == 4) AdminNivel = "Chefao";
if(Player[i][qAdmin] == 5) AdminNivel = "Sub-Dono";
if(Player[i][qAdmin] == 6) AdminNivel = "Dono";
if(Player[i][qAdmin] == 7) AdminNivel = "Fundador";
if(Player[i][qVerADM] == 0) ModoADM = "{8FFFA0}(Jogando)";
if(Player[i][qVerADM] == 1) ModoADM = "{FBAAF2}(Trabalhando)";
if(Player[i][qVerADM] == 2) ModoADM = "{EE7163}(AFK)";
if(IsPlayerConnected(i) && Player[i][qAdmin] > 0)
{
format(String,sizeof(String), "{FFFFFF}Nome: {FFEB71}(%s[%d]) {FFFFFF}| Nivel: {6ADFFF}(%s[%d]) {FFFFFF}| Modo: %s", PlayerNick(playerid), playerid, AdminNivel,Player[i][qAdmin], ModoADM);
SendClientMessage(playerid, 0xF5F5F5F6, String);
}
}
return true;
}
pawn Код:
|
CMD:admins(playerid, params[])
{
SendClientMessage(playerid, 0xFF9944FF, "• • • • • • • • • • • [Admins Online] • • • • • • • • • • •");
new AdminNivel[10], ModoADM[22], contarpt = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && Player[i][qAdmin] > 0)
{
switch(Player[i][qAdmin])
{
case 1: AdminNivel = "Moderador";
case 2: AdminNivel = "Auxiliar";
case 3: AdminNivel = "Master";
case 4: AdminNivel = "Chefao";
case 5: AdminNivel = "Sub-Dono";
case 6: AdminNivel = "Dono";
case 7: AdminNivel = "Fundador";
}
switch(Player[i][qVerADM])
{
case 0: ModoADM = "{8FFFA0}(Jogando)";
case 1: ModoADM = "{FBAAF2}(Trabalhando)";
case 2: ModoADM = "{EE7163}(AFK)";
}
contarpt++;
format(String,sizeof(String), "{FFFFFF}Nome: {FFEB71}(%s[%d]) {FFFFFF}| Nivel: {6ADFFF}(%s[%d]) {FFFFFF}| Modo: %s", PlayerNick(i), i, AdminNivel, Player[i][qAdmin], ModoADM);
}
}
if(contarpt == 0)
return SendClientMessage(playerid, 0xFF9A86F6, "Nao hб nenhum administrador online.");
else
SendClientMessage(playerid, 0xF5F5F5F6, String);
return true;
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && Player[i][qAdmin] > 0)
{
format(String,sizeof(String), "{FFFFFF}Nome: {FFEB71}(%s[%d]) {FFFFFF}| Nivel: {6ADFFF}(%s[%d]) {FFFFFF}| Modo: %s", PlayerNick(playerid), playerid, AdminNivel,Player[i][qAdmin], ModoADM);
SendClientMessage(i, 0xF5F5F5F6, String);
}
}
cara nгo entendo muito de pawn mais tipo olha a lуgica nгo sei se vou falar merda rs
PHP код:
|