Freddy

Klausimas, zaidejui rodo jog serveris persikrauna ir buna uzbanintas.

Recommended Posts

Sveiki, i┼íkilo tokia problema, jog ┼żaid─Śjui serveris persikrauna, ir kai jis jungiasi per naujo b┼źna u┼żbanintas, kokia klaida gal─Śt┼│ d─Śl to b┼źt?

Dalintis ┼í─» prane┼íim─ů


Nuoroda iki šio pranešimo
Dalintis per kit─ů puslap─»

tegul tikrinas ar jo samp'o versija atitinka serverio versij─ů ─» kuri─ů jungiasi...

Dalintis ┼í─» prane┼íim─ů


Nuoroda iki šio pranešimo
Dalintis per kit─ů puslap─»


public OnPlayerDisconnect(playerid,reason)

{

KillTimer ( SpeedoTimer [ playerid ] ) ;

HideSidometer ( playerid ) ;

PlayerTextDrawDestroy ( playerid , sTD [ playerid ] [ 0 ] ) ;

PlayerTextDrawDestroy ( playerid , sTD [ playerid ] [ 1 ] ) ;

PlayerTextDrawDestroy ( playerid , sTD [ playerid ] [ 2 ] ) ;

for ( new tds; tds < 8 ; tds ++ ) {

PlayerTextDrawDestroy ( playerid , speedo [ tds ] [ playerid ] ) ;

}

switch(reason)

{

   case 0..2:

   {

   if(Prisijunges[playerid])

   {

//Naikinam taimerius

KillTimer(ZvejojaEx[playerid]);

KillTimer(UzkiboEx[playerid]);

   DestroyProgressBar(zvejybosbar[playerid]);

   zvejybosbar[playerid] = INVALID_BAR_ID;

KillTimer(OfisoTimer[playerid]);

KillTimer(IskraunamviskaisfurosEx[playerid]);

KillTimer(KraunamdviraciusEx[playerid]);

KillTimer(KraunambaldusEx[playerid]);

KillTimer(KraunambuittechEx[playerid]);

KillTimer(KraunamanglisEx[playerid]);

KillTimer(KraunamzvyraEx[playerid]);

KillTimer(KraunamgunusEx[playerid]);

KillTimer(KraunamnarkusEx[playerid]);

KillTimer(KraunamzoleEx[playerid]);

//Išjungtas TextDraw

   TextDrawHideForPlayer(playerid, laikiux);

TextDrawHideForPlayer(playerid, datike);

//Nulinam kintamuosius

AntiAntiBan[playerid] = false;

OfisoDarbas[playerid] = false;

//Saugojimai

SetPVarInt ( playerid , "savedBySaugoti" , 0 ) ;

                savePlayerCar1 ( playerid ) ;

                savePlayerCar2 ( playerid ) ;

SavePlayerData(playerid, true);

//Kitas ┼í┼źdas

NutraukiaGrobima(playerid);

playerDB[playerid][ChoosedPlayer] = -1;

if(playerDB[playerid][AFK_Label] != Text3D:INVALID_3DTEXT_ID) Delete3DTextLabel(playerDB[playerid][AFK_Label]);

   for(new p = 0; p < MAX_PLAYERS; p++)

   {

       if(IsPlayerNPC(p) || !IsPlayerConnected(p)) continue;

       

    if(SekamasZaidejas[p] !=1)

    {

        SekamasZaidejas[playerid] = -1;

        DisablePlayerCheckpointEx(playerid, 21);

    }

       if(playerDB[p][CanTakeHouse] == playerid)

       {

           playerDB[p][CanTakeHouse] = -1;

           playerDB[p][HouseCost] = 0;

}

       if(playerDB[p][CanTakeBusiness] == playerid)

       {

           playerDB[p][CanTakeBusiness] = -1;

           playerDB[p][businessCost] = 0;

}

if(playerDB[p][CanTakeCar] == playerid)

{

   playerDB[p][CanTakeCar] = -1;

playerDB[p][CarCost] = -1;

}

}

   if(playerDB[playerid][DalyvaujaPB])

{

   if(playerDB[playerid][GreenPB])

   {

       ZaidejaiPasG --;

}

else if(playerDB[playerid][YellowPB])

{

ZaidejaiPasY --;

}

}

if(playerDB[playerid][uztvara] != INVALID_OBJECT_ID)

   {

       DestroyDynamicObject(playerDB[playerid][uztvara]);

playerDB[playerid][uztvara] = INVALID_OBJECT_ID;

}

   for(new z = 0; z < MAX_ZONES; z++) GangZoneHideForPlayer(playerid, Zone[z]);

   }

}

}

if(playerDB[playerid][DeleteAcc])

{

   new dQuery[65];

format(dQuery, sizeof(dQuery), "DELETE FROM `players` WHERE Vardas = '%s'", GetPlayerNameEx(playerid));

mysql_query(dQuery);

}

Prisijunges[playerid] = false;

playerCar1 [ playerid ] = -1;

playerCar2 [ playerid ] = -1;

return 1;

}
Redaguota , nario DouglasW

Dalintis ┼í─» prane┼íim─ů


Nuoroda iki šio pranešimo
Dalintis per kit─ů puslap─»

Pa┼żi┼źr─Śjau, jog ┼íeip tik new ir i┼ím─Śtyta po visur┬áAntiAntiBan[playerid] = false; |┬áAntiAntiBan[playerid] = true;

Dalintis ┼í─» prane┼íim─ů


Nuoroda iki šio pranešimo
Dalintis per kit─ů puslap─»

crash detect ─»sid─Śk, tada ┼żi┼źr─Śk kas bus :blink:

Dalintis ┼í─» prane┼íim─ů


Nuoroda iki šio pranešimo
Dalintis per kit─ů puslap─»

Prisijungti prie diskusijos

Palikti atsakym─ů galite i┼í karto, o u┼żsiregistruoti v─Śliau. Jeigu jau turite paskyr─ů m┼źs┼│ forume, Prisijunkite.

Sve─Źias
Atsakyti šioje temoje...

×   ─«klijuotas tekstas turi teksto formatavim─ů.   Pa┼íalinti teksto formatavim─ů

  Galimi tik 75 veidukai.

×   Nuoroda buvo automati┼íkai ─»terpta.   ─«terpti nuorod─ů paprastai

×   J┼źs┼│ ankstesnis prane┼íimas buvo atkurtas.   I┼ívalyti redaktori┼│

×   J┼źs negalite ─»kelti nuotraukas tiesiogiai.─«kelkite arba ─»d─Śkite nuotraukas i┼í URL.


  • ┼áiame puslapyje nar┼ío:   0 nariai

    N─Śra registruot┼│ nari┼│ per┼żi┼źrin─Źi┼│ ┼í─» forum─ů.