[11:43:50] [connection] 199.188.236.98:1306 requests connection cookie. [11:43:51] Incoming connection: 199.188.236.98:1306 id: 3 [11:43:51] [connection] 199.188.236.98:1305 requests connection cookie. [11:43:52] Incoming connection: 199.188.236.98:1305 id: 4 [11:43:52] [join] Hacked_By_Hacker_ has joined the server (3:199.188.236.98) [11:43:52] [connection] 199.188.236.98:1307 requests connection cookie. [11:43:52] Incoming connection: 199.188.236.98:1307 id: 4 [11:43:53] [connection] 199.188.236.98:1308 requests connection cookie. [11:43:53] Incoming connection: 199.188.236.98:1308 id: 4 [11:43:54] [connection] 199.188.236.98:1310 requests connection cookie. [11:43:54] Incoming connection: 199.188.236.98:1310 id: 4 [11:43:57] [connection] 199.188.236.98:1311 requests connection cookie. [11:43:57] Incoming connection: 199.188.236.98:1311 id: 4 [11:44:00] [connection] 199.188.236.98:1313 requests connection cookie. [11:44:00] Incoming connection: 199.188.236.98:1313 id: 4
|
Go to this link https://sampforum.blast.hk/showthread.php?tid=504244
And scroll to connection proofing ![]() |
// Anti NPC spoof by [uL]Pottus
forward OnAntiCheatNPCSpoof(playerid);
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid))
{
new ip[16];
GetPlayerIp(playerid, ip, sizeof(ip));
if (!!strcmp(ip, "127.0.0.1"))
{
new name[MAX_PLAYER_NAME];
format(name, sizeof(name), "%i", gettime());
SetPlayerName(playerid, name);
CallLocalFunction("OnAntiCheatNPCSpoof", "i", playerid);
return 1;
}
}
if (funcidx("AntiNPC_OnPlayerConnect") != -1)
{
return CallLocalFunction("AntiNPC_OnPlayerConnect", "i", playerid);
}
return 1;
}
#if defined _ALS_OnPlayerConnect
#undef OnPlayerConnect
#else
#define _ALS_OnPlayerConnect
#endif
#define OnPlayerConnect AntiNPC_OnPlayerConnect
forward AntiNPC_OnPlayerConnect(playerid);

// Anti connection spoofing patch by [uL]Pottus
forward OnAntiCheatPlayerSpoof(playerid);
static bool:PlayerConnected[MAX_PLAYERS];
static PlayerNames[MAX_PLAYERS][MAX_PLAYER_NAME];
public OnPlayerConnect(playerid)
{
// User was already connected cheat detected
if(PlayerConnected[playerid])
{
SetPlayerName(playerid, PlayerNames[playerid]);
CallLocalFunction("OnAntiCheatPlayerSpoof", "i", playerid);
return 1;
}
else
{
GetPlayerName(playerid, PlayerNames[playerid], MAX_PLAYER_NAME);
PlayerConnected[playerid] = true;
}
if (funcidx("AntiSpoof_OnPlayerConnect") != -1)
{
return CallLocalFunction("AntiSpoof_OnPlayerConnect", "i", playerid);
}
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
PlayerConnected[playerid] = false;
if (funcidx("AntiSpoof_OnPlayerDisconnect") != -1)
{
return CallLocalFunction("AntiSpoof_OnPlayerDisconnect", "ii", playerid, reason);
}
return 1;
}
#if defined _ALS_OnPlayerConnect
#undef OnPlayerConnect
#else
#define _ALS_OnPlayerConnect
#endif
#define OnPlayerConnect AntiSpoof_OnPlayerConnect
forward AntiSpoof_OnPlayerConnect(playerid);
#if defined _ALS_OnPlayerDisconnect
#undef OnPlayerDisconnect
#else
#define _ALS_OnPlayerDisconnect
#endif
#define OnPlayerDisconnect AntiSpoof_OnPlayerDisconnect
forward AntiSpoof_OnPlayerDisconnect(playerid, reason);