SA-MP Forums

Go Back   SA-MP Forums > SA-MP Server > Server Support

Reply
 
Thread Tools Display Modes
Old 18/11/2019, 06:07 PM   #1
xTrevor
Little Clucker
 
Join Date: Oct 2019
Posts: 4
Reputation: 0
Default help me

so i started a server but everytime someone hack my rcon and become admin for example from days someone asked me for admin rank and i said "no" then after some hours i joined my server and found that he is an "admin" can someone help me with that? i banned him 5times +ipban and he everytime come again is there anti ftp hack? to stop them
xTrevor is offline   Reply With Quote
Old 18/11/2019, 06:29 PM   #2
Calisthenics
Gangsta
 
Join Date: May 2018
Posts: 729
Reputation: 131
Default Re: help me

In server.cfg:
pawn Code:
rcon 0
to disable remote console feature.

Choose random, long and complex password to make it more difficult to crack it.

Set a second password after successfully logging into the RCON.

If the problem continues, disable RCON completely by banning any login attempt.
Calisthenics is offline   Reply With Quote
Old 19/11/2019, 08:20 AM   #3
xTrevor
Little Clucker
 
Join Date: Oct 2019
Posts: 4
Reputation: 0
Default Re: help me

how to disable rcon completely? and how to set second password
xTrevor is offline   Reply With Quote
Old 19/11/2019, 08:59 AM   #4
WalkZ
Big Clucker
 
WalkZ's Avatar
 
Join Date: Oct 2019
Location: Pakistan
Posts: 92
Reputation: 4
Default Re: help me

Just change WalkZ to your name in-game and if anyone login to rcon with different name they will be banned instantly.

PHP Code:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(
success
    {
        new 
IP[32];
        for(new 
p=0;p<MAX_PLAYERS;p++)
        {
            
GetPlayerIp(p,IP,32);
            if(!
strcmp(ip,IP,true)) 
            {
                new 
name[24], playerid;
                
GetPlayerName(p,name,24);
                if(
strcmp(name,"WalkZ",false)) Ban(playerid); //Change WalkZ to your in-game name, So if anyone login with other name he will be banned.

            
}
        }
        return 
1;
    }
    return 
1;

Also you can set rcon password from server.cfg
https://wiki.sa-mp.com/wiki/Server.cfg
__________________
[EN] Chinatown Freeroam [BETA]
- Different Advanced Deathmatches with Times and Scores
- Different Races
- Different Events
- Gangs (Groves, Ballas, Aztecas, Mafia, Bikers & Triads)
- Drugs with Drug Dealers at Streets
- Hitman Bounty System
- Ammunations, Pizza Stacks, Burger-Shots, Banks
- Jobs (Pizza-Boy, Plumber, Trasher, Bus)
- Money-Bag every 30 minutes
- Reaction Test every 15 minutes
- Daily improving by adding new features and fixing present bugs.
WalkZ is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 03:00 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.