Simple Anticheat Check not working
#2

If its using to check if they have weapons why not just make the code simpler and just use:

pawn Code:
if(GetPlayerWeapon(i) == weaponid)
  {
    if(GetPlayerAmmo(i) > 0)
    {
      // Code here...
    }
  }
Then you would follow the pattern with:

pawn Code:
if(GetPlayerWeapon(i) == weaponid)
  {
    if(GetPlayerAmmo(i) > 0)
    {
      // Code here...
    }
  }
  else if(GetPlayerWeapon(i) == weaponid)
  {
    if(GetPlayerAmmo(i) > 0)
    {
      // Code here...
    }
  }
But if its just to check weapons, I recommend using OnPlayerUpdate, its commonly known to be used for Anti Cheats.
Reply


Messages In This Thread
Simple Anticheat Check not working - by BP13 - 18.12.2009, 03:01
Re: Simple Anticheat Check not working - by FreshKilla - 18.12.2009, 03:29
Re: Simple Anticheat Check not working - by BP13 - 18.12.2009, 03:35
Re: Simple Anticheat Check not working - by FreshKilla - 18.12.2009, 03:39
Re: Simple Anticheat Check not working - by BP13 - 18.12.2009, 04:01
Re: Simple Anticheat Check not working - by DarkPower - 28.02.2010, 15:09

Forum Jump:


Users browsing this thread: 1 Guest(s)