[Ajuda] Anti Xiter -
[Red]Maninho - 13.08.2011
Ai Gente Do Forum, Eu Tinha Tirado a Base De Um Anti Xiter Aki
Para Pegar Tals Armas й Kick
Mais Bugou, Tive Que Tirar, Intao Queria Fazer o Seguinte
Queria Exemplo Eu Pego Minigun, Dai Ela Some De Mim
Tipo Bloquear Tal Arma Para Nao Ter Xiters
Agradeзo Se Ajudarem Brigado -_-
Re: [Ajuda] Anti Xiter -
Dr_Pawno - 13.08.2011
pawn Код:
new pArma = GetPlayerWeapon(playerid);
if(pArma == 38)
{
SetPlayerAmmo(playerid, pArma, 0);
}
Respuesta: [Ajuda] Anti Xiter -
[Red]Maninho - 13.08.2011
Onde Coloco Isso (:
Re: [Ajuda] Anti Xiter -
MiTToS - 13.08.2011
Use o meu anti cheater
Ele da kick em qualquer pessoa que pegar uma arma! Seja ela eagle ou qualquer arma, ele tambйm detecta ammo hack.
https://sampforum.blast.hk/showthread.php?tid=271483
Sу й possнvel usar armas que vocк de, pelo prуprio GM.
Anti cheater perfeito, pega tudo ^^
Re: [Ajuda] Anti Xiter -
MaGnO_357 - 13.08.2011
No TOPO
pawn Код:
enum jInformacoes
{
kNome[ 24 ],
Nome[ 24 ],
aAvisos,
pAvisos,
nMsgs,
Preso
}
new jInfo[ MAX_PLAYERS ][ jInformacoes ];
new aProibidas[][] =
{
{36},//HS Rocket
{38},// minigun
{35},//Rocket Launcher
{40},//Detonator
{37}//Flamethrower
};
new sStr[ 128 ];
forward @pArmas( playerid );
no GameModeInit ou no OnFilterScriptInit()
pawn Код:
SetTimer( "@pArmas", 500, true ); //500 = 5 milesimas de segundo (meio minuto)
pawn Код:
public OnPlayerConnect( playerid )
{
GetPlayerName( playerid, jInfo[ playerid ][ Nome ], 23 );
return true;
}
pawn Код:
public @pArmas( playerid )
{
for( new X = 0; X < sizeof( aProibidas ); X++ )
{
if( GetPlayerWeapon( playerid ) == aProibidas[ X ][ 0 ] )
{
if( jInfo[ playerid ][ aAvisos ] == 1)
{
format( sStr, sizeof( sStr ), "[AlQaeda BoT] %s foi kickado do servidor! [Motivo: Uso de armas proibidas]", jInfo[ playerid ][ Nome ]);
SendClientMessageToAll( Vermelho, sStr );
SendClientMessage( playerid, Cinzento, "[AlQaeda BoT] %s Foi avisado 2 vezes antes, agora foi kickado ...");
for( new j = 0; j <= MAX_PLAYERS; j++ )
{
if( IsPlayerConnected( j ) )
{
if( IsPlayerAdmin( j ) )
{
SendClientMessage( j, Vermelho, sStr );
}
}
}
Kick( playerid );
}
else if( jInfo[ playerid ][ aAvisos ] == 0 )
{
ResetPlayerWeapons( playerid );
format( sStr, sizeof( sStr ), "[AlQaeda BoT] %s estб a usar armas proibidas, se usar mais 1 vez й kickado!", jInfo[ playerid ][ Nome ]);
SendClientMessageToAll( Vermelho, sStr );
SendClientMessage( playerid, Cinzento, "[AlQaeda BoT] Foi apanhado a usar armas proibidas, se usar mais 1 vez й kickado ...");
jInfo[ playerid ][ aAvisos ] = 1;
for( new j = 0; j <= MAX_PLAYERS; j++ )
{
if( IsPlayerConnected( j ) )
{
if( IsPlayerAdmin( j ) )
{
SendClientMessage( j, Vermelho, sStr );
}
}
}
}
}
}
return true;
}
Crйditos Pelo COD: The Knight
Respuesta: [Ajuda] Anti Xiter -
[Red]Maninho - 13.08.2011
Vou Dar Uma Olhada xD
Re: [Ajuda] Anti Xiter -
MiTToS - 13.08.2011
Magno, seu anti cheater ele й funcional, mas sу pega algumas armas!
O meu anti cheater ele pega QUALQUER arma que for criada com cheater, e se o jogador aumentar uma bala ele tambйm й kickado
Re: [Ajuda] Anti Xiter -
MaGnO_357 - 13.08.2011
Quote:
Originally Posted by MiTToS
Magno, seu anti cheater ele й funcional, mas sу pega algumas armas!
O meu anti cheater ele pega QUALQUER arma que for criada com cheater, e se o jogador aumentar uma bala ele tambйm й kickado 
Boa
|
Mais й mais uma opiзгo para ele pois ele pode retirar algumas funзхes esse COD funciona assim a primeira ves que o xiter й pego com armas proibidas o COD ira resetar as armas dele e lhe dara um aviso se ele voltar a fazer armas proibidas pela segunda vкs ele sera kickado pois ele ja tinha um aviso
Re: [Ajuda] Anti Xiter -
Gustavo_xP - 16.08.2011
Quote:
Originally Posted by Dr_Pawno
pawn Код:
new pArma = GetPlayerWeapon(playerid); if(pArma == 38) { SetPlayerAmmo(playerid, pArma, 0); }
|
Acho que ResetPlayerWeapons acho
Re: [Ajuda] Anti Xiter - [S]trong - 17.08.2011
Quote:
Originally Posted by Gustavo_xP
Acho que ResetPlayerWeapons acho
|
lol. ResetPlayerWeapons retira todas as armas do jogador, nй.