[Ajuda] Fs Anti-speed Hack
#1

Galera Estou com Esse Fs de Anti Speed Hack e ele ta dando um erro q nao concigui resolve

Erro:
pawn Код:
C:\Documents and Settings\Fernando\Desktop\anti-speed.pwn(48) : error 017: undefined symbol "GetPlayerDistanceFromPoint"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

pawn Код:
/*
    |----------------------------------------------------|
    |___________________ Anti-Speed Hack ________________|
    |                                                    |
    |       Creditos: Paulo_TerroR e Caio_Freeze         |
    |____________________________________________________|
*/


#define FILTERSCRIPT

#include <a_samp>
//============Define=========//
#define COR_VERDE 0x00FF00AA //
//===========================//

//========new=====//
//new string[128];//
//================//

//===forward====//
forward Hack(); //
//==============//
public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print("     Carregando Anti-Speed Hack... ");
    print("--------------------------------------\n");
    SetTimer("Hack", 1000, true);
    return 1;
}

public OnFilterScriptExit()
{
    print("\n--------------------------------------");
    print("     Desligando Anti-Speed Hack... ");
    print("--------------------------------------\n");
    return 1;
}

public Hack()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        new keys, updown, leftright, string[128];
        GetPlayerKeys(i, keys, updown, leftright);
        new Nome[MAX_PLAYER_NAME]; GetPlayerName(i, Nome, sizeof(Nome));
        new Float:_Pos[3]; GetPlayerPos(i, _Pos[0], _Pos[1], _Pos[2]);
        new Float:Pos = GetPlayerDistanceFromPoint(i, _Pos[0], _Pos[1], _Pos[2]);
        if((keys & KEY_ACTION || keys & KEY_FIRE) && (floatround(floatmul(Pos, 10.0)) > 200) && (IsPlayerInAnyVehicle(i)))
        {
            format(string, 128, "Anti-Speed Hack: [%d]%s estб usando ******!", i, Nome);
            if(IsPlayerAdmin(i))
                SendClientMessage(i, COR_VERDE, string);
        }
    }
}

/*
    |----------------------------------------------------|
    |___________________ Anti-Speed Hack ________________|
    |                                                    |
    |       Creditos: Paulo_TerroR e Caio_Freeze         |
    |____________________________________________________|
*/
Dou Reep ++
Reply
#2

Me Ajudem aew Por Favor Dou Reep +!
Reply
#3

Samp 0.3c ou 0.3d ?, Acho q isso й so em 0.3d, se for vc atualiza seu server pra 0.3d й isso
Reply
#4

Quote:
Originally Posted by kinhobryant
Посмотреть сообщение
Tenta colocar na OnPLayerText
fasa oque ele falou /\
Reply
#5

Aqui compilou certinho , meu server й 0.3d
Reply
#6

EU SEI Q ELE Й PARA 3 D MAIS ELE TA DANDO ERRO AKI
Reply
#7

PHP код:
#include <a_samp>

public OnGameModeInit()
{
SetTimer("AntiSH",1000,true);

return 
1;
}
forward AntiSH(playerid);
public 
AntiSH(playerid)
{
if(
GetSpeedKM(playerid) > 300)
{
Ban(playerid);
}
return 
1;
}

