[Pomoc] /makeleader ID 0

Započeo Woo, Februar 18, 2012, 01:19:18 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Woo

*

Skripta koju koristim: Cl rp
Detaljan opis problema: /makeleader mi stavlja samo id 0
Dio skripte:
Citatif(strcmp(cmd, "/makeleader", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "Koristi: /makeleader [ID Igraca/Dio Imena] [Broj(1-17)]");
            SendClientMessage(playerid, LIGHTRED, "|_________________________________________________________________________________|");
            SendClientMessage(playerid, SIVA, "1.Police Departament || 2.Federal Bureau of Investigation || 3.S.W.A.T || 4.MD ");
            SendClientMessage(playerid, SIVA, "5.Yakuze || 6.L.C.N || 7.Gradonacalnik || 8.Hitman || 9.CNN || 10.Taxi || 12.Ballas");
            SendClientMessage(playerid, SIVA, "13.Los Surenos || 14.Carbon Racer's || 15.GSF || 16.L.S.V");
            SendClientMessage(playerid, LIGHTRED, "|_________________________________________________________________________________|");
            return 1;
         }
         new para1;
         new level;
         tmp = strtok(cmdtext, idx);
         level = strval(tmp);
         if(level > 17 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "Nemojte ispod 0, ili preko 17!"); return 1; }
         if (PlayerInfo[playerid][pAdmin] >= 1337)
         {
             if(IsPlayerConnected(para1))
             {
                 if(para1 != INVALID_PLAYER_ID)
                 {
                     if(PlayerInfo[para1][pMember] > 0 || PlayerInfo[para1][pFMember] < 255)
                     {
                         SendClientMessage(playerid, COLOR_GREY, "Taj igrac je clan neke organizacije!");
                         return 1;
                     }
                  GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  PlayerInfo[para1][pLeader] = level;
                  format(string, sizeof(string), "Promoviran si u lidera organizacije/bande od Admina %s", sendername);
                  SendClientMessage(para1, SVETLOPLAVA, string);
                  format(string, sizeof(string), "* Postavio si %s-a da vodi {C30000}%d.", giveplayer,level);
                  SendClientMessage(playerid, BELA, string);
                  if(level == 0) { PlayerInfo[para1][pChar] = 20; PlayerInfo[para1][pRank] = 0; gTeam[para1] = 3; PlayerInfo[para1][pTeam] = 0; return 1; }
                  else if(level == 1) { PlayerInfo[para1][pChar] = 288; } //LS PD
                  else if(level == 2) { PlayerInfo[para1][pChar] = 165; } //FBI/ATF
                  else if(level == 3) { PlayerInfo[para1][pChar] = 166; } //swat
                  else if(level == 4) { PlayerInfo[para1][pChar] = 228; } //hitna
                  else if(level == 5) { PlayerInfo[para1][pChar] = 294; } //Yakuza
                  else if(level == 6) { PlayerInfo[para1][pChar] = 113; } //LCN
                  else if(level == 7) { PlayerInfo[para1][pChar] = 147; } //gradonacelnik
                  else if(level == 8) { PlayerInfo[para1][pChar] = 299; } //Hitman
                  else if(level == 9) { PlayerInfo[para1][pChar] = 227; } //Novinari
                  else if(level == 10) { PlayerInfo[para1][pChar] = 61; } //Taxi Cab Company
                  else if(level == 12) { PlayerInfo[para1][pChar] = 104; } //TEC
                  else if(level == 13) { PlayerInfo[para1][pChar] = 292; } //surenos
                  else if(level == 14) { PlayerInfo[para1][pChar] = 21; } //carbon racers
                  else if(level == 15) { PlayerInfo[para1][pChar] = 271; } //GSfly
                  else if(level == 16) { PlayerInfo[para1][pChar] = 110; } //Vagos

                  if(level == 0)
                  {
                      gTeam[para1] = 3;
                      PlayerInfo[para1][pTeam] = 3;
                  }
                  else if(level == 1 || level == 2 || level == 3)
                  {
                      gTeam[para1] = 2;
                      PlayerInfo[para1][pTeam] = 2;
                  }
                  else if(level == 4)
                  {
                      gTeam[para1] = 1;
                      PlayerInfo[para1][pTeam] = 1;
                  }
                  else
                  {
                      gTeam[para1] = 15;
                      PlayerInfo[para1][pTeam] = 15;
                  }

                   SetPlayerSkin(para1, PlayerInfo[para1][pChar]);

                   if(level == 0)
                   {
                       PlayerInfo[para1][pRank] = 0;
                   }
                   else
                   {
                      PlayerInfo[para1][pRank] = 6;
                  }
               }
            }//not connected
         }
         else
         {
            SendClientMessage(playerid, WHITE, " {FF0000}|PcAs|: {CDCDCD} Admini samo!.");
         }
      }
      return 1;
   }
Neke slike/video za lakse dobivanje pomoci(neobavezno): //