• Страница 1 из 1
  • 1
Модератор форума: [east_side]_trane, drifter-dron, valych, admin  
[FS]анти-чит
adminДата: Четверг, 30.12.2010, 15:23:13 | Сообщение # 1

Группа: Администраторы
Сообщений: 3869
Введение:
Я создаю его простой анти-хак на основе проведенных в стороны сервера.

Функции:

• Антивирус восстановление здоровья игрока
• Антивирус Регенерация Доспехи Player
• Антивирус Автомобили восстановление здоровья
• Anti Money Взлом's

Code
/*
     ________________________________________________________________________
     |                _______  ______   _                    |
     |               (  ____ \(  ____ \| \    /\                            |
     |               | (    \/| (    \/|  \  / /                            |
     |               | (__    | (__    |  |_/ /                             |
     |               |  __)   |  __)   |   _ (                    |
     |               | (      | (      |  | \ \                             |
     |               | )      | (____/\|  /  \ \                            |
     |               |/       (_______/|_/    \/                            |
     |                    |
     |                   Created By DraKiNs                    |
     |                    |
     |         [FeK]Company clan of Programmers and Scripters               |
     |______________________________________________________________________|
                        www,feksquad,net

                    Atualizado Data 29/12/2010

                Acesse Nosso Blog para mais Atualizaзхes

                       Deixe os Crйditos!

--------------- Functions -------------------
Anti Regeneration HP
Anti Regeneration AP
Anti Regeneration HV
Anti Money Hacking's
--------------------------------------------
                    */
#include <a_samp>

#define SLOTS   50          //- define your slots of server
#define VEHIC   2000        //- define number max of cars in you server

forward iCheckingHealth();
forward iCheckingMoney();

new
     Float:zHealth[ (SLOTS) ],
     Float:sHealth[ (SLOTS) ],
     Float:vHealth[ (VEHIC) ],
     Float:cHealth[ (VEHIC) ],
     Float:zArmour[ (SLOTS) ],
     Float:sArmour[ (SLOTS) ],
     bool:iPlayers[ (SLOTS) ],
     UsingiMoney  [ (SLOTS) ]
;

public
     OnGameModeInit( )
{
     printf("Anti Regeneration HP - By DraKiNs");
     printf(" Look www.projetos.feksquad.net");
     CallRemoteFunction("iCheckingMoney", "", "");
     return true;
}
public
     OnPlayerConnect( playerid )
{
     iPlayers[ playerid ] = true;
     zHealth[ playerid ] = 0.0;
     sHealth[ playerid ] = 0.0;
     return true;
}   

public
     OnPlayerEnterVehicle(playerid , vehicleid)
{
     GetVehicleHealth(vehicleid,cHealth[ vehicleid ] );
     return true;
}

public
     OnPlayerExitVehicle(playerid , vehicleid)
{
     GetVehicleHealth(vehicleid,cHealth[ vehicleid ] );
     return true;
}

public
     OnPlayerDisconnect( playerid , reason )
{
     iPlayers[ playerid ] = false;
     return true;
}

public
     iCheckingMoney( )
{
     for(new iPlayer = 0; iPlayer < (SLOTS) ; iPlayer++)
         if(iPlayers[ iPlayer ] == true)
             UsingiMoney[ iPlayer ] = GetPlayerMoney ( iPlayer );
     SetTimer("iCheckingHealth",1500,false);
     return true;
}

