[Ajuda] ajudar bot - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] ajudar bot (
/showthread.php?tid=491455)
ajudar bot -
Dieguinho - 30.01.2014
Pessoal alguйm poder me falar que tipo de xiter e esse eu acho que e um bot
189.33.187.174 [28/01/14 | 23:34:37] [HAX]922538941650275 - BOT
estгo vendo eu tava querendo esse Soverte pra testa e criar o anti xiter
se alguйm tiver uma soluзгo sem bloquear o nome dele porque eu jб fiz isto
Re: ajudar bot -
Schocc - 30.01.2014
Usa strfind sobre a
tag "[HAX]", caso tenha isto
ban.
Fez assim.

Bloquear a faixa de IP.
Atualizou seu servidor para qual versгo.
Re: ajudar bot -
Dieguinho - 30.01.2014
Quote:
Originally Posted by Schocc
Usa strfind sobre a tag "[HAX]", caso tenha isto ban.
Fez assim. 
Bloquear a faixa de IP.
Atualizou seu servidor para qual versгo. 
|
eu queria um sistema de boquear nъmeros no nick samp
versгo: 0.3x-r2
Re: ajudar bot -
Schocc - 30.01.2014
Acho que esta certo.
@edit: Nгo testei in-game, mas creio que funcione.
pawn Код:
stock IsNumberInNickame( playerid, nickname[] ) {
new
iPosition;
while( (iPosition++) < strlen(nickname)) {
switch( nickname[iPosition] ) {
case '0','1','2','3','4','5','6','7','8', '9': {
print("Number on nickname!");
SendClientMessage( playerid, -1, "Numeros sгo proibidos no nick, Digite um novo Nickname" );
return 1;
}
}
}
return 0;
}
Modo de uso:
pawn Код:
new
pName[MAX_PLAYER_NAME]
;
GetPlayerName( playerid, pName, MAX_PLAYER_NAME);
if( IsNumberInNickame( playerid, pName ) ) {
SendClientMessage( playerid, "Digite um nome sem nъmeros!" );
// something
BanEx( playerid, "BadNick" );
}