Jump to content

hledám AntiRconHack


Fuggy

Recommended Posts

Dáko my to nejde pls kde mám chybu?

include <a_samp>

public OnRconLoginAttempt(ip[], password[], success)

{

if(success) //if login is successfull

{

new IP[32];

for(new p=0;p<MAX_PLAYERS;p++) //Make loop

{

GetPlayerIp(p,IP,32);

if(!strcmp(ip,IP,true)) //if player's IP matches with IP that logged into RCON

{

new name[24];

GetPlayerName(p,name,24);

if(strcmp(name,"andrej",false)) BanEx(p,"Breaking RCON Password Or Server Fail"); //Change Mexix to your in-game name, when a player loging in with the right IP and this Script is loaded, then he get automatycally banned.

}

{

GetPlayerIp(p,IP,32);

if(!strcmp(ip,IP,true))

{

new name[24];

GetPlayerName(p,name,24);

if(strcmp(name,"pavel",false)) BanEx(p,"Breaking RCON Password Or Server Fail"); //Change Mexix to your in-game name, when a player loging in with the right IP and this Script is loaded, then he get automatycally banned.

}

}

return 1;

}

return 1;

}

}

Link to comment
Share on other sites

jak to udelam na sve jmena co muzou mit rcon

 

 

#include <a_samp>

forward AntiHack();

public OnFilterScriptInit()

{

SetTimer("AntiHack", 15000, true);

}

 

public AntiHack()

{

SendRconCommand("rcon_password Fuggy");

}

 

toto co spravil Fuggy je lepšie ked zi zisti hráč rcon heslo tak ked sa bude prihlasovat tak mu to nepojde lebo si si spravil script na rcon ktore si si zmenil na to rcon heslo ti nikto nepride :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...