#2

PHP код:

// top
new gTimesHacked[MAX_PLAYERS];
public 
BadCheck()
{
    new 
weapstring[228], string3[256], pname[MAX_PLAYER_NAME]; //  
    
for(new iGetMaxPlayers(); bi++) // 
    
{
        
GetPlayerName(ipnamesizeof(pname));
        
weap GetPlayerWeapon(i);
        for(new 
wsizeof(BadWeapons); w++)
        {
            if(
pInfo[i][pAdmin] < 1)
            {
                if(
weap == BadWeapons[w])
                   {
                                   
gTimesHacked[i]++;
                                   if(
gTimesHacked[i] > 1)
                                   {
                                        
Kick(i);
                                   }
                   
format(string,sizeof(string),"SERVER ANTI-CHEAT: %s is trying to hack weapons."pname);
                   
SendMessageToAdmins(RED,string);
                   
ResetPlayerWeapons(i);
                }
            }
        }
    }
    return 
1;

You can also put a variable in the player enum. Rememeber to reset at connection.
Reply


Messages In This Thread
Warn - by STONEGOLD - 22.06.2015, 07:12
Re: Warn - by AlonzoTorres - 22.06.2015, 07:21
Re: Warn - by STONEGOLD - 22.06.2015, 07:41
Re: Warn - by STONEGOLD - 22.06.2015, 07:45
Re: Warn - by AlonzoTorres - 22.06.2015, 08:06

Forum Jump:


Users browsing this thread: 1 Guest(s)