server configuration
#1

previously i had an issue in server configuration

what is ackslimit? what is it meant for?

my present server config

Код:
echo Executing Server Config...
port 27115
rcon_password xxxxxxxxxxxxxxxxxxxxxxxx
maxplayers 50
lanmode 1
announce 1
hostname [0.3.7]   .:: Battlefield of Nations ::.  TDM
filterscripts 
plugins crashdetect.so streamer.so mysql_static.so sscanf.so fixes2.so
gamemode0 bfsamp
mapname San Andreas
weburl www.bfsamp.ga
maxnpc 0
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300
stream_rate 1000
logtimeformat [%d/%m/%Y %H:%M:%S]
language EN / DE / ES
lagcompmode 1
query 1
cookielogging 1
ackslimit 5000
conncookies 1
connseedtime 300000
playertimeout 10000
minconnectiontime 0
messageslimit 500
messageholelimit 3000
and what is the advantage of connection cookie system i have issues connecting to server, everytime if a player connects the server freezes, i think there is an issue in cookie data...

screenshots:



server log
Код:
SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[05:19:24] filterscripts = ""  (string)
[28/10/2016 05:19:24] 
[28/10/2016 05:19:24] Server Plugins
[28/10/2016 05:19:24] --------------
[28/10/2016 05:19:24]  Loading plugin: crashdetect.so
[28/10/2016 05:19:24]   CrashDetect v4.15.1 is OK.
[28/10/2016 05:19:24]   Loaded.
[28/10/2016 05:19:24]  Loading plugin: mysql_static.so
[28/10/2016 05:19:24]  >> plugin.mysql: R39-6 successfully loaded.
[28/10/2016 05:19:24]   Loaded.
[28/10/2016 05:19:24]  Loading plugin: streamer.so
[28/10/2016 05:19:24] 

*** Streamer Plugin v2.8.2 by Incognito loaded ***

[28/10/2016 05:19:24]   Loaded.
[28/10/2016 05:19:24]  Loading plugin: sscanf.so
[28/10/2016 05:19:24] 

[28/10/2016 05:19:24]  ===============================

[28/10/2016 05:19:24]       sscanf plugin loaded.     

[28/10/2016 05:19:24]          Version:  2.8.2        

[28/10/2016 05:19:24]    © 2012 Alex "******" Cole  

[28/10/2016 05:19:24]  ===============================

[28/10/2016 05:19:24]   Loaded.
[28/10/2016 05:19:24]  Loading plugin: fixes2.so
[28/10/2016 05:19:24] 

[28/10/2016 05:19:24]  ===============================

[28/10/2016 05:19:24]        fixes plugin loaded.     

[28/10/2016 05:19:24]    © 2012 Alex "******" Cole

[28/10/2016 05:19:24]  ===============================

[28/10/2016 05:19:24]   Loaded.
[28/10/2016 05:19:24]  Loaded 5 plugins.

[28/10/2016 05:19:24] 
[28/10/2016 05:19:24] Filterscripts
[28/10/2016 05:19:24] ---------------
[28/10/2016 05:19:24]   Loaded 0 filterscripts.

[28/10/2016 05:19:24]  
[28/10/2016 05:19:24]  
[28/10/2016 05:19:24]  
[28/10/2016 05:19:24]  ======================================= 
[28/10/2016 05:19:24]  |                                     | 
[28/10/2016 05:19:24]  |        YSI version 3.09.0684        | 
[28/10/2016 05:19:24]  |        By Alex "******" Cole        | 
[28/10/2016 05:19:24]  |                                     | 
[28/10/2016 05:19:24]  ======================================= 
[28/10/2016 05:19:24]  
[28/10/2016 05:19:24]  
[28/10/2016 05:19:25]  
[28/10/2016 05:19:25] ----------------------------------------------------- 
[28/10/2016 05:19:25] [MYSQL] Connection with the database: SUCCESS!
[28/10/2016 05:19:25] ----------------------------------------------------- 
[28/10/2016 05:19:25]   
[28/10/2016 05:19:25] BFScript is loaded. By Slawi, Mr.Moon, Kiets & DetoNater.

