Szerző Téma: /admins javítása  (Megtekintve 857 alkalommal)

/admins javítása
« Dátum: 2012. szeptember 25. - 17:56:44 »
0 Show voters
Nos itt van egy parancs aminek leütésére mutatnia a kéne az online lévõ adminokat de ebbõl a kódból csak a
SendClientMessage(playerid, COLOR_GREEN, \"|____ Online Adminok ____|\");

 sor valósul meg. Nem mutatja a fent lévõ adminokat. Valaki megtudná mondani, hogy mi a hiba?
Elõre is köszönöm a válaszokat.
 
   if (strcmp(cmd, \"/admins\", true) == 0) // By CuervO_NegrO
{
        if(IsPlayerConnected(playerid))
    {
        SendClientMessage(playerid, COLOR_GREEN, \"|____ Online Adminok ____|\");
   for(new i = 0; i < MAX_PLAYERS; i++)
   {
      if(IsPlayerConnected(i))
      {
          if(PlayerInfo[pAdmin] >= 1 && PlayerInfo[pAdmin] <= 1338 || PlayerInfo[pTester] >= 1)
          {
              new admtext[64];
              if(PlayerInfo[pAppearList] == 1)
              {
                  if(PlayerInfo[pAdmin] == 1338) { admtext = \"Tulajdonos\"; }
               else if(PlayerInfo[pAdmin] == 1337) { admtext = \"Scripter\"; }
               else if(PlayerInfo[pAdmin] == 6) { admtext = \"Fejlesztõ\"; }
               else if(PlayerInfo[pAdmin] == 5) { admtext = \"Fõ Adminisztrátor\"; }
               else if(PlayerInfo[pAdmin] == 4) { admtext = \"Szerver Adminisztrátor \"; }
               else if(PlayerInfo[pAdmin] == 3) { admtext = \"Adminisztrátor \"; }
               else if(PlayerInfo[pAdmin] == 2)   { admtext = \"Globális Moderátor\"; }
               else if(PlayerInfo[pAdmin] == 1) { admtext = \"Moderátor\"; }
               else if(PlayerInfo[pTester] == 3) { admtext = \"Lead Tester\"; }
               else if(PlayerInfo[pTester] == 2) { admtext = \"Tester\"; }
               else if(PlayerInfo[pTester] == 1) { admtext = \"Trial Tester\"; }
               else { admtext = \"Ismeretlen adminrang\"; }
            }
            GetPlayerName(i, sendername, sizeof(sendername));
            if(PlayerInfo[pAdminDuty] == 0 && PlayerInfo[pAppearList] == 1)
            {
               format(string, sizeof(string), \"%s - %s\", admtext, sendername);
               SendClientMessage(playerid, COLOR_WHITE, string);
            }
            else if(PlayerInfo[pAdminDuty] == 1 && PlayerInfo[pAppearList] == 1)
            {
                format(string, sizeof(string), \"%s - %s (On Duty)\", admtext, sendername);
               SendClientMessage(playerid, TEAM_VAGOS_COLOR, string);
            }
         }
      }
   }
}
return 1;
}

Nem elérhető Eads

/admins javítása
« Válasz #1 Dátum: 2012. szeptember 28. - 20:00:21 »
0 Show voters
if (strcmp(cmd, \"/admins\", true) == 1) // By CuervO_NegrO
{
        if(IsPlayerConnected(playerid))
    {
        SendClientMessage(playerid, COLOR_GREEN, \"|____ Online Adminok ____|\");
   for(new i = 0; i < MAX_PLAYERS; i++)
   {
      if(IsPlayerConnected(i))
      {
          if(PlayerInfo[pAdmin] >= 1 && PlayerInfo[pAdmin] <= 1338 || PlayerInfo[pTester] >= 1)
          {
              new admtext[64];
              if(PlayerInfo[pAppearList] == 1)
              {
                  if(PlayerInfo[pAdmin] == 1338) { admtext = \"Tulajdonos\"; }
               else if(PlayerInfo[pAdmin] == 1337) { admtext = \"Scripter\"; }
               else if(PlayerInfo[pAdmin] == 6) { admtext = \"Fejlesztõ\"; }
               else if(PlayerInfo[pAdmin] == 5) { admtext = \"Fõ Adminisztrátor\"; }
               else if(PlayerInfo[pAdmin] == 4) { admtext = \"Szerver Adminisztrátor \"; }
               else if(PlayerInfo[pAdmin] == 3) { admtext = \"Adminisztrátor \"; }
               else if(PlayerInfo[pAdmin] == 2)   { admtext = \"Globális Moderátor\"; }
               else if(PlayerInfo[pAdmin] == 1) { admtext = \"Moderátor\"; }
               else if(PlayerInfo[pTester] == 3) { admtext = \"Lead Tester\"; }
               else if(PlayerInfo[pTester] == 2) { admtext = \"Tester\"; }
               else if(PlayerInfo[pTester] == 1) { admtext = \"Trial Tester\"; }
               else { admtext = \"Ismeretlen adminrang\"; }
            }
            GetPlayerName(i, sendername, sizeof(sendername));
            if(PlayerInfo[pAdminDuty] == 0 && PlayerInfo[pAppearList] == 1)
            {
               format(string, sizeof(string), \"%s - %s\", admtext, sendername);
               SendClientMessage(playerid, COLOR_WHITE, string);
            }
            else if(PlayerInfo[pAdminDuty] == 1 && PlayerInfo[pAppearList] == 1)
            {
                format(string, sizeof(string), \"%s - %s (On Duty)\", admtext, sendername);
               SendClientMessage(playerid, TEAM_VAGOS_COLOR, string);
            }
         }
      }
   }
}
return 1;
}   if (strcmp(cmd, \"/admins\", true) == 0) // By CuervO_NegrO
{
        if(IsPlayerConnected(playerid))
    {
        SendClientMessage(playerid, COLOR_GREEN, \"|____ Online Adminok ____|\");
   for(new i = 0; i < MAX_PLAYERS; i++)
   {
      if(IsPlayerConnected(i))
      {
          if(PlayerInfo[pAdmin] >= 1 && PlayerInfo[pAdmin] <= 1338 || PlayerInfo[pTester] >= 1)
          {
              new admtext[64];
              if(PlayerInfo[pAppearList] == 1)
              {
                  if(PlayerInfo[pAdmin] == 1338) { admtext = \"Tulajdonos\"; }
               else if(PlayerInfo[pAdmin] == 1337) { admtext = \"Scripter\"; }
               else if(PlayerInfo[pAdmin] == 6) { admtext = \"Fejlesztõ\"; }
               else if(PlayerInfo[pAdmin] == 5) { admtext = \"Fõ Adminisztrátor\"; }
               else if(PlayerInfo[pAdmin] == 4) { admtext = \"Szerver Adminisztrátor \"; }
               else if(PlayerInfo[pAdmin] == 3) { admtext = \"Adminisztrátor \"; }
               else if(PlayerInfo[pAdmin] == 2)   { admtext = \"Globális Moderátor\"; }
               else if(PlayerInfo[pAdmin] == 1) { admtext = \"Moderátor\"; }
               else if(PlayerInfo[pTester] == 3) { admtext = \"Lead Tester\"; }
               else if(PlayerInfo[pTester] == 2) { admtext = \"Tester\"; }
               else if(PlayerInfo[pTester] == 1) { admtext = \"Trial Tester\"; }
               else { admtext = \"Ismeretlen adminrang\"; }
            }
            GetPlayerName(i, sendername, sizeof(sendername));
            if(PlayerInfo[pAdminDuty] == 0 && PlayerInfo[pAppearList] == 1)
            {
               format(string, sizeof(string), \"%s - %s\", admtext, sendername);
               SendClientMessage(playerid, COLOR_WHITE, string);
            }
            else if(PlayerInfo[pAdminDuty] == 1 && PlayerInfo[pAppearList] == 1)
            {
                format(string, sizeof(string), \"%s - %s (On Duty)\", admtext, sendername);
               SendClientMessage(playerid, TEAM_VAGOS_COLOR, string);
            }
         }
      }
   }
}
return 1;
}

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal