07.04.2011, 18:06
Galera й o seguinte,o /admins do meu server nгo aparece nada...
Dai quando digita /admins
Ai aparece assim:
Administradores conectados:
E nгo aparece os nomes dos administradores,sу aparece isso...
Sistema do /admins
Sistema de logar como Administrador
Se alguem poder me ajudar,eu agradeзo :]
Dai quando digita /admins
Ai aparece assim:
Administradores conectados:
E nгo aparece os nomes dos administradores,sу aparece isso...
Sistema do /admins
pawn Код:
if (strcmp(cmd, "/admins", true) == 0)
{
SendClientMessage(playerid, 0x0080FFAA, "Administradores conectados:");
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1 && PlayerInfo[i][pAdmin] > 0)
{
if(admtrampando[i] == 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
if(PlayerInfo[i][pAdmin] == 1)
{
format(string, 256, "~~> %s [Administrador]", sendername);
SendClientMessage(playerid, 0xFFFFFFAA, string);
}
if(PlayerInfo[i][pAdmin] >= 2 && PlayerInfo[i][pAdmin] < 1337)
{
format(string, 256, "~~> %s [Administrador]", sendername);
SendClientMessage(playerid, 0xFFFFFFAA, string);
}
if(PlayerInfo[i][pAdmin] == 2000)
{
format(string, 256, "~~> %s [Administrador]", sendername);
SendClientMessage(playerid, 0xFFFFFFAA, string);
}
if(PlayerInfo[i][pAdmin] == 3000)
{
format(string, 256, "~~> %s [Administrador]", sendername);
SendClientMessage(playerid, 0xFFFFFFAA, string);
}
if(PlayerInfo[i][pAdmin] == 4000)
{
format(string, 256, "~~> %s [Administrador]", sendername);
SendClientMessage(playerid, 0xFFFFFFAA, string);
}
if(PlayerInfo[i][pAdmin] == 5000)
{
format(string, 256, "~~> %s [Administrador]", sendername);
SendClientMessage(playerid, 0xFFFFFFAA, string);
}
if(PlayerInfo[i][pAdmin] > 1410065407)
{
}
}
else
{
//GetPlayerName(i, sendername, sizeof(sendername));
if(PlayerInfo[i][pAdmin] == 1)
{
//format(string, 256, "Nome: %s [Moderador] [[((Jogando))]]", sendername);
//SendClientMessage(playerid, 0xF6AD00AA, string);
}
if(PlayerInfo[i][pAdmin] >= 2 && PlayerInfo[i][pAdmin] < 1337)
{
//format(string, 256, "Nome: %s [Administrador] [[((Jogando))]]", sendername);
//SendClientMessage(playerid, 0xF6AD00AA, string);
}
if(PlayerInfo[i][pAdmin] == 2000)
{
//format(string, 256, "Nome: %s [Administrador Master] [[((Jogando))]]", sendername);
//SendClientMessage(playerid, 0xF6AD00AA, string);
}
if(PlayerInfo[i][pAdmin] == 3000)
{
//format(string, 256, "Nome: %s [Administrador Diretor] [[((Jogando))]]", sendername);
//SendClientMessage(playerid, 0xF6AD00AA, string);
}
if(PlayerInfo[i][pAdmin] == 4000)
{
//format(string, 256, "Nome: %s [Administrador Sub-Dono] [[((Jogando))]]", sendername);
//SendClientMessage(playerid, 0x00BFFFAA, string);
}
if(PlayerInfo[i][pAdmin] == 5000)
{
//format(string, 256, "Nome: %s [Dono do Brasil Virtual LifeCity] [[((Jogando))]]", sendername);
//SendClientMessage(playerid, 0x00BFFFAA, string);
}
if(PlayerInfo[i][pAdmin] > 5000)
{
}
}
}
}
return 1;
}
pawn Код:
if(strcmp(cmd, "/logaradmin", true) == 0 || strcmp(cmd, "/pa", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
if(admtrampando[playerid] > 0)
{
admtrampando[playerid] = 0;
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string, 256, "O Administrador %s [ ID %d] Deslogou como administrador.",sendername, playerid);
SendClientMessageToAll(COLOR_DBLUE, string);
KillTimer(TempoAdministrador);
SetPlayerHealth(playerid,100);
}
else
{
admtrampando[playerid] = 1;
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string, 256, "O Administrador %s [ ID %d ] logou como administrador.",sendername, playerid);
SendClientMessageToAll(COLOR_DBLUE, string);
TempoAdministrador = SetTimerEx("Administrador", 1000, 1, "i", playerid);
}
}
return 1;
}