SendRconCommand
From SA-MP Wiki
SendRconCommand
Sends an RCON command.
(command[])
| command[] | The RCON command to be executed |
This function does not return a specific value.
Note: Does not support rcon login, for obvious reasons.
SendRconCommand("gmx"); // This is a scripted version of typing "/rcon gmx" in-game. // GMX restarts the game mode.
Related Functions
The following functions might be useful as well, as they're 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 they're related to this function in one way or another.
- OnRconCommand: Called when an RCON command is sent.
- OnRconLoginAttempt: Called when an attempt to login to RCON is made.
