[Pomoc] makeleader

Započeo [GU:RP] ivica 156, Decembar 29, 2011, 12:26:00 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:MojMod
Detaljan opis problema:nezzi  kako kad nekom dadnem lidera kod mene nepise cega je lider nego samo da je lidera dobio pa ak bi netko pomogao da sredim to znaci zelio bi da pise posstavljeni stte za Lidera organizacije te i te a kod mene je u cmd samo da sam postavljen za lidera.
Dio skripte:if(strcmp(cmd, "/makeleader", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, SVETLOPLAVA, "Koristi: /makeleader [IgracevID/Dio Imena] [Broj 1-15]");
             SendClientMessage(playerid, COLOR_WHITE, "1.Policija | 2.Federal Bureau of Investigation | 3.Ballas | 4.Bolnica | 5.ICF | 6.Terror Squad Crew | 7.Gradonacelnik");
            SendClientMessage(playerid, COLOR_WHITE, "8.GPF | 9.CNN | 10.Taxi Company | 11.Hitmani | 12.Crips | 13.Street Raceri | 14.Russian Mafia");
            SendClientMessage(playerid, COLOR_WHITE, "15.LCN | 16.Specijalne Jedinice");
            return 1;
         }
         new para1;
         new level;
         para1 = ReturnUser(tmp);
         tmp = strtok(cmdtext, idx);
         level = strvalEx(tmp);
         if(level > 16 || level < 0) { SendClientMessage(playerid, SIVA, "Najmanje:1 | Najvise:16"); return 1; }
         if (PlayerInfo[playerid][Admin] >= 6)
         {
             if(IsPlayerConnected(para1))
             {
                    if(para1 != INVALID_PLAYER_ID)
                 {
                     if(PlayerInfo[para1][Clan] > 0 || PlayerInfo[para1][pFMember] < 255)
                     {
                         SendClientMessage(playerid, SIVA, "(greska) Taj je igrac vec u Nekoj Organizaciji/Mafiji!");
                         return 1;
                     }
                  GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  PlayerInfo[para1][Lider] = level;
                  PlayerInfo[para1][pRank] = 6;
                     format(string, sizeof(string), "Postavljeni ste za Lidera zeljene organizacije! | Head Admin: %s!", sendername);
                  SendClientMessage(para1, 0x299494FF, string);
                  format(string, sizeof(string), "Dali ste igracu %s lidera | Broj: %d!", giveplayer,level);
                  SendClientMessage(playerid, SVETLOPLAVA, string);
                  if(level == 0) { PlayerInfo[para1][pChar] = 0; }
                  else if(level == 1) { PlayerInfo[para1][pChar] = 283; PlayerInfo[para1][pTeam] = 2; } //Policija
                  else if(level == 2) { PlayerInfo[para1][pChar] = 165; PlayerInfo[para1][pTeam] = 2; } //FBI
                  else if(level == 3) { PlayerInfo[para1][pChar] = 104; } //Ballas
                  else if(level == 4) { PlayerInfo[para1][pChar] = 57; } //Hitna Pomoc
                  else if(level == 5) { PlayerInfo[para1][pChar] = 125; } //Corleones
                  else if(level == 6) { PlayerInfo[para1][pChar] = 115; } //Black Dragon Triads
                        else if(level == 7) { PlayerInfo[para1][pChar] = 147; } //Gradonacelnik
                        else if(level == 8) { PlayerInfo[para1][pChar] = 271; } //Grove Street
                        else if(level == 9) { PlayerInfo[para1][pChar] = 227; } //CNN novinari
                        else if(level == 10) {PlayerInfo[para1][pChar] = 61; } //Taxi
                        else if(level == 11) {PlayerInfo[para1][pChar] = 294; } //Hitman
                        else if(level == 12) {PlayerInfo[para1][pChar] = 108; } //Crips
                        else if(level == 13) {PlayerInfo[para1][pChar] = 217; } //Street Racer
                        else if(level == 14) {PlayerInfo[para1][pChar] = 113; } //Russian Mafia
                        else if(level == 15) {PlayerInfo[para1][pChar] = 125; } //LCN
                        else if(level == 16) { PlayerInfo[para1][pChar] = 166; } //swat
                        gTeam[para1] = 11;
                   PlayerInfo[para1][pTeam] = 11;
                   SetPlayerSkin(para1, PlayerInfo[para1][pChar]);
               }
            }
         }
         else
         {
            SendClientMessage(playerid, SIVA, "{FFFFFF}[{F81414}G-Unit{FFFFFF}] {C3C3C3}Samo Head Admini!");
         }
      }
      return 1;
   }
Neke slike/video za lakse dobivanje pomoci(neobavezno):

