[Pomoc]payday,lotto

Započeo (BSL)MasteR, Decembar 22, 2011, 17:50:25 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:FactionGame Edit
Detaljan opis problema:Kako da podesim koliko ocu da bude plata na svaki sat i kako da napravim da se sam lotto jackpot i to na svaki sat kad je plata igra i dobije pare pobednik i pise koje pobedio i kad kupi neko broj da svima pise broj lotto je kupljen i kako da napravim odredjeno mesto za lotto.
Deo skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Balkan Online Public CS 1.6
IP:188.40.52.207:27027
Forum: www.cs-balkanonline.site40.net
Posjetite nas......

daj procitaj malo tutorijale o skriptanju pa nije niko budala toliko ti pisat ili nesto radit imas tutorijale i pokusaj skontat nesto

dobro a jel znas ti mozda kako da napravim na /tazer komandi da mora da kuca naprimer /ta i onda id koga oce da ta
a ne da gadja tazerom sve koji su u blizini
evo ti deo skripte:
if(strcmp(cmd, "/tazer", true) ==0 || strcmp(cmd, "/ta", true) ==0)
   {
       if(IsPlayerConnected(playerid))
       {
         if(gTeam[playerid] == 2 || IsACop(playerid))
         {
             if(IsPlayerInAnyVehicle(playerid))
             {
                 SendClientMessage(playerid, COLOR_GREY, "   Nemozete koristiti tazer dok ste u autu!");
                 return 1;
             }
            if(KnockedDown[playerid] == 1)
            {
               SendClientMessage(playerid, COLOR_GREY, "Ne mozete zamahnuti kada ste vec oboreni.");
               return 1;
            }
            if(PlayerTied[playerid] == 1)
            {
               SendClientMessage(playerid, COLOR_GREY, "   Vezani ste!");
               return 1;
            }
               if(ReduceTime[playerid] == 1)
               {
                   SendClientMessage(playerid, COLOR_GREY, "   Morate sacekati 5 sekundi prije ponovnog koriscenja ove komande !");
                   return 1;
               }
             new suspect = GetClosestPlayer(playerid);
             if(IsPlayerConnected(suspect))
            {
                if(PlayerCuffed[suspect] > 0)
                {
                    SendClientMessage(playerid, COLOR_GREY, "   Igrac je vec tazovan/uhapsen!");
                    return 1;
                }
                if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
               {
                   if(gTeam[suspect] == 2)
                   {
                       SendClientMessage(playerid, COLOR_GREY, "   Ne mozete taznuti PD / FBI!");
                       return 1;
                   }
                   if(IsPlayerInAnyVehicle(suspect))
                   {
                       SendClientMessage(playerid, COLOR_GREY, "   Osumnjiceni je u autu, prvo ga izbacite!");
                       return 1;
                   }
                   GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  new randt = random(4)+1;
                  if(randt == 1)
                  {
                      format(string, sizeof(string), "* %s puca sa svojim tazerom na %s-a, ali promasuje.", sendername ,giveplayer);
                     ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                  }
                  else
                  {
                     format(string, sizeof(string), "* Tazovao vas je %s na 10 sekundi.", sendername);
                     SendClientMessage(suspect, COLOR_WHITE, string);
                     format(string, sizeof(string), "* Tazovali ste %s-a na 10 sekundi.", giveplayer);
                     SendClientMessage(playerid, COLOR_WHITE, string);
                     format(string, sizeof(string), "* %s puca tazerom na %s-a i pogadja ga.", sendername ,giveplayer);
                     ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                     GameTextForPlayer(suspect, "~r~Sokiran", 2500, 3);
                     TogglePlayerControllable(suspect, 0);
                     PlayerCuffed[suspect] = 1;
                     PlayerCuffedTime[suspect] = 15;
                         ReduceTime[playerid] = 1;
                         SetTimerEx("ReduceTimer", 5000, false, "i", playerid);
                  }
                  }
               else
               {
                   SendClientMessage(playerid, COLOR_GREY, "   Nema nikoga u vasoj blizini!");
                   return 1;
               }
            }
         }
         else
         {
            SendClientMessage(playerid, COLOR_GREY, "   Niste Policajac / FBI!");
         }
      }//not connected
       return 1;
   }
Balkan Online Public CS 1.6
IP:188.40.52.207:27027
Forum: www.cs-balkanonline.site40.net
Posjetite nas......