[28/10/2016 05:19:25]   
[28/10/2016 05:19:25] Number of vehicle models: 56
[28/10/2016 06:06:33] [connection] 89.164.121.40:56830 requests connection cookie.
[28/10/2016 07:02:25] [connection] 117.246.76.133:42396 requests connection cookie.
[28/10/2016 07:02:26] [connection] 117.246.76.133:42396 requests connection cookie.
[28/10/2016 07:02:27] [connection] 117.246.76.133:42396 requests connection cookie.
[28/10/2016 07:02:28] [connection] 117.246.76.133:42396 requests connection cookie.
[28/10/2016 07:02:59] Kicking 117.246.76.133 because they didn't logon to the game.
Help me in this issue,
thanks
Reply
#2

That's a problem in your gamemode.
Reply
#3

If your gamemode has a login system, then you must login, not just press "Spawn".
Reply
#4

Quote:
Originally Posted by GoldenLion
Посмотреть сообщение
That's a problem in your gamemode.
Yea as GoldenLion Said its your GM Problem, Aka There's Login Systen into your Gamemode and maybe it has some errors..
Reply
#5

Quote:
Originally Posted by DomagojSellug
Посмотреть сообщение
If your gamemode has a login system, then you must login, not just press "Spawn".
[28/10/2016 07:02:28] [connection] 117.246.76.133:42396 requests connection cookie.
[28/10/2016 07:02:59] Kicking 117.246.76.133 because they didn't logon to the game.

Notice the time spam, 1 second, look in your gamemode at the kicking part, something is definitely wrong there. I assume it's meant to kick players who don't log in after a specific time? Post the code anyway if you want our help
Reply
#6

Check Callbacks OnPlayerConnect and OnPlayerSpawn
Reply
#7

OnPlayerConnect

