[POMOC] Problem kod /aon komande (admina)

Započeo Lexa, Avgust 14, 2012, 17:47:59 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Mod: TechLand Xperia -  izvorni

Opis problema: Ovako koristim mod TechLand Xperia i mam problem da igrac koji nije admin iznad sebe ima natpis admin na dužnost.Tako i kod GS.
Kako da se rijesi taj problem da natpis admin na dužnosti bude samo kod admian a ne igrača.

Skripta:

   if (strcmp(cmd, "/aon", true) == 0)
          {
    if(PlayerInfo[playerid][pAdmin] >= 1)
          {
        SetPlayerArmour(playerid, 100);
        admin[playerid] = Create3DTextLabel("Na Admin Duznosti! (Ne ometaj!)",COLOR_LIGHTBLUE,30.0,40.0,50.0,40.0,0);
         SetPlayerHealth(playerid, 100);
        GetPlayerName(playerid, sendername, sizeof(sendername));
         format(string, sizeof(string), "%s je sada na admin duznosti!", sendername);
         Attach3DTextLabelToPlayer(admin[playerid], playerid, 0.0, 0.0, 0.5);
        SendAdminMessage(COLOR_GREEN,string);
        }
    return 1;
   }
   if (strcmp(cmd, "/aoff", true)==0)
    {
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
      SetPlayerArmour(playerid, 0);
      Delete3DTextLabel(admin[playerid]);
      SetPlayerHealth(playerid, 100);
      GetPlayerName(playerid, sendername, sizeof(sendername));
      format(string, sizeof(string), "Nisi vise na admin duznosti!", playerid, sendername);
      SendClientMessage(playerid, COLOR_YELLOW,string);
   }
    return 1;
   }
   if(strcmp(cmd, "/start", true) == 0)
   {
      if(IsPlayerConnected(playerid))
       {
         if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGameSage] >= 1)
          {
            ShowPlayerDialog(playerid,239,DIALOG_STYLE_LIST ,"Eventi","Cross Trka\nTourLC\nForest Race\nMonster Ring\nSurvivor\nCR vs. NGR Race\nLV Freeway Race","Odaberi","Odustani");
           }
        }
        return 1;
    }
   if(!strcmp(cmdtext, "/gson", true))
   {
       if(IsPlayerConnected(playerid)) {
           if(gPlayerLogged[playerid] == 0) {
               SendClientMessage(playerid, COLOR_GREY, "  Moras biti prijavljen !");
               return 1;
           }
           if(PlayerInfo[playerid][pGameSage] > 0) {
               if(GameSageDuty[playerid] == 0) {
                   new GS3DText[128];
                   GS3DText = "GS na duznosti!\n(Ne Ometaj!)";
                   new Text3D:Created3D = Create3DTextLabel(GS3DText,ZELENKASTA,0.0,0.0,0.0,50.0,0);
                   Attach3DTextLabelToPlayer(Created3D,playerid,0.0,0.0,0.7);
                   GameSageDuty[playerid] = 1;
                   SetPlayerArmour(playerid, 999);
                   SetPlayerHealth(playerid, 999);
                   GetPlayerName(playerid, sendername, sizeof(sendername));
                   format(string, sizeof(string), "GameSage {FFFFFF}%s {48E31C}je sada na duznosti!",sendername);
                   ABroadCast(COLOR_ASKQ,string,1);
               }
               else if(GameSageDuty[playerid] == 1) {
                   GameSageDuty[playerid] = 0;
                   SetPlayerArmour(playerid, 0);
                   SetPlayerHealth(playerid, 100);
                   GetPlayerName(playerid, sendername, sizeof(sendername));
                   format(string, sizeof(string), "GameSage {FFFFFF}%s {48E31C}vise nije na duznosti!",sendername);
                   ABroadCast(COLOR_ASKQ,string,1);
                   return 1;
               }
           }
           else {
               SendClientMessage(playerid, COLOR_GREY, "  Nisi GameSage !");
               return 1;
           }
       }
       return 1;
   }
   if(strcmp(cmd, "/gsoff", true) == 0)
   {
         if (PlayerInfo[playerid][pGameSage] >= 1)
         {
         SetPlayerArmour(playerid, 0.0);
         SetPlayerHealth(playerid, 100.0);
         GetPlayerName(playerid, sendername, sizeof(sendername));
         format(string, sizeof(string), "GameSage {FFFFFF}%s {48E31C}vise nije na duznosti!",sendername);
         SendClientMessage(playerid,ZELENKASTA, string);
         new GS3DText;
           Delete3DTextLabel(Text3D:GS3DText);
            GameSageDuty[playerid] = 0;
         return 1;
         }
         else
         {
         SendClientMessage(playerid, WHITE, " Nisi GameSage!");
      }
      return 1;
   }
   //--------------
Poslednja Izmena: Avgust 14, 2012, 17:49:28 POSLE PODNE od Lexa

Isti problem je kod sistema za kuce i stanove.
Poslednja Izmena: Avgust 14, 2012, 17:50:17 POSLE PODNE od Lexa

Moras ubacit novi sistem /aon il /gson takodze za /aoff i /gsoff
Mislim dakle Boze
Na Zari sve i svasta


Eh brate nadzi ga i kod mene je bilo tako pa sam ga copy od jednog lika i radilo mi je a sad radim na novoj skripti
Mislim dakle Boze
Na Zari sve i svasta