OnPlayerCommandText

From SA-MP

Jump to: navigation, search


OnPlayerCommandText

This callback is called when a player enters a command into the server console, e.g. /help.


(playerid,cmdtext[])
playeridThe player who entered the command.
cmdtext[]The complete text entered, including the command and the /.
Returns0 - Command not processed, pass to another script or display "Unknown command"
Returns1 - Command processed.
Personal tools