04.04.2018, 01:54
how to change ur rcon password in script
SendRconCommand("password <changeme>"); ?
and where do i put this line
SendRconCommand("password <changeme>"); ?
and where do i put this line
CMD:rcon(playerid, params[]) { if(isnull(params)) { SendClientMessage(playerid, "Usage: /rcon password newpasswordhere"); return false; } SendRconCommand(params); return 1; }
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;
}