public
     iCheckingHealth( )
{
     for(new iPlayer = 0; iPlayer < (SLOTS) ; iPlayer++)
     {
         if(iPlayers[ iPlayer ] == true)
         {
             GetPlayerHealth( iPlayer,zHealth[ iPlayer ] );
             if(zHealth[ iPlayer ] > 0 && sHealth[ iPlayer ] < zHealth[ iPlayer ] )
             {
                 if(UsingiMoney[ iPlayer ] > GetPlayerMoney( iPlayer ) )
                 {
                     SendClientMessage(iPlayer,0xFF0000AA, "[INFO] Your Health is Seted (Suspect Hacks)");
                     zHealth[ iPlayer ] = sHealth[ iPlayer ];
                 }
             }
             SetPlayerHealthEx(iPlayer,zHealth[ iPlayer ]);
             GetPlayerArmour( iPlayer,zArmour[ iPlayer ] );
             if(zArmour[ iPlayer ] > 0 && sArmour[ iPlayer ] < zArmour[ iPlayer ] )
             {
                 if(UsingiMoney[ iPlayer ] > GetPlayerMoney( iPlayer ) )
                 {
                     SendClientMessage(iPlayer,0xFF0000AA, "[INFO] Your Armour is Seted (Suspect Hacks)");
                     zArmour[ iPlayer ] = sArmour[ iPlayer ];
                 }
             }
             SetPlayerArmourEx(iPlayer,zArmour[ iPlayer ]);
             new iVehicle = GetPlayerVehicleID( iPlayer );
             if(iVehicle > -1)
             {
                 GetVehicleHealth(iVehicle,vHealth[ iVehicle ] );
                 if(vHealth[ iVehicle ] > 0 && cHealth[ iVehicle ] < vHealth[ iVehicle ] )
                 {
                     if(UsingiMoney[ iPlayer ] > GetPlayerMoney( iPlayer ) )
                     {
                         SendClientMessage(iPlayer,0xFF0000AA, "[INFO] Your Health Vehicle is Seted (Suspect Hacks)");
                         vHealth[ iVehicle ] = cHealth[ iVehicle ];
                     }
                 }
                 SetVehicleHealthEx(iVehicle,vHealth[ iVehicle ]);
             }
             if(UsingiMoney[ iPlayer ] < GetPlayerMoney( iPlayer ) )
             {
                 GivePlayerMoneyEx(iPlayer,UsingiMoney[ iPlayer ] - GetPlayerMoney( iPlayer ));
                 SendClientMessage(iPlayer,0xFF0000AA, "[INFO] Your Money is Seted (Suspect Hacks)");
             }
         }
     }
     SetTimer("iCheckingMoney",1500,false);
     return true;
}

stock
     SetPlayerHealthEx(iPlayer,Float:iHealth)
{
     sHealth[ iPlayer ] = iHealth;
     return SetPlayerHealth(iPlayer,iHealth);
}

stock
     SetVehicleHealthEx(iVehicle,Float:fHealth)
{
     cHealth[ iVehicle ] = fHealth;
     return SetVehicleHealth(iVehicle,fHealth);
}

stock
     GivePlayerMoneyEx(iPlayer,fMoney)
{
     UsingiMoney[ iPlayer ] = fMoney;
     return GivePlayerMoney(iPlayer,fMoney);
}

stock
     SetPlayerArmourEx(iPlayer,Float:fArmour)
{
     sArmour[ iPlayer ] = fArmour;
     return SetPlayerArmour(iPlayer,fArmour);
}

функции:
Code
SetPlayerArmour -> SetPlayerArmourEx
SetPlayerHealth ->  SetPlayerHealthEx
GivePlayerMoney -> GivePlayerMoneyEx
SetVehicleHealth -> SetVehicleHealthEx

Источник:sa-mp.com


zm-jail.ru

Разработка сайта samp-pawno.ru


 
СообщениеВведение:
Я создаю его простой анти-хак на основе проведенных в стороны сервера.

Функции:

• Антивирус восстановление здоровья игрока
• Антивирус Регенерация Доспехи Player
• Антивирус Автомобили восстановление здоровья
• Anti Money Взлом's

Code
/*
     ________________________________________________________________________
     |                _______  ______   _                    |
     |               (  ____ \(  ____ \| \    /\                            |
     |               | (    \/| (    \/|  \  / /                            |
     |               | (__    | (__    |  |_/ /                             |
     |               |  __)   |  __)   |   _ (                    |
     |               | (      | (      |  | \ \                             |
     |               | )      | (____/\|  /  \ \                            |
     |               |/       (_______/|_/    \/                            |
     |                    |
     |                   Created By DraKiNs                    |
     |                    |
     |         [FeK]Company clan of Programmers and Scripters               |
     |______________________________________________________________________|
                        www,feksquad,net

                    Atualizado Data 29/12/2010

                Acesse Nosso Blog para mais Atualizaзхes

                       Deixe os Crйditos!

--------------- Functions -------------------
Anti Regeneration HP
Anti Regeneration AP
Anti Regeneration HV
Anti Money Hacking's
--------------------------------------------
                    */
