Rcon command not working
#1

Hello,

I'am trying to make a rcon command that names in xgmx.
the command used to reset the server and save the vehicles & players stats(they saved on a enum var).

this is my public:
Код:
public OnRconCommand(cmd[])
{
    if(strcmp("xgmx", cmd, true) == 0)
    {
        printf("-=-=-=- Saving player stats -=-=-=-");
        ForEach(i, GetMaxPlayers()) {
            SavePlayerInfo(i);
			SendClientMessage(i, -1, "Server is restarting.... Your Stats is Saved!! please Wait!");
			printf("Saving \"%s\" Stats...", GetName(i));
        }
        printf("-=-=-=- All players stats saved! -=-=-=-");

        printf("-=-=-=- Saving vehicle stats -=-=-=-");
		//save the vehicle
        printf("-=-=-=- All vehicles saved! -=-=-=-");
        
		SendRconCommand("gmx");
        return 1;
    }
    return 1;
}
I'm trying to do /rcon xgmx but nothing happend, but when i'm typing /rcon gmx it's works!
What to do?
Reply


Messages In This Thread
Rcon command not working - by Swimor - 01.10.2012, 07:23
Re: Rcon command not working - by TheBlackKnight - 01.10.2012, 07:32
Re: Rcon command not working - by Swimor - 01.10.2012, 07:41
Re: Rcon command not working - by TheBlackKnight - 01.10.2012, 07:43
Re: Rcon command not working - by Swimor - 01.10.2012, 07:48
Re: Rcon command not working - by trapstar2020 - 01.10.2012, 07:56
Re: Rcon command not working - by ReneG - 01.10.2012, 07:58
Re: Rcon command not working - by Extremo - 01.10.2012, 08:02
Re: Rcon command not working - by Swimor - 01.10.2012, 08:08
Re: Rcon command not working - by Extremo - 01.10.2012, 08:10

Forum Jump:


Users browsing this thread: 1 Guest(s)