[Pomoć] Komanda /admins

Započeo Edmirâ„¢, Jul 15, 2012, 23:53:47 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Edmirâ„¢

Detaljan opis problema: Pa ovako, nešto sam izmijenio komandu admins, tj kad je admin onduty da sja ovaj kružić ispred, al kod mene ne sja kad je onduty, uvijek je bijel.
Skripta koju koristim: RPG/DM
Neke slike/video/kod za lakse dobivanje pomoci (npr.slika server.cfg, server log ili slično):
if (strcmp(cmd, "/admins", true) == 0)
{
        if(IsPlayerConnected(playerid))
    {
SendClientMessage(playerid, COLOR_ADMINDUTY, "Admini Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] == 1)
    {
      if(OnDuty[playerid] == 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "  ADMIN: {FFFFFF}• {FFFFFF}%s (1)", sendername, PlayerInfo[i]);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
if(PlayerInfo[i][pAdmin] == 2)
    {
if(OnDuty[playerid] == 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "  ADMIN: {FFFFFF}• {FFFFFF}%s (2)", sendername, PlayerInfo[i]);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
    if(PlayerInfo[i][pAdmin] == 3)
    {
if(OnDuty[playerid] == 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "  ADMIN: {FFFFFF}• {FFFFFF}%s (3)", sendername, PlayerInfo[i]);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
if(PlayerInfo[i][pAdmin] == 4)
    {
if(OnDuty[playerid] == 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "  ADMIN: {FFFFFF}• {FFFFFF}%s (4)", sendername, PlayerInfo[i]);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
if(PlayerInfo[i][pAdmin] == 5)
    {
if(OnDuty[playerid] == 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "  ADMIN: {FFFFFF}• {FFFFFF}%s (5)", sendername, PlayerInfo[i]);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}

Respect: Gagi, Maki187, Phillips, TerminuS, Neno, Lepotic, [AL] K4[Я]!K3â,,¢, Gotti747