OnRconCommand

From SA-MP Wiki

Jump to: navigation, search

OnRconCommand


This callback is called when a player types things into the RCON console. This only works in filterscripts, however.


Parameters:
(cmd[])
cmd[]The string containing the cmd.


Returns0 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.


Related Callbacks

The following callbacks might be useful, as they're related to this function in one way or another.

Personal tools