SendRconCommand
#1

how to change ur rcon password in script
SendRconCommand("password <changeme>"); ?
and where do i put this line
Reply
#2

Open server.cfg

There you will see an option like rcon_pass password

Change it and then re-upload that file to your servers directory
Reply
#3

I want to put it in the script!
Reply
#4

Код:
CMD:rcon(playerid, params[])
{

        if(isnull(params))
	{
	    SendClientMessage(playerid, "Usage: /rcon password newpasswordhere");
	    return false;
	}
       SendRconCommand(params);
      return 1;
}
This is just an example But this is the code. modify it to you needs!
Reply
#5

SendRconCommand("rcon_password <changeme>");
Reply
#6

PHP код:
CMD:changercon(playersparams)
{
     If(!
IsPlayerAdmin(playerid)) return 0;
     new 
pass[180];    
     if(
sscanf(params"s[180]"pass)) return SendClientMessage(playerid, -1"USAGE:/changercon <password>") ;
    new 
str[180];
    
format(strsizeof(str), "rcon_password %s"pass);
    
SendRconCommand(str) ;
    
SendClientMessage(playerid, -1"Password rcon changed ") ;
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)