Join flood,connect spamer
#6

Quote:
Originally Posted by Roberto80
Посмотреть сообщение
Go to this link https://sampforum.blast.hk/showthread.php?tid=504244
And scroll to connection proofing
This?
PHP код:
// Anti NPC spoof by [uL]Pottus
forward OnAntiCheatNPCSpoof(playerid);
public 
OnPlayerConnect(playerid)
{
    if(
IsPlayerNPC(playerid))
    {
        new 
ip[16];
        
GetPlayerIp(playeridipsizeof(ip));
        if (!!
strcmp(ip"127.0.0.1"))
        {
            new 
name[MAX_PLAYER_NAME];
            
format(namesizeof(name), "%i"gettime());
            
SetPlayerName(playeridname);
            
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); 
Reply


Messages In This Thread
Join flood,connect spamer - by NexySamp - 30.08.2015, 10:09
Re: Join flood,connect spamer - by Michael B - 30.08.2015, 10:22
Re: Join flood,connect spamer - by NexySamp - 30.08.2015, 10:29
Re: Join flood,connect spamer - by IceBilizard - 30.08.2015, 10:36
Re: Join flood,connect spamer - by Roberto80 - 30.08.2015, 11:14
Re: Join flood,connect spamer - by NexySamp - 30.08.2015, 11:22
Re: Join flood,connect spamer - by Roberto80 - 30.08.2015, 11:26
Re: Join flood,connect spamer - by NexySamp - 30.08.2015, 11:30
Re: Join flood,connect spamer - by Roberto80 - 30.08.2015, 11:33
Re: Join flood,connect spamer - by NexySamp - 30.08.2015, 12:03

Forum Jump:


Users browsing this thread: 1 Guest(s)