14.05.2015, 06:27
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!
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!