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



ZCMD /changercon - Melktert - 27.03.2016

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


Re: ZCMD /changercon - Konstantinos - 27.03.2016

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;




Re: ZCMD /changercon - czerwony03 - 27.03.2016

del, look up