banir pessoas por ip -
luancalixto - 16.11.2012
queria pedir o cmd /banip bani a pessoa pelo ip tem como alguem fazer pra mim sу que й em strtock acho que й esse sei lah o nome kkkk se alguem puder fazer agradeзo
Re: banir pessoas por ip -
smiiir - 16.11.2012
Entra no seu server e usa
/rcon login SUASENHA
ai tu usa /ip [ID]
depois
/rcon banip [IP]
Re: banir pessoas por ip -
Nice-.- - 16.11.2012
aprenda a usar zcmd+sscanf
serб facil !
Re: banir pessoas por ip -
@FatalFormat - 16.11.2012
Quote:
Originally Posted by Nice-.-
aprenda a usar zcmd+sscanf
serб facil !
|
GF's nгo usam isso.
Re: banir pessoas por ip -
Maklister - 16.11.2012
Fiz pelo meu notebook e pelo bloco de notas, se tiver errado pega como estudo, espero ter ajudado:
pawn Код:
CMD:banirip(playerid, params[])
{
new giverid, ip[30], string[126], DIRETORIO[30];
new nome[MAX_PLAYER_NAME], anome[MAX_PLAYER_NAME];
GetPlayerName(playerid, nome, sizeof(nome));
GetPlayerName(giverid, anome, sizeof(anome));
if(sscanf(params, "u", giverid)) return SendClientMessage(playerid, -1, "USE /Banirip [ ID ]");
if(!IsPlayerConnected(giverid)) return SendClientMessage(playerid, -1, "ID nгo conectado");
if(giverid == INVALID_PLAER_ID) return SendClientMessage(playerid, -1, "ID Invбlido");
GetPlayerIp(giverid, ip);
format(string, 126, "Vocк baniu o jogador %s, IP: %s", nome, ip);
SendClientMessage(playerid, -1, string);
format(string, 126, "O Administrador baniu vocк, IP: %s", ip);
SendClientMessage(giverid, -1, string);
format(DIRETORIO, sizeof(DIRETORIO), "Banidos/%s.ini", anome);
if(!DOF2_ExistFile(DIRETORIO))
{
DOF_CreateFile(DIRETORIO);
}
DOF2_SetString(DIRETORIO, "IP", ip);
Kick(giverid);
return 1;
}
Re: banir pessoas por ip -
luancalixto - 16.11.2012
mais eu quero ele sem rcon sakas e em strtock nao uso sscanf
Re: banir pessoas por ip -
smiiir - 16.11.2012
/\
Se vira
Estuda o Cуdigo que o Murilo mandou
Re: banir pessoas por ip -
Maklister - 16.11.2012
Quote:
Originally Posted by luancalixto
mais eu quero ele sem rcon sakas e em strtock nao uso sscanf
|
Cara fiz o code, so por pra checar em onplayerconnect ou onplayerspawn
Na boa vo fazer em strtock nгo !
passa usar zcmd e sscanf e para de sofrer na boa ¬¬'
Re: banir pessoas por ip -
luancalixto - 16.11.2012
aff ok