SendRconCommand
Description:
Function SendRconCommand sends an RCON (Remote Console) command.
|
Parameters:
(command[])
string | command | The RCON command to be executed. |
Return Values:
This function always returns 1.
Examples:
SendRconCommand("gmx"); // This is a scripted version of typing "/rcon gmx" in-game. // GMX restarts the game mode. // Example using format() new szMapName[] = "Los Santos"; new szCmd[64]; format(szCmd, sizeof(szCmd), "mapname %s", szMapName); SendRconCommand(szCmd);
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- IsPlayerAdmin: Checks if a player is logged into RCON.
Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.
- OnRconCommand: Called when an RCON command is sent.
- OnRconLoginAttempt: Called when an attempt to login to RCON is made.