can this fail?
#7

so this is the right way to go about it, i did it like this so the player still has to be physically holding the gun and if they are its only then it checks the gun+ammo as you can see...

pawn Код:
}

public WeaponCheck(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        new cheatweapon, cheatammo;
        for (new i=0; i<13; i++)
        {
             GetPlayerWeaponData(playerid, i, cheatweapon, cheatammo);
             if(GetPlayerWeapon(playerid) == WEAPON_TEARGAS)
             {
                  if(cheatweapon == WEAPON_TEARGAS && cheatammo >= 1)
                  {
                       //ban
                       //return 1;
                  }
             // nextcheck...
correct?
Reply


Messages In This Thread
can this fail? - by Killa[DGZ] - 26.06.2011, 11:41
Re: can this fail? - by Mike Garber - 26.06.2011, 11:53
Re: can this fail? - by robanswe - 26.06.2011, 12:02
Re: can this fail? - by Killa[DGZ] - 26.06.2011, 12:07
Re: can this fail? - by robanswe - 26.06.2011, 12:12
Re: can this fail? - by Killa[DGZ] - 26.06.2011, 12:16
Re: can this fail? - by Killa[DGZ] - 26.06.2011, 12:56
Re: can this fail? - by PrawkC - 26.06.2011, 12:59
Re: can this fail? - by Killa[DGZ] - 26.06.2011, 13:07
Re: can this fail? - by Killa[DGZ] - 28.06.2011, 12:04

Forum Jump:


Users browsing this thread: 1 Guest(s)