Anti Espalhador de Carros -
Recolocado - 22.07.2012
Bem coloquei esse titulo pelo fato de que nгo sei como se chama o xiter que faz o player puxar os carros do servidor.
Estou enfrentando problemas no meu servidor devido а entrar um desoculpado e puxar os carros das orgs, gostaria do link de algum anti para esse xiter, que realmente funcione.
Por favor mande links certos e nгo link do ******.
Re: Anti Espalhador de Carros -
@Riichard - 22.07.2012
Quer o link certo?
Procure no search.
Quer tudo na mгo, vtnc.
Re: Anti Espalhador de Carros -
Recolocado - 22.07.2012
Quote:
Originally Posted by @Riichard
Quer o link certo?
Procure no search.
Quer tudo na mгo, vtnc.
|
Meu querido se estou criando um tуpico й por que eu jб procurei, eu nгo sei o nome do xiter que espalha os carros, na search nгo tem nada com "anti espalhador de carros". Se eu soubesse o nome do xiter atй que ia.
Nгo quero apenas o link, se algum puder postar o cуdigo fico grato.
Re: Anti Espalhador de Carros -
Ades - 22.07.2012
Vocк procurou ****** nгo search aqui no forum .
Re: Anti Espalhador de Carros -
Recolocado - 22.07.2012
Quote:
Originally Posted by Ades
Vocк procurou ****** nгo search aqui no forum .
|
Ai dificuldade...
Satisfeitos agora? Nгo tem nada.
Re: Anti Espalhador de Carros -
Victor' - 22.07.2012
http://forum.sa-mp.com/showthread.ph...Car+Mass+Spawn
Re: Anti Espalhador de Carros -
WaGnerLiima - 22.07.2012
Se for MODCLEO isso aki deve resolver
pawn Код:
/*
*
* "fuckCleo.inc" - #1 Anti-cleo mod include
* Created/Debugged most by Lorenc_
*
* Thanks to:
* Cessil, Infamous and [FeK]Drakins, JernejL
*
*/
/* ** Stop Duplicating Code! ** */
#if defined _fcleo_included
#endinput
#endif
#define _fcleo_included
/* ** Includes ** */
#include < a_samp >
/* ** Configuration ** */
#define FILE_VERSION "0.3.0"
#define CLEO_FAKEKILL ( 1 )
#define CLEO_CARWARP ( 2 )
#define CLEO_PLAYERBUGGER ( 3 ) // This number will never be called from OnPlayerCleoDetected
#define CLEO_CARSWING ( 4 )
#define CLEO_CAR_PARTICLE_SPAM ( 5 )
/* ** Variables ** */
enum E_CLEO_DATA
{
E_FK_LASTDEATH, E_FK_DEATHSPAM,
E_CW_TIME, E_CW_VEHID,
Float: E_PB_X, Float: E_PB_Y, Float: E_PB_Z,
E_CPS_SPAMCOUNT, E_CPS_TICK
};
static stock
g_cleoData [ MAX_PLAYERS ] [ E_CLEO_DATA ],
bool: FC_OPU,
bool: FC_OPD,
bool: FC_OPSC,
bool: FC_OVDSU,
bool: FC_OPDC
;
/* ** Forwards ** */
forward OnPlayerCleoDetected ( playerid, cleoid );
public OnVehicleDamageStatusUpdate( vehicleid, playerid )
{
if( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER )
{
new time = GetTickCount( );
switch( time - g_cleoData[ playerid ] [ E_CPS_TICK ] )
{
case 0 .. 500:
{
g_cleoData[ playerid ] [ E_CPS_SPAMCOUNT ] ++;
if( g_cleoData[ playerid ] [ E_CPS_SPAMCOUNT ] >= 10 )
{
CallLocalFunction( "OnPlayerCleoDetected", "dd", playerid, CLEO_CAR_PARTICLE_SPAM );
return 1;
}
}
default: g_cleoData[ playerid ] [ E_CPS_SPAMCOUNT ] = 0;
}
g_cleoData[ playerid ] [ E_CPS_TICK ] = time;
}
return ( FC_OVDSU ) ? CallLocalFunction( "FC_OnVehicleDamageStatusUpdate", "dd", vehicleid, playerid ) : 1;
}
#if defined HOK_OnVehicleDamageStatusUpdate
#undef OnVehicleDamageStatusUpdate
#else
#define HOK_OnVehicleDamageStatusUpdate
#endif
#define OnVehicleDamageStatusUpdate FC_OnVehicleDamageStatusUpdate
forward FC_OnVehicleDamageStatusUpdate( vehicleid, playerid );
public OnPlayerStateChange( playerid, newstate, oldstate )
{
if( newstate == PLAYER_STATE_DRIVER )
{
if( GetPlayerVehicleID( playerid ) != g_cleoData[ playerid ] [ E_CW_VEHID ] )
{
if( g_cleoData[ playerid ] [ E_CW_TIME ] > gettime( ) )
{
CallLocalFunction( "OnPlayerCleoDetected", "dd", playerid, CLEO_CARWARP );
return 1;
}
g_cleoData[ playerid ] [ E_CW_TIME ] = gettime( ) + 1;
g_cleoData[ playerid ] [ E_CW_VEHID ] = GetPlayerVehicleID( playerid );
}
}
return ( FC_OPSC ) ? CallLocalFunction( "FC_OnPlayerStateChange", "ddd", playerid, newstate, oldstate ) : 1;
}
#if defined HOK_OnPlayerStateChange
#undef OnPlayerStateChange
#else
#define HOK_OnPlayerStateChange
#endif
#define OnPlayerStateChange FC_OnPlayerStateChange
forward FC_OnPlayerStateChange( playerid, newstate, oldstate );
public OnPlayerDeath( playerid, killerid, reason )
{
new time = gettime( );
switch( time - g_cleoData[ playerid ] [ E_FK_LASTDEATH ] )
{
case 0 .. 3:
{
g_cleoData[ playerid ] [ E_FK_DEATHSPAM ] ++;
if( g_cleoData[ playerid ] [ E_FK_DEATHSPAM ] >= 3 )
{
CallLocalFunction( "OnPlayerCleoDetected", "dd", playerid, CLEO_FAKEKILL );
return 1;
}
}
default: g_cleoData[ playerid ] [ E_FK_DEATHSPAM ] = 0;
}
g_cleoData[ playerid ] [ E_FK_LASTDEATH ] = time;
return ( FC_OPD ) ? CallLocalFunction( "FC_OnPlayerDeath", "ddd", playerid, killerid, reason ) : 1;
}
#if defined HOK_OnPlayerDeath
#undef OnPlayerDeath
#else
#define HOK_OnPlayerDeath
#endif
#define OnPlayerDeath FC_OnPlayerDeath
forward FC_OnPlayerDeath( playerid, killerid, reason );
public OnPlayerUpdate( playerid )
{
static
Float: X, Float: Y, Float: Z,
Float: vX, Float: vY, Float: vZ
;
GetPlayerPos( playerid, X, Y, Z );
if( X >= 99999.0 || Y >= 99999.0 || Z >= 99999.0 || X <= -99999.0 || Y <= -99999.0 || Z <= -99999.0 ) {
SendClientMessage( playerid, 0xa9c4e4ff, "Warning: Excessive X, Y, Z has been breached thus last location set." );
SetPlayerPos( playerid, g_cleoData[ playerid ] [ E_PB_X ], g_cleoData[ playerid ] [ E_PB_Y ], g_cleoData[ playerid ] [ E_PB_Z ] );
}
else
{
g_cleoData[ playerid ] [ E_PB_X ] = X;
g_cleoData[ playerid ] [ E_PB_Y ] = Y;
g_cleoData[ playerid ] [ E_PB_Z ] = Z;
}
if( IsPlayerInAnyVehicle( playerid ) && GetPlayerState( playerid ) == PLAYER_STATE_DRIVER )
{
GetPlayerPos( playerid, X, Y, Z );
GetVehicleVelocity( GetPlayerVehicleID( playerid ), vX, vY, vZ );
if( ( vX > 3.0 || vY > 3.0 || vZ > 3.0 || vX < -3.0 || vY < -3.0 || vZ < -3.0 ) && ( vX != X && vY != Y && vZ != Z ) )
{
CallLocalFunction( "OnPlayerCleoDetected", "dd", playerid, CLEO_CARSWING );
}
}
return ( FC_OPU ) ? CallLocalFunction( "FC_OnPlayerUpdate", "d", playerid ) : 1;
}
#if defined HOK_OnPlayerUpdate
#undef OnPlayerUpdate
#else
#define HOK_OnPlayerUpdate
#endif
#define OnPlayerUpdate FC_OnPlayerUpdate
forward FC_OnPlayerUpdate( playerid );
public OnPlayerDisconnect(playerid, reason)
{
// Pointless reseting, but just incase!
g_cleoData[ playerid ] [ E_FK_LASTDEATH ] = 0;
g_cleoData[ playerid ] [ E_FK_DEATHSPAM ] = 0;
g_cleoData[ playerid ] [ E_CW_TIME ] = 0;
g_cleoData[ playerid ] [ E_CW_VEHID ] = INVALID_VEHICLE_ID;
g_cleoData[ playerid ] [ E_PB_X ] = -1;
g_cleoData[ playerid ] [ E_PB_Y ] = -1;
g_cleoData[ playerid ] [ E_PB_Z ] = -1;
g_cleoData[ playerid ] [ E_CPS_SPAMCOUNT ] = 0;
g_cleoData[ playerid ] [ E_CPS_TICK ] = 0;
return ( FC_OPDC ) ? CallLocalFunction( "FC_OnPlayerDisconnect", "dd", playerid, reason ) : 1;
}
#if defined HOK_OnPlayerDisconnect
#undef OnPlayerDisconnect
#else
#define HOK_OnPlayerDisconnect
#endif
#define OnPlayerDisconnect FC_OnPlayerDisconnect
forward FC_OnPlayerDisconnect( playerid, reason );
#if !defined FILTERSCRIPT
public OnGameModeInit()
{
FC_OPU = ( funcidx( "FC_OnPlayerUpdate" ) != -1 );
FC_OPD = ( funcidx( "FC_OnPlayerDeath" ) != -1 );
FC_OPSC = ( funcidx( "FC_OnPlayerStateChange" ) != -1 );
FC_OPDC = ( funcidx( "FC_OnPlayerDisconnect" ) != -1 );
FC_OVDSU = ( funcidx( "FC_OnVehicleDamageStatusUpdate" ) != -1 );
return ( funcidx( "FC_OnGameModeInit" ) != -1 ) ? CallLocalFunction( "FC_OnGameModeInit", "" ) : 1;
}
#if defined HOK_OnGameModeInit
#undef OnGameModeInit
#else
#define HOK_OnGameModeInit
#endif
#define OnGameModeInit FC_OnGameModeInit
forward FC_OnGameModeInit();
#else
public OnFilterScriptInit()
{
FC_OPU = ( funcidx( "FC_OnPlayerUpdate" ) != -1 );
FC_OPD = ( funcidx( "FC_OnPlayerDeath" ) != -1 );
FC_OPSC = ( funcidx( "FC_OnPlayerStateChange" ) != -1 );
FC_OPDC = ( funcidx( "FC_OnPlayerDisconnect" ) != -1 );
FC_OVDSU = ( funcidx( "FC_OnVehicleDamageStatusUpdate" ) != -1 );
return ( funcidx( "FC_OnFilterScriptInit" ) != -1 ) ? CallLocalFunction( "FC_OnFilterScriptInit", "" ) : 1;
}
#if defined HOK_OnFilterScriptInit
#undef OnFilterScriptInit
#else
#define HOK_OnFilterScriptInit
#endif
#define OnFilterScriptInit FC_OnFilterScriptInit
forward FC_OnFilterScriptInit();
#endif
Aff q feio,mandar os outros TNC
Re: Anti Espalhador de Carros -
@Riichard - 22.07.2012
Quote:
Originally Posted by WaGnerLiima
Se for MODCLEO isso aki deve resolver
pawn Код:
/* * * "fuckCleo.inc" - #1 Anti-cleo mod include * Created/Debugged most by Lorenc_ * * Thanks to: * Cessil, Infamous and [FeK]Drakins, JernejL * */
/* ** Stop Duplicating Code! ** */ #if defined _fcleo_included #endinput #endif #define _fcleo_included
/* ** Includes ** */ #include < a_samp >
/* ** Configuration ** */ #define FILE_VERSION "0.3.0"
#define CLEO_FAKEKILL ( 1 ) #define CLEO_CARWARP ( 2 ) #define CLEO_PLAYERBUGGER ( 3 ) // This number will never be called from OnPlayerCleoDetected #define CLEO_CARSWING ( 4 ) #define CLEO_CAR_PARTICLE_SPAM ( 5 )
/* ** Variables ** */ enum E_CLEO_DATA { E_FK_LASTDEATH, E_FK_DEATHSPAM, E_CW_TIME, E_CW_VEHID, Float: E_PB_X, Float: E_PB_Y, Float: E_PB_Z, E_CPS_SPAMCOUNT, E_CPS_TICK };
static stock g_cleoData [ MAX_PLAYERS ] [ E_CLEO_DATA ], bool: FC_OPU, bool: FC_OPD, bool: FC_OPSC, bool: FC_OVDSU, bool: FC_OPDC ;
/* ** Forwards ** */ forward OnPlayerCleoDetected ( playerid, cleoid );
public OnVehicleDamageStatusUpdate( vehicleid, playerid ) { if( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER ) { new time = GetTickCount( ); switch( time - g_cleoData[ playerid ] [ E_CPS_TICK ] ) { case 0 .. 500: { g_cleoData[ playerid ] [ E_CPS_SPAMCOUNT ] ++; if( g_cleoData[ playerid ] [ E_CPS_SPAMCOUNT ] >= 10 ) { CallLocalFunction( "OnPlayerCleoDetected", "dd", playerid, CLEO_CAR_PARTICLE_SPAM ); return 1; } } default: g_cleoData[ playerid ] [ E_CPS_SPAMCOUNT ] = 0; } g_cleoData[ playerid ] [ E_CPS_TICK ] = time; } return ( FC_OVDSU ) ? CallLocalFunction( "FC_OnVehicleDamageStatusUpdate", "dd", vehicleid, playerid ) : 1; }
#if defined HOK_OnVehicleDamageStatusUpdate #undef OnVehicleDamageStatusUpdate #else #define HOK_OnVehicleDamageStatusUpdate #endif #define OnVehicleDamageStatusUpdate FC_OnVehicleDamageStatusUpdate forward FC_OnVehicleDamageStatusUpdate( vehicleid, playerid );
public OnPlayerStateChange( playerid, newstate, oldstate ) { if( newstate == PLAYER_STATE_DRIVER ) { if( GetPlayerVehicleID( playerid ) != g_cleoData[ playerid ] [ E_CW_VEHID ] ) { if( g_cleoData[ playerid ] [ E_CW_TIME ] > gettime( ) ) { CallLocalFunction( "OnPlayerCleoDetected", "dd", playerid, CLEO_CARWARP ); return 1; } g_cleoData[ playerid ] [ E_CW_TIME ] = gettime( ) + 1; g_cleoData[ playerid ] [ E_CW_VEHID ] = GetPlayerVehicleID( playerid ); } } return ( FC_OPSC ) ? CallLocalFunction( "FC_OnPlayerStateChange", "ddd", playerid, newstate, oldstate ) : 1; }
#if defined HOK_OnPlayerStateChange #undef OnPlayerStateChange #else #define HOK_OnPlayerStateChange #endif #define OnPlayerStateChange FC_OnPlayerStateChange forward FC_OnPlayerStateChange( playerid, newstate, oldstate );
public OnPlayerDeath( playerid, killerid, reason ) { new time = gettime( ); switch( time - g_cleoData[ playerid ] [ E_FK_LASTDEATH ] ) { case 0 .. 3: { g_cleoData[ playerid ] [ E_FK_DEATHSPAM ] ++; if( g_cleoData[ playerid ] [ E_FK_DEATHSPAM ] >= 3 ) { CallLocalFunction( "OnPlayerCleoDetected", "dd", playerid, CLEO_FAKEKILL ); return 1; } } default: g_cleoData[ playerid ] [ E_FK_DEATHSPAM ] = 0; } g_cleoData[ playerid ] [ E_FK_LASTDEATH ] = time; return ( FC_OPD ) ? CallLocalFunction( "FC_OnPlayerDeath", "ddd", playerid, killerid, reason ) : 1; }
#if defined HOK_OnPlayerDeath #undef OnPlayerDeath #else #define HOK_OnPlayerDeath #endif #define OnPlayerDeath FC_OnPlayerDeath forward FC_OnPlayerDeath( playerid, killerid, reason );
public OnPlayerUpdate( playerid ) { static Float: X, Float: Y, Float: Z, Float: vX, Float: vY, Float: vZ ; GetPlayerPos( playerid, X, Y, Z );
if( X >= 99999.0 || Y >= 99999.0 || Z >= 99999.0 || X <= -99999.0 || Y <= -99999.0 || Z <= -99999.0 ) { SendClientMessage( playerid, 0xa9c4e4ff, "Warning: Excessive X, Y, Z has been breached thus last location set." ); SetPlayerPos( playerid, g_cleoData[ playerid ] [ E_PB_X ], g_cleoData[ playerid ] [ E_PB_Y ], g_cleoData[ playerid ] [ E_PB_Z ] ); } else { g_cleoData[ playerid ] [ E_PB_X ] = X; g_cleoData[ playerid ] [ E_PB_Y ] = Y; g_cleoData[ playerid ] [ E_PB_Z ] = Z; }
if( IsPlayerInAnyVehicle( playerid ) && GetPlayerState( playerid ) == PLAYER_STATE_DRIVER ) { GetPlayerPos( playerid, X, Y, Z ); GetVehicleVelocity( GetPlayerVehicleID( playerid ), vX, vY, vZ ); if( ( vX > 3.0 || vY > 3.0 || vZ > 3.0 || vX < -3.0 || vY < -3.0 || vZ < -3.0 ) && ( vX != X && vY != Y && vZ != Z ) ) { CallLocalFunction( "OnPlayerCleoDetected", "dd", playerid, CLEO_CARSWING ); } } return ( FC_OPU ) ? CallLocalFunction( "FC_OnPlayerUpdate", "d", playerid ) : 1; }
#if defined HOK_OnPlayerUpdate #undef OnPlayerUpdate #else #define HOK_OnPlayerUpdate #endif #define OnPlayerUpdate FC_OnPlayerUpdate forward FC_OnPlayerUpdate( playerid );
public OnPlayerDisconnect(playerid, reason) { // Pointless reseting, but just incase! g_cleoData[ playerid ] [ E_FK_LASTDEATH ] = 0; g_cleoData[ playerid ] [ E_FK_DEATHSPAM ] = 0; g_cleoData[ playerid ] [ E_CW_TIME ] = 0; g_cleoData[ playerid ] [ E_CW_VEHID ] = INVALID_VEHICLE_ID; g_cleoData[ playerid ] [ E_PB_X ] = -1; g_cleoData[ playerid ] [ E_PB_Y ] = -1; g_cleoData[ playerid ] [ E_PB_Z ] = -1; g_cleoData[ playerid ] [ E_CPS_SPAMCOUNT ] = 0; g_cleoData[ playerid ] [ E_CPS_TICK ] = 0; return ( FC_OPDC ) ? CallLocalFunction( "FC_OnPlayerDisconnect", "dd", playerid, reason ) : 1; }
#if defined HOK_OnPlayerDisconnect #undef OnPlayerDisconnect #else #define HOK_OnPlayerDisconnect #endif #define OnPlayerDisconnect FC_OnPlayerDisconnect forward FC_OnPlayerDisconnect( playerid, reason );
#if !defined FILTERSCRIPT public OnGameModeInit() { FC_OPU = ( funcidx( "FC_OnPlayerUpdate" ) != -1 ); FC_OPD = ( funcidx( "FC_OnPlayerDeath" ) != -1 ); FC_OPSC = ( funcidx( "FC_OnPlayerStateChange" ) != -1 ); FC_OPDC = ( funcidx( "FC_OnPlayerDisconnect" ) != -1 ); FC_OVDSU = ( funcidx( "FC_OnVehicleDamageStatusUpdate" ) != -1 ); return ( funcidx( "FC_OnGameModeInit" ) != -1 ) ? CallLocalFunction( "FC_OnGameModeInit", "" ) : 1; } #if defined HOK_OnGameModeInit #undef OnGameModeInit #else #define HOK_OnGameModeInit #endif #define OnGameModeInit FC_OnGameModeInit forward FC_OnGameModeInit(); #else public OnFilterScriptInit() { FC_OPU = ( funcidx( "FC_OnPlayerUpdate" ) != -1 ); FC_OPD = ( funcidx( "FC_OnPlayerDeath" ) != -1 ); FC_OPSC = ( funcidx( "FC_OnPlayerStateChange" ) != -1 ); FC_OPDC = ( funcidx( "FC_OnPlayerDisconnect" ) != -1 ); FC_OVDSU = ( funcidx( "FC_OnVehicleDamageStatusUpdate" ) != -1 ); return ( funcidx( "FC_OnFilterScriptInit" ) != -1 ) ? CallLocalFunction( "FC_OnFilterScriptInit", "" ) : 1; } #if defined HOK_OnFilterScriptInit #undef OnFilterScriptInit #else #define HOK_OnFilterScriptInit #endif #define OnFilterScriptInit FC_OnFilterScriptInit forward FC_OnFilterScriptInit(); #endif
Aff q feio,mandar os outros TNC
|
Nem й.
VTNC = Vai tomar no colйgio?
Foi uma pergunta. so que esqueзi do "?" -qqq
Re: Anti Espalhador de Carros -
WaGnerLiima - 22.07.2012
Quote:
Originally Posted by @Riichard
Nem й.
VTNC = Vai tomar no colйgio?
Foi uma pergunta. so que esqueзi do "?" -qqq
|
VAi TOMAR NO COLЙGIO KKKK'
Re: Anti Espalhador de Carros -
Recolocado - 23.07.2012
Pesquisei aqui e acho que ele usa Sobiet.