ZCMD /changercon
#1

I'm looking for someone who can make a command like if I type "/changercon" it would change the rcon to what i put in the command for example

SendRconCommand("rcon_password NEWPASSWORD");

The player doesn't have to be logged in to rcon or need to be admin (sort of like a secret command, incase someone hacks the server)

So if someone would be so kind and do this simple command for me in ZCMD
Reply
#2

I wouldn't recommend having such a command though. The best way is to turn off the server, change the rcon password manually and then start it again.

Anyway:
PHP код:
CMD:mysecretcmd(playeridparams[])
{
    if (
isnull(params)) return 0;
      new
        
rcon_cmd[50] = "rcon_password ";
      
strcat(rcon_cmdparamssizeof rcon_cmd);
      
SendRconCommand(rcon_cmd);
      return 
1;

Reply
#3

del, look up
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)