Mr.Gagi

if(strcmp(cmd, "/makeleader", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, SVETLOPLAVA, "Koristi: /makeleader [IgracevID/Dio Imena] [Broj 1-15]");
             SendClientMessage(playerid, COLOR_WHITE, "1.Policija | 2.Federal Bureau of Investigation | 3.Ballas | 4.Bolnica | 5.ICF | 6.Terror Squad Crew | 7.Gradonacelnik");
            SendClientMessage(playerid, COLOR_WHITE, "8.GPF | 9.CNN | 10.Taxi Company | 11.Hitmani | 12.Crips | 13.Street Raceri | 14.Russian Mafia");
            SendClientMessage(playerid, COLOR_WHITE, "15.LCN | 16.Specijalne Jedinice");
            return 1;
         }
         new para1;
         new level,text[64];
         para1 = ReturnUser(tmp);
         tmp = strtok(cmdtext, idx);
         level = strvalEx(tmp);
         if(level > 16 || level < 0) { SendClientMessage(playerid, SIVA, "Najmanje:1 | Najvise:16"); return 1; }
         if (PlayerInfo[playerid][Admin] >= 6)
         {
             if(IsPlayerConnected(para1))
             {
                    if(para1 != INVALID_PLAYER_ID)
                 {
                     if(PlayerInfo[para1][Clan] > 0 || PlayerInfo[para1][pFMember] < 255)
                     {
                         SendClientMessage(playerid, SIVA, "(greska) Taj je igrac vec u Nekoj Organizaciji/Mafiji!");
                         return 1;
                     }
                  GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  PlayerInfo[para1][Lider] = level;
                  PlayerInfo[para1][pRank] = 6;
                  if(level == 0) { PlayerInfo[para1][pChar] = 0; }
                  else if(level == 1) { PlayerInfo[para1][pChar] = 283; PlayerInfo[para1][pTeam] = 2; text = "Policija";} //Policija
                  else if(level == 2) { PlayerInfo[para1][pChar] = 165; PlayerInfo[para1][pTeam] = 2; text = "FBO";} //FBI
                  else if(level == 3) { PlayerInfo[para1][pChar] = 104; text = "Ballas";} //Ballas
                  else if(level == 4) { PlayerInfo[para1][pChar] = 57; text = "Hitna Pomoc";} //Hitna Pomoc
                  else if(level == 5) { PlayerInfo[para1][pChar] = 125; text = "Corleones";} //Corleones
                  else if(level == 6) { PlayerInfo[para1][pChar] = 115; text = "Black Dragon Triads";} //Black Dragon Triads
                        else if(level == 7) { PlayerInfo[para1][pChar] = 147; text = "Gradonacelnik";} //Gradonacelnik
                        else if(level == Cool { PlayerInfo[para1][pChar] = 271; text = "Grove Street";} //Grove Street
                        else if(level == 9) { PlayerInfo[para1][pChar] = 227; text = "CNN novinari";} //CNN novinari
                        else if(level == 10) {PlayerInfo[para1][pChar] = 61; text = "Taxi";} //Taxi
                        else if(level == 11) {PlayerInfo[para1][pChar] = 294; text = "Hitman";} //Hitman
                        else if(level == 12) {PlayerInfo[para1][pChar] = 108; text = "Crips";} //Crips
                        else if(level == 13) {PlayerInfo[para1][pChar] = 217; text = "Street Racer";} //Street Racer
                        else if(level == 14) {PlayerInfo[para1][pChar] = 113; text = "Russian Mafia";} //Russian Mafia
                        else if(level == 15) {PlayerInfo[para1][pChar] = 125; text = "LCN";} //LCN
                        else if(level == 16) { PlayerInfo[para1][pChar] = 166; text = "Swat";} //swat
                        gTeam[para1] = 11;
                   PlayerInfo[para1][pTeam] = 11;
                   SetPlayerSkin(para1, PlayerInfo[para1][pChar]);
                     format(string, sizeof(string), "Postavljeni ste za Lidera organizacije %s! | Head Admin: %s! ", text,sendername);
                  SendClientMessage(para1, 0x299494FF, string);
                  format(string, sizeof(string), "Dali ste igracu %s lidera | Broj: %d! Organizacija: %s", giveplayer,level,text);
                  SendClientMessage(playerid, SVETLOPLAVA, string);    
               }
            }
         }
         else
         {
            SendClientMessage(playerid, SIVA, "{FFFFFF}[{F81414}G-Unit{FFFFFF}] {C3C3C3}Samo Head Admini!");
         }
      }
      return 1;
   }

Probaj to.

nes fali pise  da je pawno prestao raditi?