[HELP] RECONNECT.
#1

Hello i have a big problem.
I have a home server, for testing my script and when my friend will join it, crash. He came to login and then crash

[23:37:50] [join] Mike_Scaletti has joined the server (1:5.159.248.91)
[23:38:04] Incoming connection: 5.159.248.91:1260
[23:38:05] [part] Mike_Scaletti has left the server (1:0)
Reply
#2

Are you sure its the servers fault? He can join other servers? He retried to connect and still crashes? Everytime crashed? It happens only for him or and for others too?
Please be more describable so we can help you out.
Reply
#3

I join normally, but when he join, the server reconnect for him. He lives in Bosnia, but when my friend from austria join it works normally.
Reply
#4

For me it is so - it reconnect, just sometimes
Reply
#5

show lines
Reply
#6

You are using an anti-cheat or something? Maybe it reconnects him due to high ping or...?
Reply
#7

No - it reconnect when he login.

I have a anti-cheat for money
Reply
#8

Show us public OnPlayerConnect
Reply
#9

pawn Код:
public OnPlayerConnect(playerid)
{
    new file[256], name[MAX_PLAYER_NAME];
   
    //GUNSKILL
    SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 999);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 999);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 999);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, 999);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 999);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, 999);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 999);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, 999);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 999);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 999);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, 999);
    //MAPICONS
    SetPlayerMapIcon(playerid, 1, 1555.4912,-1675.6364,16.1953, 30, 0, 0); //PD
    SetPlayerMapIcon(playerid, 2, 1172.0774,-1323.3427,15.4030, 22, 0, 0); //BOLNICA
    SetPlayerMapIcon(playerid, 3, 2751.4939,-1962.8483,13.5469, 58, 0, 0); //AZTECAS
    SetPlayerMapIcon(playerid, 4, 1895.3851,-2020.2365,13.5469, 60, 0, 0); //VAGOS
    new str[35];
    new h,mi,s,y,m,d, string[256];
    gettime(h,mi,s);
    getdate(y,m,d);
    GetPlayerName(playerid, str, 24);
    format(str, 35, "Igraci/%s.ini", str);
    if(fexist(str))
    {
    if(dini_Int(str, "BanTime") > y+m+d)
    {
    new string1[256];
    format(string1, sizeof(string1), "\tDobili ste ban sa servera koji istice za %d dan(a). \n\tUkoliko mislite da je doslo do greske obratite nam se na forumu.", (dini_Int(str, "BanTime")-(y+m+d)));
    ShowPlayerDialog(playerid, 18, DIALOG_STYLE_MSGBOX, "{FF8000}BANANI STE SA SERVERA", string1, "Zatvori", "");
    Kick(playerid);
    }
    if(dini_Int(str, "KickTime") > h+mi+s)
    {
    new string1[256];
    format(string1, sizeof(string1), "\tDobili ste kick sa servera koji istice za %d minute. \n\tUkoliko mislite da je doslo do greske obratite nam se na forumu.", (dini_Int(str, "KickTime")-(h+mi+s)));
    ShowPlayerDialog(playerid, 18, DIALOG_STYLE_MSGBOX, "{FF8000}KICKANI STE SA SERVERA", string1, "Zatvori", "");
    Kick(playerid);
    }
    }
    OTog[playerid] = 1;
    Tazer[playerid] = 0;
    pTazed[playerid] = 0;
    gPlayerLogged[playerid] = 0;
    TextDrawShowForPlayer(playerid, Vrijeme);
    format(string,sizeof string, "%s%d:%s%d", (h < 10) ? ("0") : (""),h,(mi < 10) ? ("0") : (""), mi);
    TextDrawSetString(Vrijeme, string);
    TextDrawShowForPlayer(playerid, Datum);
    format(string,sizeof string, "%s%d/%s%d/%s%d", ((d < 10) ? ("0") : ("")),d,((m < 10) ? ("0") : ("")),m, (y < 10) ? ("0") : (""), y);
    TextDrawSetString(Datum, string);
    SetTimerEx("Update", 1000, true, "%d", playerid);
    SetTimer("HappyHour", 1000, true);
    SetTimerEx("Wanted", 300000, true, "%d", playerid);
    if(PInfo[playerid][pJob] >= 1)
    {
    timer3 = SetTimerEx("JobTimer", 1, true, "%d", playerid);
    }
    payday[playerid] = SetTimerEx("PayDayMinute", 60000, true, "%d", playerid);
    SetTimerEx("LevelUp", 1000, true, "%d", playerid);
    GetPlayerName(playerid, name, sizeof(name));
    format(file, sizeof(file), SERVER_USER_FILE, name);
    if (!dini_Exists(file))
    {
        format(string, 128, "SERVER: Pozdrav %s - Dobrodosao/la na SFRJ BALKAN RPG/DM.", name);
        SCM(playerid, COLOR_ORANGE, string);
        format(string, 128, "SERVER: Registrujte se da biste mogli igrati server.");
        SCM(playerid, COLOR_ORANGE, string);
        SCM(playerid, COLOR_PDGOV, "| SFRJ Balkan Forum: http://www.sfrj-balkan.com | Server verzija: 2.0.0 | Zadnji update: 21.07.2012 |");
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX , "{FF8000}SFRJ BALKAN INFO CENTAR", "{FFFFFF}Dobrodosli na SFRJ BALKAN RPG/DM.\nNakon registracije procitajte sva pravila koristeci komandu /rules kako bi mogli igrati na nasem serveru.\nObavezno nas posjetite na forumu [url]www.sfrj-balkan.com.\nHvala[/url] na saslusanju zeli vam ugodnu igru vas SFRJ Admin Team.", "Nastavi","");
    }
    if(fexist(file))
    {
        format(string, 128, "SERVER: Pozdrav %s - Dobrodosao/la na SFRJ Balkan RPG/DM.", name);
        SCM(playerid, COLOR_ORANGE, string);
        format(string, 128, "SERVER: Ovo ime je registrano. Molimo logirajte se i zabavite se na serveru.");
        SCM(playerid, COLOR_ORANGE, string);
        SCM(playerid, COLOR_PDGOV, "| SFRJ Balkan Forum: http://www.sfrj-balkan.com | Server verzija: 2.0.0 | Zadnji update: 21.07.2012 |");
        ShowPlayerDialog(playerid, 4, DIALOG_STYLE_PASSWORD, "{FF8000}LOGIRANJE", "{FFFFFF}Upisite vasu lozinku da bi se logirali na nas Server.", "Login", "Odustani");
    }
    return 1;
}
Reply
#10

Your friend gets any message or he just connecting and then instant disconnect? Whats the process of his disconnect?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)