[Pomoc] i admini i gmovi

Započeo [GU:RP] ivica 156, Februar 12, 2012, 14:45:37 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Cyber
Detaljan opis problema:kako da se napravi da ovu cmd koriste i gmovi i admini
if(strcmp(cmd, "/ekreiraj", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
           if (PlayerInfo[playerid][Admin] < 1 || PlayerInfo[playerid][pGameMaster] < 1)
         {
             SendClientMessage(playerid, COLOR_GRAD1, "{FFFFFF}[{F81414}G-Unit{FFFFFF}]{CCCCCC}Admini i GS-ovi samo!");
             return 1;
         }
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, SIVA, "Koristite: {FFFFFF} /ekreiraj [ID Vozila] [Boja1] [Boja2]");
            return 1;
         }
         new car;
         car = strval(tmp);
         if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, "   ID vozila mora biti izmedu 400 ili 611 !"); return 1; }
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "{FFAA00}Koristite: {FFFFFF} /ekreiraj [ID Vozila] [Boja1] [Boja2]");
            return 1;
         }
         new color1;
         color1 = strval(tmp);
         if(color1 < -1 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, "   Broj boje mora biti izmedu 0 ili 126 !"); return 1; }
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "{FFAA00}Koristite: {FFFFFF} /ekreiraj [ID Vozila] [Boja1] [Boja2]");
            return 1;
         }
         new color2;
         color2 = strval(tmp);
         if(color2 < -1 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, "   Broj boje mora biti izmedu 0 ili 126 !"); return 1; }
         new Float:X,Float:Y,Float:Z;
         GetPlayerPos(playerid, X,Y,Z);
           Event1 = CreateVehicle(car, X,Y+5,Z+1, 0.0, color1, color2, 60000);
           Event2 = CreateVehicle(car, X,Y+10,Z+1, 0.0, color1, color2, 60000);
           Event3 = CreateVehicle(car, X,Y+15,Z+1, 0.0, color1, color2, 60000);
           Event4 = CreateVehicle(car, X+5,Y+5,Z+1, 0.0, color1, color2, 60000);
           Event5 = CreateVehicle(car, X+5,Y+15,Z+1, 0.0, color1, color2, 60000);
           Event6 = CreateVehicle(car, X+5,Y+10,Z+1, 0.0, color1, color2, 60000);
           Event7 = CreateVehicle(car, X+10,Y+5,Z+1, 0.0, color1, color2, 60000);
           Event8 = CreateVehicle(car, X+10,Y+10,Z+1, 0.0, color1, color2, 60000);
           Event9 = CreateVehicle(car, X+10,Y+15,Z+1, 0.0, color1, color2, 60000);
           Event10 = CreateVehicle(car, X+10,Y+15,Z+1, 0.0, color1, color2, 60000);
           Event11 = CreateVehicle(car, X+10,Y+15,Z+1, 0.0, color1, color2, 60000);
           Event12 = CreateVehicle(car, X+10,Y+15,Z+1, 0.0, color1, color2, 60000);
           Event13 = CreateVehicle(car, X+10,Y+15,Z+1, 0.0, color1, color2, 60000);
           Event14 = CreateVehicle(car, X+10,Y+15,Z+1, 0.0, color1, color2, 60000);
           Event15 = CreateVehicle(car, X+10,Y+15,Z+1, 0.0, color1, color2, 60000);
           Event16 = CreateVehicle(car, X+10,Y+15,Z+1, 0.0, color1, color2, 60000);
         GetPlayerName(playerid, sendername, sizeof(sendername));
         format(string, 256, "*Admin %s, je kreirao grupu event vozila!",sendername);
            PorukaAdminima(ZUTA,string,1);
           GMporuke(ZUTA,string,1);
         new y, m, d;
         new h,mi,s;
         getdate(y,m,d);
         gettime(h,mi,s);
         format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Je Kreirao Grupu Event Vozila (Boja 1: %d | Boja 2: %d)",d,m,y,h,mi,s,sendername,color1,color2);

      }
      return 1;
   }
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):

vlado_plavsic

if (PlayerInfo[playerid][Admin] < 1 || PlayerInfo[playerid][pGameMaster] < 1)


Ukoliko zelis da koriste Admin lvl 1 i vise i GM level 1 i vise zamenis ono gore sa Ovime :

if (PlayerInfo[playerid][Admin] >= 1 || PlayerInfo[playerid][pGameMaster] >= 1)