01.10.2012, 07:23
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:
I'm trying to do /rcon xgmx but nothing happend, but when i'm typing /rcon gmx it's works!
What to do?
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; }
What to do?