SA-MP Forums Archive
Question - 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: Question (/showthread.php?tid=608981)



Question - VinHanako - 07.06.2016

Why everytime i /rcon login <password> i got banned from the server help please


Re: Question - darkdevil - 07.06.2016

R u entering correct rcon password?
Show me your server.cfg file


Re: Question - VinHanako - 07.06.2016

echo Executing Server Config...
lanmode 1
rcon_password xtreme
maxplayers 20
port 7920
hostname [ENG | 0.3x] Shadow Gaming RP [Los Santos]
gamemode0 UG-RP 1
filterscripts Tgarage buttons Toll DynamicGateSystem headphones NeonSystem
announce 1
plugins streamer.so sscanf.so audio.so Whirlpool.so mysql_static.so nativechecker.so
query 1
chatlogging 0
weburl Coming Soon!
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 700.0
stream_rate 1500
maxnpc 10
logtimeformat [%H:%M:%S]
bind 192.99.11.136


Re: Question - Dayrion - 07.06.2016

You have to type /rcon login xtreme. If this still banning you, show the rcon callback.


Re: Question - VinHanako - 07.06.2016

How ? Ill type /rcon callback?


Re: Question - saffierr - 07.06.2016

Show the rcon callback in your .pwn file.


Re: Question - VinHanako - 07.06.2016

There is no rcon callback where can i see that


Re: Question - ilijap - 07.06.2016

OnRconLoginAttempt -_-


Re: Question - VinHanako - 07.06.2016

Quote:

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);
}
}
}

This is the code


Re: Question - iShawn - 07.06.2016

Delete this code.

In your code, if you log in rcon (success) the system checks all players and if they have the same IP as who logged in, he receves a ban.
PHP код:

public OnRconLoginAttempt(ip[], password[], success)
{
    return 
1;