[Pomoc] ekreiraj i vise grupa

Započeo [GU:RP] ivica 156, Januar 12, 2012, 18:00:22 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:mojmod
Detaljan opis problema:imam komandu /ekreiraj ali valjda je to samo jedna grupa dali mogu iz te jedne dodat jos 3 evo komande:
CMD:ekreiraj(playerid, params[])
   {
         new string[128];
         new sendername[MAX_PLAYER_NAME];
          new color1;
             new color2;
         new car;
         new grupa;
         if (PlayerInfo[playerid][Admin] >= 1)
            {
           if(sscanf(params, "iii", car, color1, color2)) return SCM(playerid, -1, "{FFFFFF}[{F81414}Ekreiraj{FFFFFF}]{CCCCCC}:{FFFFFF} [id_vozila] [boja1] [boja2] [grupa]");
         if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, "   ID vozila mora biti izmedu 400 ili 611 !"); return 1; }
            if(color1 < -1 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, "   Broj boje mora biti izmedu 0 ili 126 !"); return 1; }
            if(color2 < -1 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, "   Broj boje mora biti izmedu 0 ili 126 !"); return 1; }
            if(grupa < -1 || grupa > 4) { SendClientMessage(playerid, COLOR_GREY, "   Grupe mogu biti od 1 do 4"); return 1; }

      switch(grupa) // tako si definirao varijablu za grupe
      {
            case 0:
          {   // ako je admin ukucao broj 1 na parametru za grupe
           //new Float:A,Float:B,Float:C;
         //GetPlayerPos(playerid, A,B,C);
           Event1 = CreateVehicle(car, 1712.6376,1315.8822,10.6952, 0.0, color1, color2, 60000);
           Event2 = CreateVehicle(car, 1708.3655,1316.5607,10.6953, 0.0, color1, color2, 60000);
           Event3 = CreateVehicle(car, 1704.8011,1316.5088,10.6953, 0.0, color1, color2, 60000);
           Event4 = CreateVehicle(car, 1701.8365,1316.5800,10.6953, 0.0, color1, color2, 60000);
           Event5 = CreateVehicle(car, 1698.5806,1316.6227,10.6953, 0.0, color1, color2, 60000);
           Event6 = CreateVehicle(car, 1695.4404,1316.6691,10.6953, 0.0, color1, color2, 60000);
           Event7 = CreateVehicle(car, 1692.1047,1316.4076,10.6953, 0.0, color1, color2, 60000);
           Event8 = CreateVehicle(car, 1689.0693,1316.6183,10.6952, 0.0, color1, color2, 60000);
           Event9 = CreateVehicle(car, 1685.8091,1316.4218,10.6953, 0.0, color1, color2, 60000);
           Event10 = CreateVehicle(car, 1682.5300,1316.5140,10.6953, 0.0, color1, color2, 60000);
           Event11 = CreateVehicle(car, 1679.5936,1316.3502,10.6953, 0.0, color1, color2, 60000);
           Event12 = CreateVehicle(car, 1676.2655,1316.6727,10.6953, 0.0, color1, color2, 60000);
           Event13 = CreateVehicle(car, 1673.1110,1316.4142,10.6953, 0.0, color1, color2, 60000);
           Event14 = CreateVehicle(car, 1669.8503,1316.4897,10.6953, 0.0, color1, color2, 60000);
           Event15 = CreateVehicle(car, 1666.5356,1316.6442,10.6953, 0.0, color1, color2, 60000);
           Event16 = CreateVehicle(car, 1663.3247,1316.5780,10.6953, 0.0, color1, color2, 60000);
           }
           case 1:
           {
           Event17 = CreateVehicle(car, 1660.1021,1316.5900,10.6953, 0.0, color1, color2, 60000);
           }
           case 2:
           {
           }
           //Event18 = CreateVehicle(car, 1086.1814,2171.8413,16.4454, 0.0, color1, color2, 60000);
           }
         GetPlayerName(playerid, sendername, sizeof(sendername));
         format(string, 256, "|Event| Admin %s, je kreirao grupu event vozila!",sendername);
            SendAdminMessage(COLOR_YELLOW, string);
         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):

Možeš više samo ti treba još "i" - integer , za odabiranje grupe , imaš 3 integera umjesto 4.
"I'm a loser and a user so I don't need no accuser" - Billie Joe Armstrong