Server Lagging Problem. (+REP)
#1

When A Player Connect In My Server,It Will Send: "Connected, joining the game." then "Server closed the connection" player is not banned,And In server logs shows: kicking [ip] because they didn't logon to the server.

Onplayerconnect function in GM:

pawn Код:
public OnPlayerConnect(playerid)
{
    LoadAccount(playerid);
    SetTimerEx("QBankTextdraw",100,1,"d",playerid);
    new string[64], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    format(string,sizeof string,"%s (%d) Has Joined The Server.",pName,playerid);
    GameTextForPlayer(playerid, "Welcome To The Los Santos Gang War Server", 5000, 4);
    ShowPlayerDialog(playerid, DIALOG_RULES2, DIALOG_STYLE_MSGBOX, "Server Rules", "1- No Cheating\n2- No Spamming\n3- Slide Bug Is Not Allowed But C Bug Is Allowed\n4- No Rule Breaking\n5- No G Abuse\n6- No Advertising\n7- Teleport Abuse Is Not Allowed\n8- Weapon Mods Are Allowed Only\n9- Respect Player Especially Admins\n10- Scamming Is Not Allowed\n11- Aimbot Is Not Allowed\n12- Don't Try To Climb Up Over The Freeroam Walls If You Are(not) In Freeroam Mod\n\nDo You Agree The Server Rules?", "Yes", "No");
    SendClientMessageToAll(0xAFAFAFAA,string);
    SendClientMessage(playerid,-1,"Welcome To The {FFEA00}LOS SANTOS GANG WARS{FFFFFF} Version 2.0! Please Enjoy Your Stay.");
    SendClientMessage(playerid, 0x00EEFFFF, "Please Visit Our Forums: lsgangwars.createaforum.com");
    SendClientMessage(playerid, 0x00FF22FF, "When You Spawn A Skin Type /help To See The Help Menu.");
    new pname[128];  // This get's the length of the player name
    new file[128];        // This get's the lenght of the file
    GetPlayerName(playerid, pname, sizeof(pname)); // This get's the player name with the lenght of the player name
    format(file, sizeof(file), savefolder,pname); // This describe's where to save and how to save it
    if(!dini_Exists(file)) { // If the file exist
        dini_Create(file); // Create the file
        dini_IntSet(file, "Score", 0); // Set's "Score"
        dini_IntSet(file, "Money", 0); // Set's "Money"
        SetPlayerScore(playerid, dini_Int(file, "Score")); // This describes where to load the score
        SetPlayerMoney(playerid, dini_Int(file, "Money")); // This describes where to load the money
    }
    else {
        SetPlayerScore(playerid, dini_Int(file, "Score"));
        SetPlayerMoney(playerid, dini_Int(file, "Money"));
        // the same thing
    } // This get's the length of the player name
    new File[128];        // This get's the lenght of the file
    GetPlayerName(playerid, pName, sizeof(pName)); // This get's the player name with the lenght of the player name
    format(File, sizeof(File), savefolder2,pName); // This describe's where to save and how to save it
    if(!dini_Exists(File)) { // If the file exist
        dini_Create(File); // Create the file
        dini_IntSet(File, "Drugs", LPinfo[playerid][Drugs]); // Set's "Kills"
        dini_IntSet(File, "Adrenaline Pills", LPinfo[playerid][Adre]); // Set's "Kills"
    }
    else {
        LPinfo[playerid][Drugs] = dini_Int(File,"Drugs");
        LPinfo[playerid][Adre] = dini_Int(File,"Adrenaline Pills");
    }
    pInfo[playerid][Last] = -1;
    pInfo[playerid][NoPM] = 0;
    PlayerCar[playerid] = -1;
    AntiKillRowSpam[playerid] = 0;
    PlayAudioStreamForPlayer(playerid, "http://s3.argim.net/files/r/gta_san_andreas_theme_song_wmm.mp3");
    return 1;
}
Please Help Me. +REP
Reply
#2

BUMP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)