#include <a_samp>

#define SLOTS   50          //- define your slots of server
#define VEHIC   2000        //- define number max of cars in you server

forward iCheckingHealth();
forward iCheckingMoney();

new
     Float:zHealth[ (SLOTS) ],
     Float:sHealth[ (SLOTS) ],
     Float:vHealth[ (VEHIC) ],
     Float:cHealth[ (VEHIC) ],
     Float:zArmour[ (SLOTS) ],
     Float:sArmour[ (SLOTS) ],
     bool:iPlayers[ (SLOTS) ],
     UsingiMoney  [ (SLOTS) ]
;

public
     OnGameModeInit( )
{
     printf("Anti Regeneration HP - By DraKiNs");
     printf(" Look www.projetos.feksquad.net");
     CallRemoteFunction("iCheckingMoney", "", "");
     return true;
}
public
     OnPlayerConnect( playerid )
{
     iPlayers[ playerid ] = true;
     zHealth[ playerid ] = 0.0;
     sHealth[ playerid ] = 0.0;
     return true;
}   

public
     OnPlayerEnterVehicle(playerid , vehicleid)
{
     GetVehicleHealth(vehicleid,cHealth[ vehicleid ] );
     return true;
}

public
     OnPlayerExitVehicle(playerid , vehicleid)
{
     GetVehicleHealth(vehicleid,cHealth[ vehicleid ] );
     return true;
}

public
     OnPlayerDisconnect( playerid , reason )
{
     iPlayers[ playerid ] = false;
     return true;
}

public
     iCheckingMoney( )
{
     for(new iPlayer = 0; iPlayer < (SLOTS) ; iPlayer++)
         if(iPlayers[ iPlayer ] == true)
             UsingiMoney[ iPlayer ] = GetPlayerMoney ( iPlayer );
     SetTimer("iCheckingHealth",1500,false);
     return true;
}

public
     iCheckingHealth( )
{
     for(new iPlayer = 0; iPlayer < (SLOTS) ; iPlayer++)
     {
         if(iPlayers[ iPlayer ] == true)
         {
             GetPlayerHealth( iPlayer,zHealth[ iPlayer ] );
             if(zHealth[ iPlayer ] > 0 && sHealth[ iPlayer ] < zHealth[ iPlayer ] )
             {
                 if(UsingiMoney[ iPlayer ] > GetPlayerMoney( iPlayer ) )
                 {
                     SendClientMessage(iPlayer,0xFF0000AA, "[INFO] Your Health is Seted (Suspect Hacks)");
                     zHealth[ iPlayer ] = sHealth[ iPlayer ];
                 }
             }
             SetPlayerHealthEx(iPlayer,zHealth[ iPlayer ]);
             GetPlayerArmour( iPlayer,zArmour[ iPlayer ] );
             if(zArmour[ iPlayer ] > 0 && sArmour[ iPlayer ] < zArmour[ iPlayer ] )
             {
                 if(UsingiMoney[ iPlayer ] > GetPlayerMoney( iPlayer ) )
                 {
                     SendClientMessage(iPlayer,0xFF0000AA, "[INFO] Your Armour is Seted (Suspect Hacks)");
                     zArmour[ iPlayer ] = sArmour[ iPlayer ];
                 }
             }
             SetPlayerArmourEx(iPlayer,zArmour[ iPlayer ]);
             new iVehicle = GetPlayerVehicleID( iPlayer );
             if(iVehicle > -1)
             {
                 GetVehicleHealth(iVehicle,vHealth[ iVehicle ] );
                 if(vHealth[ iVehicle ] > 0 && cHealth[ iVehicle ] < vHealth[ iVehicle ] )
                 {
                     if(UsingiMoney[ iPlayer ] > GetPlayerMoney( iPlayer ) )
                     {
                         SendClientMessage(iPlayer,0xFF0000AA, "[INFO] Your Health Vehicle is Seted (Suspect Hacks)");
                         vHealth[ iVehicle ] = cHealth[ iVehicle ];
                     }
                 }
                 SetVehicleHealthEx(iVehicle,vHealth[ iVehicle ]);
             }
             if(UsingiMoney[ iPlayer ] < GetPlayerMoney( iPlayer ) )
             {
                 GivePlayerMoneyEx(iPlayer,UsingiMoney[ iPlayer ] - GetPlayerMoney( iPlayer ));
                 SendClientMessage(iPlayer,0xFF0000AA, "[INFO] Your Money is Seted (Suspect Hacks)");
             }
         }
     }
     SetTimer("iCheckingMoney",1500,false);
     return true;
}

