SendRconCommand - 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: SendRconCommand (
/showthread.php?tid=652145)
SendRconCommand -
EzeGODezE - 04.04.2018
how to change ur rcon password in script
SendRconCommand("password <changeme>"); ?
and where do i put this line
Re: SendRconCommand -
OmerKhan - 04.04.2018
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
Re: SendRconCommand -
EzeGODezE - 04.04.2018
I want to put it in the script!
Re: SendRconCommand -
UFF - 04.04.2018
Код:
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!
Re: SendRconCommand -
jlalt - 04.04.2018
SendRconCommand("rcon_password <changeme>");
Re: SendRconCommand -
Osamakurdi - 04.04.2018
PHP код:
CMD:changercon(players, params)
{
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(str, sizeof(str), "rcon_password %s", pass);
SendRconCommand(str) ;
SendClientMessage(playerid, -1, "Password rcon changed ") ;
return 1;
}