[Pomoc] crasuje i dobijes bananu!!

Započeo ediss_manga, Februar 13, 2016, 12:59:30 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: AGRP
Problem: svaki put kad nekog kresuje i kad pokusa ponovo uci pise mu da je banovan u server.log pise samo ime igraca je napustio server (crash),ne znam gdje da to popravim??
Deo skripte://

Nadji dio u onplayerdisconnect gdje sprema te logove za crash i postavi ih ovdje

public OnPlayerDisconnect(playerid, reason)
{
    if(SnowONOFF[playerid]==1)
    {
       DestroyPlayerObject(playerid,snowobj[playerid]);
    }
    PI[playerid][pNewsare] = 0;
    PI[playerid][pPolaganje1] = 0;
    PI[playerid][pPolaganje2] = 0;
    PI[playerid][pPolaganje3] = 0;
   gActivePlayers[playerid]--;
   numplayers--;
    onlinepl--;
   new dstring[256];
   SetTimerEx("RekordTimer", 50, false, "d", playerid);//DONT DIRATI!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!(SDSADASFS)
   PI[playerid][pAlat] = 0;
   //new dstring[128];
   if(WantedPoints[playerid] > 0 || WantedLevel[playerid] > 0)
   {
      if(reason == 0) { PI[playerid][pJailed] = 0; PI[playerid][pJailTime] = 0; PI[playerid][pRobBre] = 0; }
   }
      if(WantedPoints[playerid] >= 1 || WantedLevel[playerid] >= 1)
   {
      if(WantedPoints[playerid] > 0)
      {
      new wlp = WantedPoints[playerid]*300;
      PI[playerid][pJailTime] += wlp;
      }
      if(WantedLevel[playerid] > 0)
      {
      new wll = WantedLevel[playerid]*300;
      PI[playerid][pJailTime] += wll;
      }
      PI[playerid][pJailed] = 1;
      PI[playerid][pRobBre] = 0;
      WantedLevel[playerid] = 0;
      WantedPoints[playerid] = 0;
   switch(reason)
    {
        case 0:
      {
      format(dstring, sizeof (dstring),"{0B83E6}[AGS]{FFFFFF} %s je napustio server sa WL, razlog: {F81414}[CRASH]",GetName(playerid));
      //PI[playerid][pJailTime] = 1000;
   //   PI[playerid][pJailed] = 1;
      }
        case 1: format(dstring, sizeof (dstring),"{0B83E6}[AGS]{FFFFFF} %s je napustio server sa WL, razlog: Izasao {F81414}[Svojevoljno]",GetName(playerid));
        case 2: format(dstring, sizeof (dstring),"{0B83E6}[AGS]{FFFFFF} %s je napustio server sa WL, razlog:{F81414} Kikovan/Banovan",GetName(playerid));
   }
       ABroadCast(ZUTA,dstring,1);
   }
   //==========================================================================
   new rstring[120];
   switch(reason)
   {
      case 0: format(rstring, sizeof(rstring), "{0B83E6}[{FFFFFF} DISCONNECT{0B83E6}] {FFFFFF}Igrac %s je izasao sa servera | Razlog:{F81414}[CRASH]", GetName(playerid));
      case 1: format(rstring, sizeof(rstring), "{0B83E6}[{FFFFFF} DISCONNECT{0B83E6}] {FFFFFF}Igrac %s je izasao sa servera | Razlog:{F81414}[Svojevoljno]", GetName(playerid));
      case 2: format(rstring, sizeof(rstring), "{0B83E6}[{FFFFFF} DISCONNECT{0B83E6}] {FFFFFF}Igrac %s je izasao sa servera | Razlog:{F81414}[KICK/BAN]", GetName(playerid));
   }
   ABroadCast(ZUTA, rstring, 1);
//==============================================================================

TextDrawHideForPlayer(playerid, Vreme);
TextDrawHideForPlayer(playerid, Datum);
TextDrawHideForPlayer(playerid, Datum2);
//==============================================================================

   /*if(WantedPoints[playerid] >= 1 || BankaWL[playerid] >= 1)
   {

   }*/
   if(PlayerTied[playerid] == 1)
   {
      PI[playerid][pAccount] -= 20000;
   }
   if(PlayerCuffed[playerid] == 2)
   {
      PI[playerid][pAccount] -= 20000;
   }
   if(AdminDuty[playerid] == 1)
   {
   Operater--;
   }
   if(GHDuty[playerid] == 1)
   {
   Operater--;
   }
   if(Tazer[playerid] == 1)
   {
       SAC_GivePlayerWeapon(playerid, 23, PreTazerAmmo[playerid]);
   }
       if(IgracUWaru[playerid] == 1)
      {
          foreach(Player, i)
          {
              if(PI[pMember] == PI[playerid][pMember])
              {
                  SCMF(i, COLOR_ASKQ, "[WAR] Igrac %s je napustio server!", GetName(playerid));
            }
         }
         ClanovaUWaru[PI[playerid][pMember]]--;
      }
   /*if(prc_Moving[playerid] == true)
   {
       KillTimer(prc_Timer[playerid]); // Killing the timer, ofc we don't want a 75 ms timer always running.
      prc_Degree[playerid] = 0; // Reseting the variable
      prc_Moving[playerid] = false; // Reseting the variable
   }*/
   SacuvajIgraca(playerid);
   for(new i = 0; i < MAX_IGRACA; i++)
   {
       if(IsPlayerConnected(i))
       {
           if(TaxiAccepted < 999)
           {
              if(TaxiAccepted == playerid)
              {
                  TaxiAccepted = 999;
                  GameTextForPlayer(i, "~w~Taxi musterija~n~~r~je napustila server!", 5000, 1);
                  TaxiCallTime = 0;
                  DisablePlayerCheckpoint(i);
              }
           }
           else if(BusAccepted < 999)
           {
              if(BusAccepted == playerid)
              {
                  BusAccepted = 999;
                  GameTextForPlayer(i, "~w~Autobuska musterija~n~~r~je napustila server!", 5000, 1);
                  BusCallTime = 0;
                  DisablePlayerCheckpoint(i);
              }
           }
       }
   }
   /*if(GettingCK[playerid] < 999)
   {
       if(IsPlayerConnected(GettingCK[playerid]))
       {
           SendClientMessage(GettingCK[playerid], COLOR_YELLOW, "Your Character Kill has left the server, try again later.");
           OnCK[GettingCK[playerid]] = 999;
       }
   }*/
   if (GetPlayerVehicleID(playerid) == 131) SetVehicleToRespawn(131);
   SacuvajIgraca(playerid);
    onlinepl--;
   //----------------------------------------------------------
   if(TransportCost[playerid] > 0 && TransportDriver[playerid] < 999)
   {
       if(IsPlayerConnected(TransportDriver[playerid]))
      {
          new string[64];
          TransportMoney[TransportDriver[playerid]] += TransportCost[playerid];
          TransportTime[TransportDriver[playerid]] = 0;
          TransportCost[TransportDriver[playerid]] = 0;
          format(string, sizeof(string), "~w~Putnik je otisao~n~~g~Zaradili ste: $%d",TransportCost[playerid]);
          GameTextForPlayer(TransportDriver[playerid], string, 5000, 1);
      }
   }
   if(GotHit[playerid] > 0)
   {
       if(GetChased[playerid] < 999)
       {
           if(IsPlayerConnected(GetChased[playerid]))
           {
              SendClientMessage(GetChased[playerid], COLOR_YELLOW, "Vasa meta je napustila server.");
               GoChase[GetChased[playerid]] = 999;
         }
       }
   }
   if(PI[playerid][pRoadblock] != 0)
    {
      DestroyDynamicObject(PI[playerid][pRoadblock]);
      PI[playerid][pRoadblock] = 0;
      if(PI[playerid][pObjekat] == 1)
      {
         Barikada--;
      }
      if(PI[playerid][pObjekat] == 2)
      {
         Cunj--;
      }
      if(PI[playerid][pObjekat] == 3)
      {
         Spike--;
      }
   }
   if(PlayerPaintballing[playerid] != 0)
   {
       PaintballPlayers --;
   }
   if(PlayerKarting[playerid] > 0 && PlayerInKart[playerid] > 0)
   {
       KartingPlayers --;
   }
   if(PlayersChannel[playerid] < 999)
   {
      IRCInfo[PlayersChannel[playerid]][iPlayers] -= 1;
   }
   if(HireCar[playerid] != 299)
   {
      gLastDriver[HireCar[playerid]] = 300;
      gCarLock[HireCar[playerid]] = 0;
      UnLockCar(HireCar[playerid]);
      if(reason != 0)
      {
         SetVehicleToRespawn(HireCar[playerid]);
      }
   }
   if(GangCar[playerid] != 512)
   {
      gLastDriver[GangCar[playerid]] = 520;
      gCarLock[GangCar[playerid]] = 0;
      UnLockCar(GangCar[playerid]);
   }
   if (gLastCar[playerid] > 0)
   {
      gLastDriver[gLastCar[playerid]] = 300;
      if(PI[playerid][pPhousekey] != gLastCar[playerid]-1)
      {
         gCarLock[gLastCar[playerid]] = 0;
         UnLockCar(gLastCar[playerid]);
      }
   }
   if(PlayerBoxing[playerid] > 0)
   {
       if(Boxer1 == playerid)
       {
           if(IsPlayerConnected(Boxer2))
           {
              PlayerBoxing[Boxer2] = 0;
              JBC_SetPlayerPos(Boxer2, 765.8433,3.2924,1000.7186);
              SetPlayerInterior(Boxer2, 5);
              PI[Boxer2][pInt] = 5;
              GameTextForPlayer(Boxer2, "~r~Match interupted", 5000, 1);
         }
       }
       else if(Boxer2 == playerid)
       {
           if(IsPlayerConnected(Boxer1))
           {
              PlayerBoxing[Boxer1] = 0;
              JBC_SetPlayerPos(Boxer1, 765.8433,3.2924,1000.7186);
              SetPlayerInterior(Boxer1, 5);
              PI[Boxer2][pInt] = 5;
              GameTextForPlayer(Boxer1, "~r~Match interupted", 5000, 1);
         }
       }
       InRing = 0;
        RoundStarted = 0;
      Boxer1 = 255;
      Boxer2 = 255;
      TBoxer = 255;
   }
    if(TransportDuty[playerid] == 1)
   {
      TaxiDrivers -= 1;
   }
    else if(TransportDuty[playerid] == 2)
   {
      BusDrivers -= 1;
   }
   if(PI[playerid][pJob] == 11)
   {
       if(JobDuty[playerid] == 1) { Medics -= 1; }
   }
   else if(PI[playerid][pJob] == 7)
   {
       if(JobDuty[playerid] == 1) { Mechanics -= 1; }
   }
   else if(PI[playerid][pJob] == 17)
   {
      if(JobDuty[playerid] == 1) { PizzaBoys -= 1; }
   }
   if (PI[playerid][pRoadblock] != 0)
   {
      RemoveRoadblock(playerid);
      DestroyDynamicObject(PI[playerid][pRoadblock]);
        PI[playerid][pRoadblock] = 0;
   }
   Ovni[playerid] = 0;
    Light[playerid] = 0;
    Ovni2[playerid] = 0;
    Light2[playerid] = 0;
   SetPVarInt(playerid, "laser", 0);
    RemovePlayerAttachedObject(playerid, 0);
   BusrouteEast[playerid][0] = 0;
   BusrouteWest[playerid][0] = 0;
   TextDrawHideForPlayer(playerid,lbt);
   TextDrawHideForPlayer(playerid,lbb);
   TextDrawHideForPlayer(playerid, TutZastava0);
   TextDrawHideForPlayer(playerid, TutZastava1);
    TextDrawHideForPlayer(playerid, TutZastava2);
    TextDrawHideForPlayer(playerid, TutZastava3);
    TextDrawHideForPlayer(playerid, TutZastava4);
    TextDrawHideForPlayer(playerid, TutZastava5);
   SacuvajIgraca(playerid);
}