stock
     SetPlayerHealthEx(iPlayer,Float:iHealth)
{
     sHealth[ iPlayer ] = iHealth;
     return SetPlayerHealth(iPlayer,iHealth);
}

stock
     SetVehicleHealthEx(iVehicle,Float:fHealth)
{
     cHealth[ iVehicle ] = fHealth;
     return SetVehicleHealth(iVehicle,fHealth);
}

stock
     GivePlayerMoneyEx(iPlayer,fMoney)
{
     UsingiMoney[ iPlayer ] = fMoney;
     return GivePlayerMoney(iPlayer,fMoney);
}

stock
     SetPlayerArmourEx(iPlayer,Float:fArmour)
{
     sArmour[ iPlayer ] = fArmour;
     return SetPlayerArmour(iPlayer,fArmour);
}

функции:
Code
SetPlayerArmour -> SetPlayerArmourEx
SetPlayerHealth ->  SetPlayerHealthEx
GivePlayerMoney -> GivePlayerMoneyEx
SetVehicleHealth -> SetVehicleHealthEx

Источник:sa-mp.com

Автор - admin
Дата добавления - 30.12.2010 в 15:23:13
  • Страница 1 из 1
  • 1
Поиск:
Загрузка страницы, займет меньше минуты...
Загрузка...

Статистика Форума
Последнии темы Читаемые темы Лучшие пользователи Новые пользователи
Система телефонов поломалась
Не в себе
фильм скалайн
Трансформеры 3
форсаж 6
Ищу [FS]Для админок на сервер
нужны координаты карты для отметки зон...
Помогите найти мод
pawno урок автоматические ворота
обращение к скриптерам.
Вопросы по скриптингу
Ваши ошибки при компиляции GM/FS

Вопросы по скриптингу

(1081)

Считаем до 1000

(274)

Ваши ошибки при компиляция gm

(260)

Набор в команду

(80)

Ваши ошибки при компиляции GM/FS

(71)

вопроосы по скриптингу от 22.04.2013

(64)

Баннеробмен

(64)

несколько команд на samp 0.3 c

(64)

Оценки сайта samp-pawno.ru

(55)

Заказ хостинга

(51)

Набор в команду(форум)

(45)

Урок №61 по созданию системы авто для GodFather

(45)

admin

(3869)

[east_side]_trane

(443)

TWiX

(316)

valych

(501)

drifter-dron

(477)

danik_rok

(317)

Dimka_71rus

(360)

Drifter96

(300)

MaNb9K

(220)

[MTA]MaPeR5518

(181)

Dima_Tkach

(107)

Nik_Ull

(184)

system32xzxz

(Четверг 09:25:24)

torbin169

(Суббота 23:09:29)

kuchuk_00

(Суббота 17:10:14)

artem_boyko_3

(Суббота 15:57:37)

greggelbak

(Среда 18:29:37)

vladisvlavs

(Среда 13:51:57)

add02102002

(Понедельник 22:37:15)

Диман221

(Понедельник 18:12:45)

almas051004

(Воскресенье 11:05:32)

megasuccessms

(Суббота 14:15:36)

nawe

(Пятница 22:25:23)

swoysb

(Пятница 14:55:29)

Вверх
23:12:07
ОбновитьСмайлыУправление мини-чатом
ЧАТ-PAWNO
2010-2025

vkontakte :samp-pawno.ru: