[Ajuda] Erro RCON
#1

Код:
public OnRconLoginAttempt(ip[], password[], success)
{
	if(success)
	{
		new pip[16];
		new string[128];
		new sendername[MAX_PLAYER_NAME];
		for(new i=0; i<MAX_PLAYERS; i++)
		{
			GetPlayerName(i, sendername, sizeof(sendername));
			GetPlayerIp(i, pip, sizeof(pip));
			if(!strcmp(ip, pip, true))
			{
				if(strcmp(sendername,"Replay_.", true) == 0)
				{
					format(string, sizeof(string), "{3cff00}[DS] {FFFFFF}Seu nick ({00fffc}%s{FFFFFF}) tem permissгo para logar-se como admin RCON! Bom jogo.", sendername);
					SendClientMessage(i, VERDE2, string);
					return true;
				}
				else
				{
					format(string, sizeof(string), "{3cff00}[DS] {FFFFFF}Seu nick ({00fffc}%s{FFFFFF}) nгo tem permissгo para logar-se como admin RCON e foi kikado.", sendername);
					SendClientMessage(i, COLOR_LIGHTRED, string);
					SendClientMessage(i, COLOR_LIGHTRED, "{3cff00}[DS] {FFFFFF}Se vocк acha que isto й um erro, faзa uma revisгo em nosso forum: {00fffc}driftsystem.forumeiros.com");
					Kickp(i);
					break;
				}
			}
		}
	}
	return 1;
}
Nгo consigo logar na rcon.
Reply
#2

Tenta assim.

pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(success)
    {
        new pip[16];
        new string[128];
        new sendername[MAX_PLAYER_NAME];
        for(new i=0; i<MAX_PLAYERS; i++)
        {
            GetPlayerName(i, sendername, sizeof(sendername));
            GetPlayerIp(i, pip, sizeof(pip));
            if(!strcmp(ip, pip, true))
            {
                if(strcmp(sendername,"Replay_.", true) == 0)
                {
                    format(string, sizeof(string), "{3cff00}[DS] {FFFFFF}Seu nick ({00fffc}%s{FFFFFF}) tem permissгo para logar-se como admin RCON! Bom jogo.", sendername);
                    SendClientMessage(i, VERDE2, string);
                }
                else
                {
                    format(string, sizeof(string), "{3cff00}[DS] {FFFFFF}Seu nick ({00fffc}%s{FFFFFF}) nгo tem permissгo para logar-se como admin RCON e foi kikado.", sendername);
                    SendClientMessage(i, COLOR_LIGHTRED, string);
                    SendClientMessage(i, COLOR_LIGHTRED, "{3cff00}[DS] {FFFFFF}Se vocк acha que isto й um erro, faзa uma revisгo em nosso forum: {00fffc}driftsystem.forumeiros.com");
                    Kickp(i);
                    break;
                }
            }
        }
    }
    return 1;
}
Reply
#3

Ainda nгo foi, http://prntscr.com/5u433w

A senha estб correta
Reply
#4

Quote:
Originally Posted by BPL
Посмотреть сообщение
Ainda nгo foi, http://prntscr.com/5u433w

A senha estб correta
Vocк tem certeza que esta digitando a senha que esta no server.cfg?
Reply
#5

Sim, estб correta coloquei atй "123" pra testar e nгo foi
Reply
#6

Quote:
Originally Posted by BPL
Посмотреть сообщение
Sim, estб correta coloquei atй "123" pra testar e nгo foi
Mande a sua server.cfg!
Reply
#7

Код:
echo Executing Server Config...
lanmode 0
rcon_password 123
maxplayers 2
port 7777
hostname DS
gamemode0 TBD
filterscripts
plugins streamer
announce 1
query 1
weburl www.sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
Acho que jб vi o erro, falta um FS "RCONCMDPLUS" nй? '-'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)