how not ban When buy(weapon hcak)
#3

Make a variable to store the players weapon in for example. PlayerInfo[playerid][pMeele].

Your code will be like this for the anticheat (Not full code)

pawn Код:
public weaponanti()
{
    for (new i = 0; i < MAX_PLAYERS; i++)
    {
         if (GetPlayerWeapon(i) == 1 && PlayerInfo[i][pMeele] != 1)
         {
          new pname[200];
       new string[200];
       GetPlayerName(i, pname, sizeof(pname));
       format(string, sizeof(string), "[ANTI-CHEAT] %s Banned for Weapon Hack", pname);
       SendClientMessageToAll(COLOR_GREEN,string);
       SetTimer("banningtimer",2000,0);
       banning[i] =1;
         }
}
Giving a weapon will then be like this.

pawn Код:
PlayerInfo[playerid][pMeele] = 1;//Meele Weapon id here.
GivePlayerWeapon(playerid, 1,1);
There are alot of ways to do this but I am in college and gave one of the simplest ways I know, I will post here again if your still having trouble after college.
Reply


Messages In This Thread
how not ban When buy(weapon hcak) - by par30 - 26.11.2013, 07:29
Re: how not ban When buy(weapon hcak) - by par30 - 26.11.2013, 08:51
Re: how not ban When buy(weapon hcak) - by jueix - 26.11.2013, 09:50
Re: how not ban When buy(weapon hcak) - by par30 - 26.11.2013, 11:34
Re: how not ban When buy(weapon hcak) - by iFiras - 26.11.2013, 11:45

Forum Jump:


Users browsing this thread: 1 Guest(s)