need help or suggestion about rcon
#1

sorry for this noob question but thank you in advance who will help me so here it is

I have a server that stores player admin level, a command that will set the player admin level
but in order to have access in that command, you have to be in rcon e.g. "IsPlayerAdmin".

while I was checking the players data, I saw a player with his admin level as Admin level to 1

which includes some Admin level 1 commands allowed him to use, well I don't know who is this player and I didn't set his Admin level to 1.

maybe he or she is using some "third party scripts" to hack my server rcon password
I need some suggestion on how to prevent this from happening "this hacking thing" and I really hate them
I am using variables to store these data
Reply
#2

PHP код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(!
success)
    {
        new 
ipstring[16];
        
printf("[RCON] Failed login by %s password: %s"ippassword);
        foreach(new 
Player)
        {
            
GetPlayerIp(iipstringsizeof(ipstring));
            if(!
strcmp(ipipstringtrue))
                
printf("Failed login by %d password: %s"ipassword);
        }
    }
        else
        {
              
printf("User logged in RCON. IP: %s"ip);
        }
    return 
1;

Use this so you will see whats going on.
Reply
#3

Quote:
Originally Posted by Amagida
Посмотреть сообщение
PHP код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(!
success)
    {
        new 
ipstring[16];
        
printf("[RCON] Failed login by %s password: %s"ippassword);
        foreach(new 
Player)
        {
            
GetPlayerIp(iipstringsizeof(ipstring));
            if(!
strcmp(ipipstringtrue))
                
printf("Failed login by %d password: %s"ipassword);
        }
    }
        else
        {
              
printf("User logged in RCON. IP: %s"ip);
        }
    return 
1;

Use this so you will see whats going on.
thank you

is how about packets? maybe one of player is modifying packets, is there any connection in packets?
Reply
#4

Be sure to set ALL to 0 after player creates an account or it will cause to sort of 'copy' the stats from other players. This happened to me once, because i thought it wasn't important to set them to 0, but it is. very important.

After registration:
AdminLevel[playerid] = 0; or however your admin sys works.

Can be very frustrating. It happened to me too. Wondering why some new players joined the FBI or had guns at 1 playing minute.
Reply
#5

Quote:
Originally Posted by jasperschellekens
Посмотреть сообщение
Be sure to set ALL to 0 after player creates an account or it will cause to sort of 'copy' the stats from other players. This happened to me once, because i thought it wasn't important to set them to 0, but it is. very important.

After registration:
AdminLevel[playerid] = 0; or however your admin sys works.

Can be very frustrating. It happened to me too. Wondering why some new players joined the FBI or had guns at 1 playing minute.
you're right, thank you sir
i'm currently fixing it now I'll be back as soon as I fixed it
Reply
#6

HI Guys I Have Got A GM But When I Play On Server There Are No Single Vehicle On Map Can Someone Help Me Please
Reply
#7

fixed it by create new function and reset variables.
@mods, please lock this thread.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)