SA-MP 0.3x R2 server patch 1

Quote:
Originally Posted by Play2Hard
Посмотреть сообщение
Good job there
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Reply

Thx I was need to
Reply

Great Job
Reply

Thanks a lot ^^
Reply

Big thanks
Reply

it's work
Thank You !
Reply

Thanks!
Reply

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
Well I know the streamer plugin causes it to happen but it's indeed a SAMP bug I even talked with Incognito on IRC about this today here is what he said. So just because it doesn't happen for you is probably because of the following reasons.

1.) Not enough player volume
2.) Not many or no streamed objects (Our map currently has about 110K objects)

<Pottus> Just wanted to get your input on something that started happening with the latest SAMP hotfix, when some people spectate they timeout I'm certain it's related to the streamer in one way or another any ideas of what could cause that ?
<Incognito> if the problem is client-side, then I don't see how... the streamer is just a wrapper around SA-MP native functions
<Incognito> so, if anything, the problem lies with CreatePlayerObject, etc
Did anything more come of this because this issue is present on a server I develop for and is quite frustrating. Specifically when spectating or being teleported to a custom interior / outside of one.
Reply

Quote:
Originally Posted by MisterTickle
Посмотреть сообщение
Did anything more come of this because this issue is present on a server I develop for and is quite frustrating. Specifically when spectating or being teleported to a custom interior / outside of one.
This is fixed on 0.3z.
Reply

Witam mam pewien problem z sampe-m otуż jak uruchamiam serwer to włącza mi się normalne gta san andreas zamiast sampa może mi ktoś pomуc?
Reply

Quote:
Originally Posted by rybski100mateusz
Посмотреть сообщение
Witam mam pewien problem z sampe-m otуż jak uruchamiam serwer to włącza mi się normalne gta san andreas zamiast sampa może mi ktoś pomуc?
Quote:
Originally Posted by rybski100mateusz
Посмотреть сообщение
Polish-English:Hello I have a problem with samp. When I try to open a server, GTA San Andreas Singleplayer starts up instead of San Andreas Multiplayer. Can someone help me?
sprobuj uruchomic samp.exe jako admin na wlasciwosci?
Polish-English: Try running samp.exe as admin in properties?


Note: Next time use English as it's a english forum, sorry
Uwaga: Nastepnym razie uzyj jezyk angielski, bo to jest angielski forum, przepraszam
Reply

thnx kalcor
Reply

great..
Reply

nice\
Reply

Hello, my problem continues today. The server gets DDoS attack time. I talked hosting company and they said they did update.


[20:02:57] AckRanges DoS attack from 79.119.155.147:4737 (1261)
[20:02:59] AckRanges DoS attack from 93.113.61.152:55852 (1119)
[20:02:59] AckRanges DoS attack from 109.233.198.68:63177 (1119)
[20:02:59] AckRanges DoS attack from 46.214.192.118:51171 (1119)
[20:02:59] AckRanges DoS attack from 89.42.147.150:1862 (1119)
[20:02:59] AckRanges DoS attack from 79.118.250.203:63044 (1119)
[20:02:59] AckRanges DoS attack from 91.238.94.164:4338 (1119)
[20:02:59] AckRanges DoS attack from 188.24.178.206:51757 (1119)
[20:02:59] AckRanges DoS attack from 188.212.4.221:55837 (1119)
[20:03:00] AckRanges DoS attack from 92.87.214.80:52541 (1121)
[20:03:00] AckRanges DoS attack from 89.32.200.136:51019 (1119)
Reply

I made this update ! Yesterday enter my server a person and shout down my server, what is the problem ?
Reply

Today, an user called Pablo_Jara turned off my server, and is strange because it has 64GB RAM, 100mbps, 2TB disk hard memory, an Atom Opteron 6272...
Reply

Quote:
Originally Posted by Kemula
View Post
Today, an user called Pablo_Jara turned off my server, and is strange because it has 64GB RAM, 100mbps, 2TB disk hard memory, an Atom Opteron 6272...
A simple 1 Gbit/s connection on a linux VPS can with the right scripts take down a server with a 100mbps connection without protection easily. This update was to prevent users from using custom written tools and specially formulated packets to attack SA-MP servers. This does not prevent anyone from DDosing your VPS though.
Reply

To fix the timeouts, make a script to "whitelist" players. All you need to do is keep sending SendRconCommand("unbanip x.x.x.x") every 150ms or so.

Don't whitelist everyone, though, as that would allow attackers to do their thing.

Edit: Proof-of-concept:
Code:
#include <a_samp>

new g_FixTimeout[MAX_PLAYERS];

public OnFilterScriptInit() {
	SetTimer("TimeoutFix", 200, true);
}

public OnPlayerCommandText(playerid, cmdtext[]) {
	if (!IsPlayerAdmin(playerid)) {
		return 0;
	}
	
	if (!strcmp(cmdtext, "/fixtimeout ", _, 12)) {
		new pid = strval(cmdtext[12]);

		if (0 <= pid < MAX_PLAYERS) {
			g_FixTimeout[pid] = true;

			SendClientMessage(playerid, 0x00CC00FF, "> Player added to fix list");
		} else {
			SendClientMessage(playerid, 0xC00000FF, "> Invalid ID");
		}

		return 1;
	}

	return 0;
}

public OnPlayerDisconnect(playerid, reason) {
	g_FixTimeout[playerid] = false;

	return 1;
}

public TimeoutFix();
public TimeoutFix() {
	new tick = GetTickCount();

	for (new i = 0; i < MAX_PLAYERS; i++) {
		if (!g_FixTimeout[i]) {
			continue;
		}

		new cmd[32];

		GetPlayerIp(i, cmd, sizeof(cmd));

		format(cmd, sizeof(cmd), "unbanip %s", cmd);

		SendRconCommand(cmd);
	}

	tick = GetTickCount() - tick;

	if (tick > 10) {
		printf("Warning: timeoutfix took %dms", GetTickCount() - tick);
	}
}
Reply

Wow Amazing!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)