Jump to content
  • 0

Securitatea de la /rcon + problema baza de date


Question

Posted

Salut. Cum scot securitatea la /rcon login ? (gamemode toxic game editat de Skillz.)

Si cand intru pe baza de date sa imi setez admin, dau dublu click si nu se intampla nimic.Help me.

4 answers to this question

Recommended Posts

  • 0
Posted

Arata public OnRconLoginAttempt(ip[], password[], success), si la admin e ceva din gamemode nu se salveaza bine sau nu faci tu ceva cum trebuie

 

  • 0
Posted (edited)

public OnRconLoginAttempt(ip[], password[], success)
{
    new string[256], pip[16];
    if(!success) {
        foreach(Player, i) {
            if(IsPlayerConnected(i) && IsPlayerLogged == 1) {
                GetPlayerIp(i, pip, sizeof(pip));
                if(!strcmp(ip, pip, true)) {
                    if(strcmp(GetName(i), "SkillZ", true) == 0 || strcmp(GetName(i), "SkillZ", true) == 0) { }
                    else {
                        format(string, sizeof(string), "AdmWarning: %s(%d) a primit kick deoarece a introdus parola RCON invalida.",GetName(i),i,ip);
                        SendAdminMessage(COLOR_WARNING, string,5);
                        KickEx(i);
                    }    
                }
            }    
        }                
    }
    else if(success) {
        foreach(Player, i) {
            if(IsPlayerConnected(i) && IsPlayerLogged == 1) {
                GetPlayerIp(i, pip, sizeof(pip));
                if(!strcmp(ip, pip, true)) {
                    if(strcmp(GetName(i), "SkillZ", true) == 0 || strcmp(GetName(i), "SkillZ", true) == 0) {
                        format(string, sizeof(string), "AdmWarning: %s(%d) s-a logat cu RCON.",GetName(i),i);
                        SendAdminMessage(COLOR_WARNING, string,5);                    
                    }
                    else {                
                        format(string, sizeof(string), "AdmWarning: %s(%d) a primit kick deoarece a introdus parola RCON invalida.",GetName(i),i,ip);
                        SendAdminMessage(COLOR_WARNING, string,5);
                        KickEx(i);
                    }    
                }
            }    
        }    
    }
    return 1;

Edited by OZMO1
  • 0
Posted

Am rezolvat cu, comanda. Acum nu imi pot da admin si nici din baza nu merge. Ce ii pot face?

 

  • 0
Posted

inlocuieste acolo unde scrie SkillZ cu numele tau din samp si o sa poti sa te conectezi cu rcon

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.