#1

Well, I'm using this script. I want to add a warning system. I mean, If player try to hack weapons at first time it should be restplayerweapons and if he try to hack again then it should ban player.

i have tried but idk what's wrong.

PHP код:
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])
                   {
                   
format(string,sizeof(string),"SERVER ANTI-CHEAT: %s is trying to hack weapons."pname);
                   
SendMessageToAdmins(RED,string);
                   
ResetPlayerWeapons(i);
                }
            }
        }
    }
    return 
1;

Well, This work good but i want to add if player try to hack again which means 2nd time then it should kick player.
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: 4 Guest(s)