[POMOC] Komande

Započeo Simonov, Mart 14, 2016, 18:42:58 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Baram pomoc kako da ubacim ovo u moj mod pls pomos


CMD:aizbrisi(playerid, params[])
{

   new odabir[20],id,kFile[50],sFile[50],vFile[50],rFile[50],fFile[50],gFile[50];
   if(sscanf(params, "s[20]i",odabir, id))
   {
      if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] == 2015)
      {
         SCM(playerid,COLOR_GRAD1,"{0493E8}Komanda:{FFFFFF}/aizbrisi [ime] [ID]");
         SCM(playerid,COLOR_GRAD1,"{0493E8}Dostupno:{FFFFFF}kuca,stan,vikendica,kancelarija,firma,fastfood,garaza");
         return 1;
      }
   }
   else
   {
      if(strcmp(odabir,"garaza",true) == 0)
      {
         if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] == 2015)
         {
            format(gFile, sizeof(gFile), GARAZA_FILE, id);
            if(fexist(gFile))
            {
               fremove(gFile);
               DestroyDynamic3DTextLabel(GarazaLabel[id]);
               DestroyPickup(GarazaPickup[id]);
               SCMF(playerid,BELA,"{0493E8}Garaza [{FFFFFF}ID %d]{0493E8} je uspesno izbrisana!",id);
            }
            else
            {
               SCM(playerid,BELA,"{0493E8}GRESKA:{FFFFFF}Kukja so toj ID ne postoj.");
            }
         } else return SCM(playerid,COLOR_GRAD1,"{0493E8}INFO:{FFFFFF}Nemozete da ja koristete ovaa komanda !");
      }
      if(strcmp(odabir,"kuca",true) == 0)
      {
         if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] == 2015)
         {
            format(kFile, sizeof(kFile), KUCA_FILE, id);
            if(fexist(kFile))
            {
               fremove(kFile);
               DestroyDynamic3DTextLabel(KucaLabel[id]);
               DestroyPickup(KucaPickup[id]);
               SCMF(playerid,BELA,"{0493E8}Kukja [{FFFFFF}ID %d]{0493E8} je uspesno izbrisana!",id);
            }
            else
            {
               SCM(playerid,BELA,"{0493E8}GRESKA:{FFFFFF}Kukja so toj ID ne postoj.");
            }
         } else return SCM(playerid,COLOR_GRAD1,"{0493E8}INFO:{FFFFFF}Nemozete da ja koristete ovaa komanda !");
      }
      if(strcmp(odabir,"stan",true) == 0)
      {
          if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] == 2015)
          {
             format(sFile, sizeof(sFile), STAN_FILE, id);
            if(fexist(sFile))
            {
               fremove(sFile);
               DestroyDynamic3DTextLabel(StanLabel[id]);
               DestroyPickup(StanPickup[id]);
               SCMF(playerid,BELA,"{0493E8}Stan [{FFFFFF}ID %d]{0493E8} je uspesno izbrisana!",id);
            }
            else
            {
               SCM(playerid,BELA,"{0493E8}GRESKA:{FFFFFF}Stan so toj ID ne postoj.");
            }
          } else return SCM(playerid,COLOR_GRAD1,"{0493E8}INFO:{FFFFFF}Nemozete da ja koristete ovaa komanda !");
      }
      if(strcmp(odabir,"vikendica",true) == 0)
      {
          if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] == 2015)
          {
             format(vFile, sizeof(vFile), VIKENDICA_FILE, id);
            if(fexist(vFile))
            {
               fremove(vFile);
               DestroyDynamic3DTextLabel(VikendicaLabel[id]);
               DestroyPickup(VikendicaPickup[id]);
               SCMF(playerid,BELA,"{0493E8}Vikendica [{FFFFFF}ID %d]{0493E8} je uspesno izbrisana!",id);
            }
            else
            {
               SCM(playerid,BELA,"{0493E8}GRESKA:{FFFFFF}Vikendica so toj ID ne postoj.");
            }
          } else return SCM(playerid,COLOR_GRAD1,"{0493E8}INFO:{FFFFFF}Nemozete da ja koristete ovaa komanda !");
      }
      if(strcmp(odabir,"kancelarija",true) == 0)
      {
          if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] == 2015)
          {
             format(rFile, sizeof(rFile), KANCELARIJA_FILE, id);
            if(fexist(rFile))
            {
               fremove(rFile);
               DestroyDynamic3DTextLabel(KancelarijaLabel[id]);
               DestroyPickup(KancelarijaPickup[id]);
               SCMF(playerid,BELA,"{0493E8}Kancelarija [{FFFFFF}ID %d]{0493E8} je uspesno izbrisana!",id);
            }
            else
            {
               SCM(playerid,BELA,"{0493E8}GRESKA:{FFFFFF}Kancelarija so toj ID ne postoj.");
            }
          } else return SCM(playerid,COLOR_GRAD1,"{0493E8}INFO:{FFFFFF}Nemozete da ja koristete ovaa komanda !");
      }
      if(strcmp(odabir,"biznis",true) == 0)
      {
          if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] == 2015)
          {
             format(fFile, sizeof(fFile), BIZNIS_FILE, id);
            if(fexist(fFile))
            {
               fremove(fFile);
               DestroyDynamic3DTextLabel(BiznisLabel[id]);
               DestroyPickup(BiznisPickup[id]);
               RemovePlayerMapIcon( playerid,BiznisInfo[id][bIcon]);
               SCMF(playerid,BELA,"{0493E8}Biznis [{FFFFFF}ID %d]{0493E8} je uspesno izbrisana!",id);
            }
            else
            {
               SCM(playerid,BELA,"{0493E8}GRESKA:{FFFFFF}Biznis so toj ID ne postoj.");
            }
          } else return SCM(playerid,COLOR_GRAD1,"{0493E8}INFO:{FFFFFF}Nemozete da ja koristete ovaa komanda !");
      }
      if(strcmp(odabir,"firma",true) == 0)
      {
          if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] == 2015)
          {
             format(fFile, sizeof(fFile), FIRME_FILE, id);
            if(fexist(fFile))
            {
               fremove(fFile);
               DestroyDynamic3DTextLabel(FirmaLabel[id]);
               DestroyPickup(FirmaPickup[id]);
               RemovePlayerMapIcon( playerid,1274);
               SCMF(playerid,BELA,"{0493E8}Firma [{FFFFFF}ID %d]{0493E8} e uspesno izbrisana!",id);
            }
            else
            {
               SCM(playerid,BELA,"{0493E8}GRESKA:{FFFFFF}Firma so toj ID ne postoj.");
            }
          } else return SCM(playerid,COLOR_GRAD1,"{0493E8}INFO:{FFFFFF}Nemozete da ja koristete ovaa komanda !");
      }
      if(strcmp(odabir,"fastfood",true) == 0)
      {
         if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] == 2015)
         {
            format(fFile, sizeof(kFile), FASTFOOD_FILE, id);
            if(fexist(fFile))
            {
               fremove(fFile);
               DestroyDynamic3DTextLabel(FastFLabel[id]);
               DestroyPickup(FastFPickup[id]);
               SCMF(playerid,BELA,"{0493E8}FastFood [{FFFFFF}ID %d]{0493E8} je uspesno izbrisan!",id);
            }
            else
            {
               SCM(playerid,BELA,"{0493E8}GRESKA:{FFFFFF}FastFood so toj ID ne postoj.");
            }
         } else return SCM(playerid,COLOR_GRAD1,"{0493E8}INFO:{FFFFFF}Nemozete da ja koristete ovaa komanda !");
      }
   }
   return 1;
}
Poslednja Izmena: April 03, 2016, 20:58:41 POSLE PODNE od Harryâ„¢