/rcon command not working?
#1

Alright, I downloaded the SFCRRPG gamemode and the /rcon command does not work. I tried doing /rcon and nothing shows up on screen, but when I look at the server.exe or the cmd prompt, it shows Warning: /rcon exploit. I have the latest streamer and other plugins, does this have something to do with the code?
Reply
#2

It sounds like something within the script is interfering.

Firstly, look at the configuration file for the server. Does it contain the line "rcon 0" in it? If so, remove it.
Secondly, look through the script for the the callback titled "OnRconLoginAttempt". If it exists, post that callback here (or if you can see what to remove, remove it).

Ash
Reply
#3

OnRconLogin Attempt is empty;
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    return 1;
}
Server CFG.
echo Executing Server Config...
lanmode 0
rcon_password 1234
maxplayers 32
port 7777
hostname SA-MP 0.3 Server
gamemode0 SFCRRPG 1
filterscripts Untitled mbscript
announce 0
plugins irc streamer sscanf
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
logtimeformat [%H:%M:%S]
Reply
#4

Have you tried logging into RCON in game (/rcon login 1234 [I assume that's not your password, and you've just hid it...])
Reply
#5

Yes, it shows nothing on game chat still..cmd shows Warning: /rcon exploit
Reply
#6

Quote:
Originally Posted by David5290
Посмотреть сообщение
Yes, it shows nothing on game chat still..cmd shows Warning: /rcon exploit
Have you tried logging in directly (via the remote console command window).
Reply
#7

Messed around a little bit, got it to halfway work. When I type /rcon login 1234 it shows "Bad admin password. Repeated attempts will get you banned." Password matches .cfg exactly..
Reply
#8

Quote:
Originally Posted by David5290
Посмотреть сообщение
Messed around a little bit, got it to halfway work. When I type /rcon login 1234 it shows "Bad admin password. Repeated attempts will get you banned." Password matches .cfg exactly..
Check OnGameModeInit (in the script) to see if SendRconCommand("password *") is ever used. (The asterisk could be anything, I was just using it as an example.)
Reply
#9

pawn Код:
public OnGameModeInit()
{
    new string[128];
    format(string,sizeof(string),"hostname Dave's Cops N' Robbers",sversion);
    SendRconCommand(string);
Reply
#10

Quote:
Originally Posted by David5290
Посмотреть сообщение
pawn Код:
public OnGameModeInit()
{
    new string[128];
    format(string,sizeof(string),"hostname Dave's Cops N' Robbers",sversion);
    SendRconCommand(string);
Search the gamemode for SendRconCommand("password" - something is setting it somewhere.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)