my anti-cheat not always work :( please help
#1

PHP код:
    if(PlayerHaveWeapon[playerid][GetPlayerWeapon(playerid)] == && GetPlayerWeapon(playerid) != && SafeWeapon[playerid] == && !IsPlayerInAnyVehicle(playerid))
    {
        if(
PlayerChecked2[playerid] == 0)
        {
         if(
PlayerConnect[playerid] == 0)
          {
    
Chance2[playerid]++;
    new 
string[128],gunname[25];
    
GetWeaponNameEx(GetPlayerWeapon(playerid), gunnamesizeof(gunname));
    
format(stringsizeof(string), "[%s] тн зщщ мц'йи рщчйн, ра ифм бочшд жд [ID: %d] %s",gunname,playerid,GetName(playerid));
    
scmAdmin(white,string);
    
ResetPlayerWeaponsEX(playerid);
    
PlayerChecked2[playerid] = 1;
    
SetTimerEx("DownCheckANtiWeapon",5*1000,0,"%d",playerid);
         }
        }
    } 
PHP код:
forward GivePlayerWeaponEX(playeridweaponidammo);
public 
GivePlayerWeaponEX(playeridweaponidammo)
{
    
SafeWeapon[playerid] = 1;
    
PlayerHaveWeapon[playerid][weaponid] = 1;
    
GivePlayerWeapon(playeridweaponidammo);
    
SafeWeapon[playerid] = 0;
return 
1;
}
forward ResetPlayerWeaponsEX(playerid);
public 
ResetPlayerWeaponsEX(playerid)
{
SafeWeapon[playerid] = 1;
ResetPlayerWeapons(playerid);
    for (new 
154i++)
    {
    
PlayerHaveWeapon[playerid][i] = 0;
    }
SafeWeapon[playerid] = 0;
return 
1;

that's work but not always and i don't know why.. sometimes it's send message to admins to free ..

anyone see any problem? please
Reply
#2

now that's happend all the time !!!! pleaseeeeeeeeee
Reply
#3

jumping after 5 days.......

maybe that's because the weapons has been removed when they are in afk ?
Reply
#4

Make loops to check through all players, not just playerid.
Reply
#5

with new public and timer? and a few millisecond? 100/1000/1 ?
Reply
#6

i did loop every 100 millisecond the same happend

pleaseeeeee help !!!!!!!!!!!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)