На CarShot (Как на Samp-Rp)

Модератор: SJplayer

Romchik
Автор темы, Ефрейтор
Ефрейтор
Аватара
Romchik
Автор темы, Ефрейтор
Ефрейтор
Сообщения: 20
Зарегистрирован: 12 мая 2013
С нами: 10 лет 10 месяцев

#1 Romchik » 12 мая 2013, 15:36

Здравствуйте ув. Пользователи Pawno-Info сегодня мы напишем античит на CarShot который будет нас оповещать в админ чат пожалуй начнём :


ко всем new добавляем:

Код: Выделить всё

new fuckshoter[MAX_PLAYERS][3];  


В public OnPlayerConnect(playerid); добавляем:

Код: Выделить всё

fuckshoter[playerid][0]=0fuckshoter[playerid][1]=0fuckshoter[playerid][2]=0;   


В конец мода добавляем:

Код: Выделить всё

stock ScanPlayerDosRaket(playerid)
{
    if(
IsPlayerInAnyVehicle(playerid))
    {
        if(
fuckshoter[playerid][1] == 1)
        {
            
fuckshoter[playerid][1] = 0;
            new 
Float:Velocity231[3];
            
GetVehicleVelocity(fuckshoter[playerid][0], Velocity231[0], Velocity231[1], Velocity231[2]);
            if(
Velocity231[0]>|| Velocity231[1]>|| Velocity231[2]>|| Velocity231[0]<-|| Velocity231[1]<-|| Velocity231[2]<-2)
            {
                
SetVehicleHealth(fuckshoter[playerid][0], 0);
                if(
fuckshoter[playerid][2]<8fuckshoter[playerid][2]++; else
                {
                    
fuckshoter[playerid][2] = 0;
                    new 
nameqepinru3[MAX_PLAYER_NAME],string[180];
                    
GetPlayerName(playeridnameqepinru3sizeof(nameqepinru3));
                    
format(string,sizeof(string),"<Warning> %s[%d]: Возможно Car Airbreak",nameqepinru3,playerid);
                    
ABroadCast(0xFF0000AA,string,1);
                }
            }
        }
        new 
Float:Velocity23[3];
        
GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity23[0], Velocity23[1], Velocity23[2]);
        if(
Velocity23[0] == && Velocity23[1] == && Velocity23[2] == 0)
        {
            
fuckshoter[playerid][0] = GetPlayerVehicleID(playerid);
            if(
fuckshoter[playerid][1] == 1fuckshoter[playerid][1] = 2;
            if(
fuckshoter[playerid][1] == 0fuckshoter[playerid][1] = 1;
        }
        else 
fuckshoter[playerid][0]=0fuckshoter[playerid][1]=0;
    }
    return 
true;


в OnPlayerUpdate(playerid); добавляем:

Код: Выделить всё

ScanPlayerDosRaket(playerid);  


Вырезано с мода: Ultra-Rp
Автор вырезки: Maks5


  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «Античиты»

Кто сейчас на форуме (по активности за 5 минут)

Сейчас этот раздел просматривают: 6 гостей