[Ajuda] Erro RCON - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Erro RCON (
/showthread.php?tid=558722)
Erro RCON -
BPL - 18.01.2015
Код:
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.
Re: Erro RCON -
ipsLuan - 18.01.2015
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;
}
Re: Erro RCON -
BPL - 18.01.2015
Ainda nгo foi,
http://prntscr.com/5u433w
A senha estб correta
Re: Erro RCON -
ipsLuan - 18.01.2015
Quote:
Originally Posted by BPL
|
Vocк tem certeza que esta digitando a senha que esta no server.cfg?
Re: Erro RCON -
BPL - 18.01.2015
Sim, estб correta coloquei atй "123" pra testar e nгo foi
Re: Erro RCON -
ipsLuan - 18.01.2015
Quote:
Originally Posted by BPL
Sim, estб correta coloquei atй "123" pra testar e nгo foi
|
Mande a sua server.cfg!
Re: Erro RCON -
BPL - 18.01.2015
Код:
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й? '-'