Код:
public OnPlayerConnect(playerid)
{
	GetPlayerIp(playerid,p_IP[playerid],16);
    SetPlayerColor(playerid,_COLOR_GREY2);
	Sprache[playerid] = 1;
	DisplayHUD[playerid] = 1;
	duelEnemyID[playerid] = -1;
	duelInvited[playerid] = -1;
	duelID[playerid] = -1;
	lastpmid[playerid] = -1;
	new playercount;
	foreach(Player,i)
	{
	    if(i != playerid)
	    {
		    if(!strcmp(p_IP[playerid],p_IP[i],true)) playercount++;
		}
	}
	if(playercount >= 3)
	{
	    SendClientMessage(playerid,_COLOR_RED,"There are already people online with the same IP as yours!");
	    printf("%s [%d] was kicked from the server. [Same IP adress]",PlayerName(playerid),playerid);
	    DelayKick(playerid,10);
	}
	ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "Sprache | Language | Lengua","Deutsch\nEnglish\nEspanol","Wдhlen","Select");

 	Attach3DTextLabelToPlayer(level[playerid], playerid, 0.0, 0.0, 0.80);
 	Attach3DTextLabelToPlayer(ClassLabel[playerid], playerid, 0.0, 0.0, 0.60);
	Attach3DTextLabelToPlayer(ProtectLabel[playerid], playerid, 0.0, 0.0, 1.0);
	Attach3DTextLabelToPlayer(Admin[playerid], playerid, 0.0, 0.0, 1.20);
	Attach3DTextLabelToPlayer(VipLabel[playerid], playerid, 0.0, 0.0, 1.40);

    GetPlayerName(playerid,NewspName,sizeof(NewspName));
	format(NewsStr[0],128,"%s ist dem Server beigetreten. ~r~[ Beitritt ]",NewspName);
	format(NewsStr[1],128,"%s has joined the server.  ~r~[ Join ]",NewspName);
	format(NewsStr[2],128,"%s se ha unido al servidor. ~r~[ Join ]",NewspName);
	SendNewsMessage(NewsStr[0],NewsStr[1],NewsStr[2]);
	InCP[playerid] = -1;
	ZoneID[playerid] = -1;
	disguised[playerid] = -1;
	SpawnPoint[playerid] = 999;
	realmoney[playerid] = 0;
	Rank[playerid] = 0;
	duelEnemyID[playerid] = -1;
	duelInvited[playerid] = -1;


	for(new skill; skill<11; skill++)
	{
    	SetPlayerSkillLevel(playerid, skill, 1000);
	}

	for(new base; base < sizeof(TeamNames); base++)
	{
    	GangZoneShowForPlayer(playerid, Base[base], ZoneColors[base]);
	}

	for(new zone; zone < sizeof(ZoneLocations); zone++)
	{
	    if(ZoneCaptured[zone] == -1) GangZoneShowForPlayer(playerid,GangZoneID[zone],0xFFFFFF22);
		if(ZoneCaptured[zone] >= 0) GangZoneShowForPlayer(playerid,GangZoneID[zone],ZoneColors[ZoneCaptured[zone]]);
	}

	for(new zone; zone < sizeof(ZoneNames); zone++) CaptureTimer[zone][playerid] = -1;
	new Float:x,Float:y,Float:z;
	GetPlayerPos(playerid,x,y,z);
	SetPVarFloat(playerid, "x", x);
	SetPVarFloat(playerid, "y", y);
	SetPVarFloat(playerid, "z", z);
	alreadyjoined[playerid] = 0;
	for(new i;i<sizeof(VehiclePositions);i++) fixedveh[i][playerid] = 0;
	RemoveBuildings(playerid);
	disabledchat[playerid] = 1;
	eventspawncounter[playerid] = 0;
	duelhealth[playerid] = 100;
	duelarmour[playerid] = 100;
	for(new i;i<10;i++) titles[playerid][i] = 0;
	shadowtitlekills[playerid] = 0;
	warchieftitlekills[playerid] = 0;
	bladestormtitlekills[playerid] = 0;
	sawbladetitlekills[playerid] = 0;
	silentassasintitlekills[playerid] = 0;
	coldbloodedtitlekills[playerid] = 0;
	explosivetitlekills[playerid] = 0;
	labelid[playerid] = -1;
	rpgspawned[playerid] = 0;
	KillTimer(RPGtimer[playerid]);
	sawnspawned[playerid] = 0;
	KillTimer(sawntimer[playerid]);
	deaglespawned[playerid] = 0;
	KillTimer(deagletimer[playerid]);
	specialpack[playerid] = 0;
	specialpackexpire[playerid] = 0;
	minigunammo[playerid] = -1;
	reportedid[playerid] = -1;
	pDrunkLevelLast[playerid] = -1;
	pFPS[playerid] = -1;
	RemovePickUps(playerid);
	DMSpawn[playerid] = 0;
	clanmesID[playerid] = 0;
	missioncheck[playerid] = 0;
	missiondone[playerid] = 0;
	for(new i; i < 4; i++)
	{
		textspam[playerid][i] = 0;
	}
	storerespawn[playerid] = 0;
	foreach(Player,i)
	{
	    ignored[i][playerid] = 0;
	    ignored[playerid][i] = 0;
	    voted[playerid][i] = 0;
	}
	bugged[playerid] = 0;
	lastwarned[playerid] = gettime() - 10;
	spawndata[playerid][p_world] = 0;
	spawndata[playerid][spawnkill_protection] = 0;
	for(new i; i < 13; i++)
	{
		spawndata[playerid][p_weapons][i] = 0;
		spawndata[playerid][p_ammo][i] = 0;
	}
	p_healtharmour[playerid][p_health] = 0.0;
	p_healtharmour[playerid][p_armour] = 0.0;
	foreach(Player,i) Anzeige(i);
	for(new i; i < sizeof(BriefCase); i++)
 	{
		SetPlayerMapIcon(playerid,i,briefcasepos[i][0],briefcasepos[i][1],briefcasepos[i][2],6,0,0);
	}
	for(new i; i < sizeof(TeamNames); i++)
	{
	    SetPlayerMapIcon(playerid,i+sizeof(BriefCase),FlagPosition[i][0],FlagPosition[i][1],FlagPosition[i][2],19,0,0);
	}
	for(new i = 0; i < 13; i++)
	{
	    PlayerWeapons[playerid][i] = 0;
	}
	GrantedJetpack[playerid] = false;
	jetpackcanuse[playerid] = 0;
	for(new i; i < 2; i++) nolaganticheat[playerid][i] = 0;
	vhmod_warned[playerid] = 0;
	BF[playerid] = 0;
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)