From SA-MP Wiki

Jump to: navigation, search


This function allows to set players special action.

(playerid, actionid)
playeridThe player that should perform the action
actionidThe action that should be performed.

Return Values:

  • 1: The function executed successfully.
  • 0: The function failed to execute. This means the player is not connected.

Example Usage:

if(strcmp(cmd, "/handsup", true) == 0)
    return 1;

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools
In other languages