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

Moderator: SJplayer

Romchik
Topic author, Ефрейтор
Ефрейтор
Avatar
Romchik
Topic author, Ефрейтор
Ефрейтор
Posts: 20
Joined: 12 May 2013
With us: 11 years 5 months

#1by Romchik » 12 May 2013, 15:36

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


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

Code: Select all

new fuckshoter[MAX_PLAYERS][3];  


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

Code: Select all

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


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

Code: Select all

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); добавляем:

Code: Select all

ScanPlayerDosRaket(playerid);  


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


  • Similar Topics
    Replies
    Views
    Last post

Return to “Античиты”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest