[pomoc] anticheat

Započeo sampzone, April 16, 2011, 14:34:03 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

mod koji ja koristim: Street Stories
problem: Kada igrac opljacka banku on dobije ban i pise da je dobio zbog moneyhack....Sad nzm kako to da rjesim         aaaa imam i problem kada policajac uzme /equip 6 i /equip 9 da dobije ban zbog weaponhack i to nzm kako da rjesim

Evo dacu vam codove od moneyhacka i weaponhacka

money:

   new plactualmoney = GetPlayerMoney(i);
            if (plactualmoney > ScriptMoney && plactualmoney-999 > ScriptMoney)
            {
               GetPlayerName(i, plname, sizeof(plname));
               TogglePlayerControllable(i, 0);
               PlayerInfo[pLocked] = 1;
               OnPlayerUpdate(i);
               GetPlayerIp(i, banip, sizeof(banip));
               new spawnedamount = plactualmoney-ScriptMoney;
               format(string, sizeof(string), "ANTICHEAT: %s je dobio kick od AntiCheat-a, Razlog: MoneyHack (%d DIN)", plname, spawnedamount);
               Kick(i);
               ScriptMoney = 0;
               ScriptMoneyUpdated = 0;
               SendClientMessageToAll(COLOR_LIGHTRED, string);
            }
            else
            {
               ScriptMoney = plactualmoney;
               ScriptMoneyUpdated = 0;
            }







evo vam weapon:

   GetPlayerWeaponData(i, 7, weaponid, ammo);
         new pSpecialAction = GetPlayerSpecialAction(i);
         if (weaponid > 1 || pSpecialAction == SPECIAL_ACTION_USEJETPACK)
         {
            TogglePlayerControllable(i, 0);
            SendClientMessage(i, COLOR_LIGHTRED, "ANTICHEAT: Dobili ste BAN! Razlog: WeaponHack");
            SendClientMessage(i, COLOR_LIGHTRED, "ANTICHEAT: Ukoliko mislite da je ovo pogreska posjetite forum");
            SendClientMessage(i, COLOR_RED, "ANTICHEAT: Samp-Zone || www.sampzone.info ");
            OnPlayerUpdate(i);
            GetPlayerName(i, plname, sizeof(plname));
            format(string, sizeof(string), "[ADMIN]: %s je dobio BAN od ANTICHEATA, Razlog: WEAPONHACK", plname);
            Ban(i);
            SendClientMessageToAll(COLOR_LIGHTRED, string);
         }



hvala za pomoc unaprijed!