Rcon Command VIA format :P
#1

Does anyone knows how can i make that it will be "rcon login (pw)" at sendrconcommand instead of rcon login (pw)
PHP код:
        new message[50];
    
format(message,sizeof(message),"rcon login %s",inputtext);
    
SendRconCommand(message); 
Reply
#2

That won't work anyway, but you can retrieve the RCON password as a string (using GetServerVarAsString) from the server.cfg.

The server already can send RCON commands and you can't force the server to log a player in to RCON - it doesn't even have a playerid parameter, so it won't know who you're trying to give RCON admin.

Perhaps you could use the GetServerVarAsString function to send the RCON password to a player to tell them what the RCON password is, but if the RCON password is changed while the server is running, through RCON, and server.cfg isn't updated, then the password from GetServerVarAsString won't be correct.
Reply
#3

Oh :/ thanks for reply
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)