04.07.2016, 02:16
Tambem pode fazer com defines
PHP код:
#define Azul "{2EF9F9}"
#define Vermelho "{F92E2E}"
#define Verde "{2DFB80}"
#define Laranja "{FBBA2D}
if(PlayerInfo[i][pAdmin] > 0)
{
Msg(playerid, VERDECLARO, "Administradores Online:");
if(PlayerInfo[i][pAdmin] == 1) AdminNivel = ""Verde"Coordenador";
if(PlayerInfo[i][pAdmin] == 2) AdminNivel = ""Vermelho"Moderador";
if(PlayerInfo[i][pAdmin] == 3) AdminNivel = ""Laranja"Administrador";
if(PlayerInfo[i][pAdmin] == 4) AdminNivel = ""Vermelho"Gerente";
if(PlayerInfo[i][pAdmin] == 5) AdminNivel = ""Azul"Programador";
format(String, sizeof(String), "%s | %s", Nome(i), AdminNivel);
Msg(playerid, BRANCO, String);
IsAdmin ++;