28.10.2018, 22:55
Quote:
The more they try to access it without any security measures the more it becomes vulnerable, depends on how strong is the password The author wants just to keep off the trollers who want make others banned, my little snippet will do it.
|
pawn Code:
public OnRconLoginAttempt(ip[], password[], success)
{
if(success) //If by any means they figured out the PW
{
new pip[16];
for(new i = GetPlayerPoolSize(); i != -1; --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
{
Kick(i); //They are now kicked.
}
}
}
return 1;
}