OnRconCommand
From SA-MP Wiki
OnRconCommand
This callback is called when a player types things into the RCON console. This only works in filterscripts, however.
(cmd[])
| cmd[] | The string containing the cmd. |
| Returns | 0 if the command was not processed, it will be passed to another script or 1 if the command was processed, will not be passed to other scripts |
public OnRconCommand(cmd[]) { printf("You typed %s!",cmd); return 1; }
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.
- OnRconLoginAttempt: Called when an attempt to login to RCON is made.
