Treba mi pawno kod za pljackanje banke i zlatare!

Započeo #𝒮𝑀𝐼𝒯𝐻 !, Oktobar 26, 2017, 14:45:02 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

// pogresan pdf
Poslednja Izmena: Oktobar 27, 2017, 22:24:16 POSLE PODNE od Cadilab



YCMD:robgold(playerid, params[], help)
{
    #pragma unused help
   #pragma unused params
   new tmphour;
   gettime(tmphour);
   if((tmphour >= 01) && (tmphour <= 11)) return SCM(playerid,-1, ""CRVENA"(GRESKA)Ne mozete pljackati u 1 sat posle ponoci do 11 sati ujutru !");
   if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"[GRESKA]"LJUB"Moras se ulogovati da bi koristio ovu komandu!");
    if(PlayerInfo[playerid][pAlat] == 0) return SCM(playerid,-1,"[GRESKA]"LJUB"Moras imati alat da bi pljackao ustanovu");  //ovo ako oces da treba alat da bi se pljackalo
    if(PlayerInfo[playerid][pTrazeniLevel] >= 1) return SCM(playerid,-1,"[GRESKA]"CRVENA"Imas wanted ne mozes pljackat!");
    if(ZlatarOpljackana == 1) return SCM(playerid,-1,"[GRESKA]"CRVENA"Zlatara je oplackana pre par minuta, cekaj jos!");
    if(GetPlayerWeapon(playerid) >= 24 && GetPlayerWeapon(playerid) <= 40)
   {
      new imeorg[20];     // Ovde stavis definiciju de su ti se organizacije [imena]
      if(PlayerInfo[playerid][pLider] == 2) { imeorg = "Breed Stiqi Pistons"; }   //Stavis lider-a organizacije i Ime te organizacije
      else return SCM(playerid, -1, "[GRESKA]"CRVENA"Samo Leader!");
       //if(PlayerInfo[playerid][pRobbankVreme] != 0) return SCMF(playerid, -1, "[GRESKA]"CRVENA"Morate sacekati da bi mogli ponovo pljackati!");
      if(!IsPlayerInRangeOfPoint(playerid, 3.0, 1103.3369,-1309.3247,-42.2418)) return SCM(playerid, -1, "[GRESIS]"CRVENA"MoraÅ¡ biti u zlatari da bi mogao da pljackaÅ¡!");  //ovde stavljas mesto de ce da ti se pljacka
      PlayerInfo[playerid][pRobbankVreme] = 3500;
      PlayerInfo[playerid][pTrazeniLevel] += 2;
      SetPlayerColor(playerid, COLOR_WANTED);
      ZlatarOpljackana = 1;
      PlayerInfo[playerid][pAlat] = 0;
      PljackaVrijeme[playerid] = 120;
      SCM(playerid,-1,"[SA:RP]"CRVENA"Pljackas zlataru! | ostani na ovom mestu 120 sekundi!");
      SetTimerEx("Pljacka1",1000, false, "i", playerid);
      SetTimer("ZlataraOpljackana",900000,false);
      new string[256];
      format(string, sizeof(string), ""ZUTA"[NAJAVA IZ UPRAVE]"ZELENA" %s "BELA" pljacka Los Santos Zlataru, Molimo policiju da spreci pljackase!", imeorg);
      SCMTA(-1,string);
   }
   else SCM(playerid,-1,"[GRESKA]"CRVENA"MoraÅ¡ imati Oruzije");
   return 1;
}
Poslednja Izmena: Oktobar 26, 2017, 17:14:07 POSLE PODNE od Agency

[pawn]YCMD:opljackajbanku(playerid, params[], help)
{
    #pragma unused help
   #pragma unused params
   new tmphour;
   gettime(tmphour);
   if((tmphour >= 01) && (tmphour <= 11)) return SCM(playerid,-1, "   Ne mozete pljackati u 1 sat posle ponoci do 11 sati ujutru !");
   if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"[TS:RPG] | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
    if(PlayerInfo[playerid][pAlat] == 0) return SCM(playerid,-1,"[TS:RPG] | "CRVENA"Moras imati alat da bi pljackao!");
    if(PlayerInfo[playerid][pTrazeniLevel] >= 1) return SCM(playerid,-1,"[TS:RPG] | "CRVENA"Imate wanted level ne mozete pljackat!");
    if(BankOpljackana == 1) return SCM(playerid,-1,"[TS:RPG] | "CRVENA"Banka je vec opljackana sacekajte malo!");
    if(GetPlayerWeapon(playerid) >= 24 && GetPlayerWeapon(playerid) <= 40)
   {
      new imeorg[20];
      if(PlayerInfo[playerid][pLider] == 2) { imeorg = "Italian Mafia"; }
      else if(PlayerInfo[playerid][pLider] == 3) { imeorg = "Triads"; }
      else if(PlayerInfo[playerid][pLider] == 4) { imeorg = "GSF"; }
      else if(PlayerInfo[playerid][pLider] == 5) { imeorg = "Ballas"; }
      else if(PlayerInfo[playerid][pLider] == 9) { imeorg = "Russian Mafia"; }
      else if(PlayerInfo[playerid][pLider] == 11) { imeorg = "BL"; }
      else if(PlayerInfo[playerid][pLider] == 12) { imeorg = "BT"; }
      else if(PlayerInfo[playerid][pLider] == 13) { imeorg = "Da Naga Boys"; }
      else if(PlayerInfo[playerid][pLider] == 15) { imeorg = "DO"; }
      else if(PlayerInfo[playerid][pLider] == 17) { imeorg = "BCC"; }
      else if(PlayerInfo[playerid][pLider] == 19) { imeorg = "TCC"; }
      else if(PlayerInfo[playerid][pLider] == 20) { imeorg = "BS"; }
      else return SCM(playerid, -1, "[TS:RPG] | "CRVENA"Samo lider moze da pljacka!");
   //   if(PlayerInfo[playerid][pRobbankVreme] != 0) return SCMF(playerid, -1, "[TS:RPG] | "CRVENA"Morate sacekati da bi mogli ponovo pljackati!");
      if(!IsPlayerInRangeOfPoint(playerid, 2.0, 1133.8066,2299.4946,582.4300)) return SCM(playerid, -1, "[TS:RPG] | "CRVENA"MoraÅ¡ biti u banci da bi mogao da pljackaÅ¡!");
      PlayerInfo[playerid][pRobbankVreme] = 1200000;
      PlayerInfo[playerid][pTrazeniLevel] += 2;
      SetPlayerColor(playerid, COLOR_RED);
      BankOpljackana = 1;
      PlayerInfo[playerid][pAlat] = 0;
      PljackaVrijeme[playerid] = 180;
      SCM(playerid,-1,"[TS:RPG] | "CRVENA"Pljackas banku ostani na mjestu 180 sekundi!");
      SetTimerEx("Pljacka",1000, false, "i", playerid);
      SetTimer("BankaOpljackana",900000,false);
      new string[256];
      format(string, sizeof(string), ""BELA"[GS:VESTI]"CRVENA" %s "BELA"pljacka Los Santos banku, Molimo policiju da spreci pljackase!", imeorg);
      SCMTA(-1,string);
    }
   else SCM(playerid,-1,"[TS:RPG] | "CRVENA"MoraÅ¡ imati Oruzije");
   return 1;
}[/pawn]