Daj na to u pastebinu.
Srecu cine male stvari i veliko pivo!
x3M-Gaming USKORO!

mozes i tako vidjet u cemu je problem ako znas :)


BUMP si spucao sad i nikad više.
Ako neko pokušava da ti pomogne, nema potrebe da se tako bahato ponašaš.
Jesi li probao sebi namerno da krešuješ igru da vidiš da li ćeš dobiti ban? Tako što ćeš otići na ESC->NEW GAME.
To što ti server prijavljuje da je neko krešovao ne mora značiti da je neko krešovao, nego može značiti da mu je banovana IP adresa, da mu je pukao net itd... Uglavnom, nije pravilno napustio server (/quip ili ESC-> QUIT GAME)




Progress doesn't come from early risers — progress is made by lazy men looking for easier ways to do things. - Robert A. Heinlein

izvinjavam se za BUMP  ali pokusavam da rjesim to i ne ide ne znam gdje da pokusam...
pokusavao sam sebi da kresujem na new game i ponovo normalno udjem ... ali neko od igraca kad udje igra normalno neko vrijeme i mn prijavi disconect id napustio server crash.. i onda mi se on javi ne pise mu  : lost conection... , the server is restarting.., "you are banned.." i sad nez zbog cega a u server log samp oise da je napustio server ako neko zna da mi pomogne?? unaprijed hvala

