Jump to content

hledám RCON/BAN


maroshuzvar

Recommended Posts

:d No tak si to udělej třeba přes soubor jako u registrace dáš mu admina a když se logne na rcon spravně je to public tak to zkontroluje jestli ma v souboru Admin 1 a pokud nema tak to něco udělá není nic težkého
  • Líbí se mi to! (+1) 1
Link to comment
Share on other sites

#include 

forward AntiHack();


public OnFilterScriptInit()
{
SetTimer("AntiHack", 15000, true);
}

public AntiHack()
{
SendRconCommand("rcon_password MILF"); // za rcon_password si daj ake chceš heslo
return 1;
}

 

daj si tam Rcon Heslo ake chceš ale nesnie byt Zhodne ake je v Admin Panelu

ak nebude take iste ako v Admin panelu tak sa ti Hackery nikdy nedostanu na Rcon ;)

Link to comment
Share on other sites

#include

forward AntiHack();


public OnFilterScriptInit()
{
SetTimer("AntiHack", 15000, true);
}

public AntiHack()
{
SendRconCommand("rcon_password MILF"); // za rcon_password si daj ake chceš heslo
return 1;
}

 

daj si tam Rcon Heslo ake chceš ale nesnie byt Zhodne ake je v Admin Panelu

ak nebude take iste ako v Admin panelu tak sa ti Hackery nikdy nedostanu na Rcon ;)

 

Chápeš ty čo on chce? :facepalm::slap:

Link to comment
Share on other sites

Nespamuj. Hľadaj na WiKi.

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

{

if(!success) //If the password was incorrect

{

printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password);

new pip[16];

for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players

{

GetPlayerIp(i, pip, sizeof(pip));

if(!strcmp(ip, pip, true)) //If a player's IP is the IP that failed the login

{

SendClientMessage(i, 0xFFFFFFFF, "Wrong Password. Bye!"); //Send a message

Ban(i); //They are now banned.

}

}

}

return 1;

}

Nie je to to, ale na to už prídeš.

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...