SA-MP Forums Archive
/rcon login >> Server closed the connection. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /rcon login >> Server closed the connection. (/showthread.php?tid=574160)



/rcon login >> Server closed the connection. - PhilippineGangsta - 14.05.2015

I've downloaded CG-RP Script from here and it's all working fine,the only problem is that when i try to /rcon login [PASS] ,i'm loosing the connection "Server closed the connection".

Here is my OnRconLoginAttempt Script,I dont find any wrong over there:

public OnRconLoginAttempt(ip[], password[], success)
{
if(success)
{
new pip[16];
////foreach(Player,i)
for(new i; i<MAX_PLAYERS; i++)
{
GetPlayerIp(i, pip, sizeof(pip));
if(!strcmp(ip, pip, true))
if(PlayerInfo[i][pAdmin] < 3) Ban(i);
}
}
}

Also i gets "fatal error 100: cannot read from file: "dini"

Solution for both of those errors please!


Re: /rcon login >> Server closed the connection. - Deathlane - 14.05.2015

Make sure you are set as an administrator first before attempting to log in the RCON. (Level 4 and up)

Also, download Dini from here.


Re: /rcon login >> Server closed the connection. - PhilippineGangsta - 14.05.2015

How to set myself as Administrator?
Also I've downloaded the Dini file and Extracted it to Include file,Still the Error occurs


Re: /rcon login >> Server closed the connection. - Darkwood17 - 14.05.2015

You have to find your account in scriptfiles and from there to set your admin level.


Re: /rcon login >> Server closed the connection. - DonaldDuck - 23.12.2017

E remove mo lang ok na.


Re: /rcon login >> Server closed the connection. - GTLS - 24.12.2017

Just comment or remove the ban line.

Off Topic:
If you don't know how to even make your self admin on using your file, you should not run your server publically. just learn everything about samp before you make your server public..


Re: /rcon login >> Server closed the connection. - cuber - 24.12.2017

if(!success)