24.04.2016, 10:34
I've been trying to fix my script about this, every time I enter or exit a house, it gives me this warning and if I do it on the official host - the player gets temporarily banned. So I've noticed that this happens whenever I have 200+ houses and a single player enters or exits a house. I already increased the ackslimit on server.cfg but it's still doing this. Any help would be appreciated!
Here's the code:
Here's the code:
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
if(IsConnected(playerid)) {
if(PRESSED(KEY_YES)) {
new hz = 0;
for(new h = 0; h < sizeof(House); h++) {
if(IsPlayerInRangeOfPoint(playerid, 3.0, House[h][Enter][0], House[h][Enter][1], House[h][Enter][2])) {
if(GetPlayerInterior(playerid) == House[h][EnterInt] && GetPlayerVirtualWorld(playerid) == House[h][EnterWorld]) {
hz = h;
break;
}
}
}
if(hz != 0) {
SetPlayerPos(playerid, House[hz][Exit][0], House[hz][Exit][1], House[hz][Exit][2]);
SetPlayerFacingAngle(playerid, House[hz][Exit][3]);
SetCameraBehindPlayer(playerid);
SetPlayerInteriorEx(playerid, House[hz][ExitInt]);
SetPlayerVirtualWorldEx(playerid, House[hz][ExitWorld]);
PlayerInfo[playerid][pInHouse] = House[hz][ID];
return 1;
}
if(PlayerInfo[playerid][pInHouse] != 0) {
new h = PlayerInfo[playerid][pInHouse];
if(IsPlayerInRangeOfPoint(playerid, 3.0, House[h][Exit][0], House[h][Exit][1], House[h][Exit][2])) {
if(GetPlayerInterior(playerid) == House[h][ExitInt] && GetPlayerVirtualWorld(playerid) == House[h][ExitWorld]) {
SetPlayerPos(playerid, House[h][Enter][0], House[h][Enter][1], House[h][Enter][2]);
SetPlayerFacingAngle(playerid, House[h][Enter][3]);
SetCameraBehindPlayer(playerid);
SetPlayerInteriorEx(playerid, House[h][EnterInt]);
SetPlayerVirtualWorldEx(playerid, House[h][EnterWorld]);
PlayerInfo[playerid][pInHouse] = 0;
return 1;
}
}
}
}
}
return 1;
}
Код:
[18:30:06] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:06] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:06] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:06] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:06] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:06] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:06] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:06] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:06] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:06] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:06] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:07] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:07] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:07] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:07] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:07] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:07] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:07] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:07] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:07] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:07] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:07] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:07] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:07] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:07] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:07] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:07] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:07] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:07] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:07] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:07] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec [18:30:07] [warning] client exceeded 'ackslimit' 127.0.0.1:55648 (4241) Limit: 3000/sec