[pawn]YCMD:opljackajzlataru(playerid, params[], help)
{
    #pragma unused help
   #pragma unused params
   new tmphour;
   gettime(tmphour);
   if((tmphour >= 01) && (tmphour <= 11)) return SCM(playerid,-1, "   Ne mozete pljackati u 1 sat posle ponoci do 11 sati ujutru !");
   if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"[TS:RPG] | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
    if(PlayerInfo[playerid][pAlat] == 0) return SCM(playerid,-1,"[TS:RPG] | "CRVENA"Moras imati alat da bi pljackao!");
    if(PlayerInfo[playerid][pTrazeniLevel] >= 1) return SCM(playerid,-1,"[TS:RPG] | "CRVENA"Imate wanted level ne mozete pljackat!");
    if(ZlatarOpljackana == 1) return SCM(playerid,-1,"[TS:RPG] | "CRVENA"Zlatara je vec opljackana sacekajte malo!");
    if(GetPlayerWeapon(playerid) >= 24 && GetPlayerWeapon(playerid) <= 40)
   {
      new imeorg[20];
      if(PlayerInfo[playerid][pLider] == 2) { imeorg = "Italian Mafia"; }
      else if(PlayerInfo[playerid][pLider] == 3) { imeorg = "Triads"; }
      else if(PlayerInfo[playerid][pLider] == 4) { imeorg = "GSF"; }
      else if(PlayerInfo[playerid][pLider] == 5) { imeorg = "Ballas"; }
      else if(PlayerInfo[playerid][pLider] == 9) { imeorg = "Russian Mafia"; }
      else if(PlayerInfo[playerid][pLider] == 11) { imeorg = "BL"; }
      else if(PlayerInfo[playerid][pLider] == 12) { imeorg = "BT"; }
      else if(PlayerInfo[playerid][pLider] == 13) { imeorg = "Da Naga Boys"; }
      else if(PlayerInfo[playerid][pLider] == 15) { imeorg = "DO"; }
      else if(PlayerInfo[playerid][pLider] == 17) { imeorg = "BCC"; }
      else if(PlayerInfo[playerid][pLider] == 19) { imeorg = "TCC"; }
      else if(PlayerInfo[playerid][pLider] == 20) { imeorg = "BS"; }
      else return SCM(playerid, -1, "[TS:RPG] | "CRVENA"Samo lider moze da pljacka!");
   //   if(PlayerInfo[playerid][pRobbankVreme] != 0) return SCMF(playerid, -1, "[TS:RPG] | "CRVENA"Morate sacekati da bi mogli ponovo pljackati!");
      if(!IsPlayerInRangeOfPoint(playerid, 2.0, 286.9147,1425.9718,727.4360)) return SCM(playerid, -1, "[TS:RPG] | "CRVENA"MoraÅ¡ biti u zlatari da bi mogao da pljackaÅ¡!");
      PlayerInfo[playerid][pRobbankVreme] = 1200000;
      PlayerInfo[playerid][pTrazeniLevel] += 2;
      SetPlayerColor(playerid, COLOR_RED);
      ZlatarOpljackana = 1;
      PlayerInfo[playerid][pAlat] = 0;
      PljackaVrijeme[playerid] = 120;
      SCM(playerid,-1,"[TS:RPG] | "CRVENA"Pljackas zlataru ostani na mjestu 120 sekundi!");
      SetTimerEx("Pljacka1",1000, false, "i", playerid);
      SetTimer("ZlataraOpljackana",900000,false);
      new string[256];
      format(string, sizeof(string), ""BELA"[GS:VESTI]"CRVENA" %s "BELA" pljacka Los Santos Zlataru, Molimo policiju da spreci pljackase!", imeorg);
      SCMTA(-1,string);
   }
   else SCM(playerid,-1,"[TS:RPG] | "CRVENA"MoraÅ¡ imati Oruzije");
   return 1;
}[/pawn]