Pa samo neka ode relog i nece biti banovan, tako je sada u novoj verziji, kada udaris restart servera i ne izadjes ono ce da ti retry to connect i pisace you are banned from this server. Moguce da ti je negde namesteno da ti igracima crashuje, na odredjenim mestima, mozda previse objekata tu, sta znam.
Srecu cine male stvari i veliko pivo!
x3M-Gaming USKORO!

brte nisam ja rst ja sam i dalje bio na srvr samo jednog igraca je disconect i pise mu to i kad ide relog pise mu da je banovan

Mora par puta da ode relog, moze da se desi da ti je negde namesten kresher, da ti kresuje na odredjenom mestu, previse auta, previse objekta, itd
Srecu cine male stvari i veliko pivo!
x3M-Gaming USKORO!

Zar je toliko teškoda pročitaš šta sam napisao?




Progress doesn't come from early risers — progress is made by lazy men looking for easier ways to do things. - Robert A. Heinlein

nije mi tesko procitao sam i radio sam to sto si rekao da kresujem sam sebe da vidim i uradim to i udjem ponovo ok ali druge kad kresuje ne mogu vise uci pise im da su banovani ako me kontas ..

Da li je to kompletan sadržaj mog posta ili možda još nešto piše?




Progress doesn't come from early risers — progress is made by lazy men looking for easier ways to do things. - Robert A. Heinlein

mozesli mi molim te objasnit na sta tacno mislis  :'(