stock IsPlayerInWater(playerid)
{
new 
Float:x,Float:y,Float:pz;
GetPlayerPos(playerid,x,y,pz);
if (
(
IsPlayerInArea(playerid2032.13711841.26561703.16531467.1099) && pz <= 9.0484//lv piratenschiff
|| (IsPlayerInArea(playerid2109.07252065.82321962.535510.8547) && pz <= 10.0792//lv visage
|| (IsPlayerInArea(playerid, -492.5810, -1424.71222836.82842001.8235) && pz <= 41.06//lv staucamm
|| (IsPlayerInArea(playerid, -2675.1492, -2762.1792, -413.3973, -514.3894) && pz <= 4.24//sf sьdwesten kleiner teich
|| (IsPlayerInArea(playerid, -453.9256, -825.7167, -1869.9600, -2072.8215) && pz <= 5.72//sf gammel teich
|| (IsPlayerInArea(playerid1281.02511202.2368, -2346.7451, -2414.4492) && pz <= 9.3145//ls neben dem airport
|| (IsPlayerInArea(playerid2012.61541928.9028, -1178.6207, -1221.4043) && pz <= 18.45//ls mitte teich
|| (IsPlayerInArea(playerid2326.48582295.7471, -1400.2797, -1431.1266) && pz <= 22.615//ls weiter sьdцstlich
|| (IsPlayerInArea(playerid2550.04542513.75881583.37511553.0753) && pz <= 9.4171//lv pool цstlich
|| (IsPlayerInArea(playerid1102.36341087.3705, -663.1653, -682.5446) && pz <= 112.45//ls pool nordwestlich
|| (IsPlayerInArea(playerid1287.79061270.4369, -801.3882, -810.0527) && pz <= 87.123//pool bei maddog's haus oben
|| (pz 1.5)
)
{
return 
1;
}
return 
0;
}
stock
    GetSpeedKM
(playerid)
{
    new
        
Float:PosX,
        
Float:PosY,
        
Float:PosZ,
        
Float:PlayerSpeedDistance;

     
GetVehicleVelocity(GetPlayerVehicleID(playerid), PosXPosYPosZ);
    
PlayerSpeedDistance floatmul(floatsqroot(floatadd(floatadd(floatpower(PosX2), floatpower(PosY2)),  floatpower(PosZ2))), 170.0);
    new
         
spe floatround(PlayerSpeedDistance 1);
    return 
spe;
}
stock IsPlayerInArea(playeridFloat:minxFloat:maxxFloat:minyFloat:maxy)
{
new 
Float:xFloat:yFloat:z;
GetPlayerPos(playeridxyz);
if (
minx && maxx && miny && maxy) return 1;
return 
0;

Testa esse Mantenha os Creditos
Reply
#8

Quote:
Originally Posted by kinhobryant
Посмотреть сообщение
PHP код:
#include <a_samp>
public OnGameModeInit()
{
SetTimer("AntiSH",1000,true);
return 
1;
}
forward AntiSH(playerid);
public 
AntiSH(playerid)
{
if(
GetSpeedKM(playerid) > 300)
{
Ban(playerid);
}
return 
1;
}
stock IsPlayerInWater(playerid)
{
new 
Float:x,Float:y,Float:pz;
GetPlayerPos(playerid,x,y,pz);
if (
(
IsPlayerInArea(playerid2032.13711841.26561703.16531467.1099) && pz <= 9.0484//lv piratenschiff
|| (IsPlayerInArea(playerid2109.07252065.82321962.535510.8547) && pz <= 10.0792//lv visage
|| (IsPlayerInArea(playerid, -492.5810, -1424.71222836.82842001.8235) && pz <= 41.06//lv staucamm
|| (IsPlayerInArea(playerid, -2675.1492, -2762.1792, -413.3973, -514.3894) && pz <= 4.24//sf sьdwesten kleiner teich
|| (IsPlayerInArea(playerid, -453.9256, -825.7167, -1869.9600, -2072.8215) && pz <= 5.72//sf gammel teich
|| (IsPlayerInArea(playerid1281.02511202.2368, -2346.7451, -2414.4492) && pz <= 9.3145//ls neben dem airport
|| (IsPlayerInArea(playerid2012.61541928.9028, -1178.6207, -1221.4043) && pz <= 18.45//ls mitte teich
|| (IsPlayerInArea(playerid2326.48582295.7471, -1400.2797, -1431.1266) && pz <= 22.615//ls weiter sьdцstlich
|| (IsPlayerInArea(playerid2550.04542513.75881583.37511553.0753) && pz <= 9.4171//lv pool цstlich
|| (IsPlayerInArea(playerid1102.36341087.3705, -663.1653, -682.5446) && pz <= 112.45//ls pool nordwestlich
|| (IsPlayerInArea(playerid1287.79061270.4369, -801.3882, -810.0527) && pz <= 87.123//pool bei maddog's haus oben
|| (pz 1.5)
)
{
return 
1;
}
return 
0;
}
stock
    GetSpeedKM
(playerid)
{
    new
        
Float:PosX,
        
Float:PosY,
        
Float:PosZ,
        
Float:PlayerSpeedDistance;
     
GetVehicleVelocity(GetPlayerVehicleID(playerid), PosXPosYPosZ);
    
PlayerSpeedDistance floatmul(floatsqroot(floatadd(floatadd(floatpower(PosX2), floatpower(PosY2)),  floatpower(PosZ2))), 170.0);
    new
         
spe floatround(PlayerSpeedDistance 1);
    return 
spe;
}
stock IsPlayerInArea(playeridFloat:minxFloat:maxxFloat:minyFloat:maxy)
{
new 
Float:xFloat:yFloat:z;
GetPlayerPos(playeridxyz);
if (
minx && maxx && miny && maxy) return 1;
return 
0;

Testa esse Mantenha os Creditos
aew man eu queria aquele pq ele mostra para o admin quem ta usando o speed hack ai eu poso epiar ele
Reply
#9

@Off

Olha oq vcs acham ? se ele passa O MEU COD para FS ele tem o direito de colocar os seus creditos ? ele nгo fez nada alem de colocar meu COD no new.pwn! COD!!!

@Topic

Consertado!

pawn Код:
/*
    |----------------------------------------------------|
    |___________________ Anti-Speed Hack ________________|
    |                                                    |
    |       Creditos: Paulo_TerroR                       |
    |       Transformado em FS por: Caio_Freeze          |
    |____________________________________________________|
*/


#define FILTERSCRIPT

#include <a_samp>
//============Define=========//
#define COR_VERDE 0x00FF00AA //
//===========================//

//========new=====//
new string[128];  //
//================//

//===forward====//
forward Hack(); //
//==============//
public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print("     Carregando Anti-Speed Hack... ");
    print("--------------------------------------\n");
    SetTimer("Hack", 200, true);
    return 1;
}

public OnFilterScriptExit()
{
    print("\n--------------------------------------");
    print("     Desligando Anti-Speed Hack... ");
    print("--------------------------------------\n");
    return 1;
}

public Hack()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        new keys, updown, leftright, string[128];
        GetPlayerKeys(i, keys, updown, leftright);
        new Nome[MAX_PLAYER_NAME]; GetPlayerName(i, Nome, sizeof(Nome));
        new Float:Pos[4]; Pos[3] = GetPlayerDistanceFromPoint(i, Pos[0], Pos[1], Pos[2]); GetPlayerPos(i, Pos[0], Pos[1], Pos[2]);
        if((keys & KEY_ACTION || keys & KEY_FIRE) && (floatround(floatmul(Pos[3], 10.0)) > 200) && (IsPlayerInAnyVehicle(i)))
        {
            format(string, 128, "Anti-Speed Hack: [%d]%s estб usando ******!", i, Nome);
            AvisarAdm(COR_VERDE, string);
        }
    }
}

stock AvisarAdm(color, const str[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerAdmin(i))
            {
                SendClientMessage(i, color, str);
            }
        }
    }
    return 1;
}

/*
    |----------------------------------------------------|
    |___________________ Anti-Speed Hack ________________|
    |                                                    |
    |       Creditos: Paulo_TerroR                       |
    |       Transformado em FS por: Caio_Freeze          |
    |____________________________________________________|
*/
Reply
#10

Quote:
Originally Posted by paulor
Посмотреть сообщение
@Off

Olha oq vcs acham ? se ele passa O MEU COD para FS ele tem o direito de colocar os seus creditos ? ele nгo fez nada alem de colocar meu COD no new.pwn! COD!!!

@Topic

Consertado!

pawn Код:
/*
    |----------------------------------------------------|
    |___________________ Anti-Speed Hack ________________|
    |                                                    |
    |       Creditos: Paulo_TerroR                       |
    |       Transformado em FS por: Caio_Freeze          |
    |____________________________________________________|
*/


#define FILTERSCRIPT

#include <a_samp>
//============Define=========//
#define COR_VERDE 0x00FF00AA //
//===========================//

//========new=====//
new string[128];  //
//================//

//===forward====//
forward Hack(); //
//==============//
public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print("     Carregando Anti-Speed Hack... ");
    print("--------------------------------------\n");
    SetTimer("Hack", 200, true);
    return 1;
}

public OnFilterScriptExit()
{
    print("\n--------------------------------------");
    print("     Desligando Anti-Speed Hack... ");
    print("--------------------------------------\n");
    return 1;
}

public Hack()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        new keys, updown, leftright, string[128];
        GetPlayerKeys(i, keys, updown, leftright);
        new Nome[MAX_PLAYER_NAME]; GetPlayerName(i, Nome, sizeof(Nome));
        new Float:Pos[4]; Pos[3] = GetPlayerDistanceFromPoint(i, Pos[0], Pos[1], Pos[2]); GetPlayerPos(i, Pos[0], Pos[1], Pos[2]);
        if((keys & KEY_ACTION || keys & KEY_FIRE) && (floatround(floatmul(Pos[3], 10.0)) > 200) && (IsPlayerInAnyVehicle(i)))
        {
            format(string, 128, "Anti-Speed Hack: [%d]%s estб usando ******!", i, Nome);
            AvisarAdm(COR_VERDE, string);
        }
    }
}

stock AvisarAdm(color, const str[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerAdmin(i))
            {
                SendClientMessage(i, color, str);
            }
        }
    }
    return 1;
}

/*
    |----------------------------------------------------|
    |___________________ Anti-Speed Hack ________________|
    |                                                    |
    |       Creditos: Paulo_TerroR                       |
    |       Transformado em FS por: Caio_Freeze          |
    |____________________________________________________|
*/
Funciono Vlw Ganho meu Reep+
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)