Server Attacked by Hacker - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Server Attacked by Hacker (
/showthread.php?tid=357383)
Server Attacked by Hacker -
JaKe Elite - 07.07.2012
Hello,
Yesterday a Guy is trying to troll all players.
He copy my name, now everyone thinks that i'm the fake one.
Phew i ban it.
Before he left he say something
"I will hack your server"
and Today a guy name Shit_Server access my rcon pass.
Making himself Level 5 Clan Owner
Guys how can i disable the OnRconLoginAttempt to non-owners?
Re: Server Attacked by Hacker -
.FuneraL. - 07.07.2012
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
new PlayerNome[MAX_PLAYER_NAME], PlayerIP[16];
if(success)
{
for(new i; i < MAX_PLAYERS; i++)
{
GetPlayerIp(i, PlayerIP ,16);
if(strcmp(PlayerIP, ip))
continue;
GetPlayerName(i, PlayerNome, sizeof(PlayerNome));
if(!strcmp(PlayerNome, "Nickname", true) || !strcmp(PlayerNome, "Nickname2", true)) // Change the nickname's to your nickname.
{
SendClientMessage(i, 0xFF0000FF, "[RCON Warn]: Login Success");
}
else
{
SendClientMessage(i, 0xFF0000FF, "[RCON Warn]: Rcon Login Failed , you not owner.");
Kick(i);
}
break;
}
}
return 1;
}
Try, change the nickname's to your and you friend nickname's.
Re: Server Attacked by Hacker -
[KHK]Khalid - 07.07.2012
nvm miss read ~ Delete
Re: Server Attacked by Hacker -
Slix_ - 07.07.2012
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
new string[256];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(success)
{
if(PlayerAdminLevel[i] < 3)
{
Kick(i);
}
}
}
return 1;
}
Replace the following line with your script's admin level variable identifier:
pawn Код:
if(PlayerAdminLevel[i] < 3)
Re: Server Attacked by Hacker -
DaRealShazz - 07.07.2012
Quote:
Originally Posted by Skavanovski
pawn Код:
public OnRconLoginAttempt(ip[], password[], success) { new string[256]; for(new i = 0; i < MAX_PLAYERS; i++) { if(success) { if(PlayerAdminLevel[i] < 3) { Kick(i); } } } return 1; }
Replace the following line with your script's admin level variable identifier:
pawn Код:
if(PlayerAdminLevel[i] < 3)
|
From my understanding, it will kick everyone in the server who is not an admin. Also, why did you create a string?
Re: Server Attacked by Hacker -
JaKe Elite - 07.07.2012
I will try Funeral code.
I will edit this post when the code work.
Re: Server Attacked by Hacker -
JaKe Elite - 07.07.2012
Funeral.
Didn't work
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
new str[128];
if(success)
{
foreach(Player, i)
{
if(strcmp(IP, ip))
continue;
if(strcmp(GetpName(i), "[iP]Justine", true) == 0
|| strfind(GetpName(i), "Avi", false) != 1
|| strfind(GetpName(i), "Anonymous", false) != 1)
{
SendClientMessage(i, COLOR_GREEN, "*** You are the owner, You are now login as RCON Admin ***");
}
else
{
format(str, sizeof(str), "%s(%d) has been kicked by Anticheat for Rcon Accessing (Not Owner)", GetpName(i), i);
SendClientMessageToAll(COLOR_RED, str);
SendClientMessage(i, COLOR_RED, "*** You are not the owner, You are kick from the server ***");
Kick(i);
}
break;
}
}
return 1;
}
Respuesta: Server Attacked by Hacker -
Chris1337 - 07.07.2012
https://sampforum.blast.hk/showthread.php?tid=332797