• Home
  • FAQ
  • Servers
  • Docs
  • Blog
  • Englishاللغة العربيةবাংলাbosanski jezikDeutschΕλληνικάEspañoleestiFrançaishrvatski jezikmagyarBahasa IndonesiaItaliano日本語ქართულიlietuvių kalbaNederlandsNorskjęzyk polskiPortuguêsRomânăРусскийсрпски језикไทยTürkçeУкраїнськаاردوTiếng Việt简体中文繁體中文

SetPlayerSpecialAction

Description

This function allows to set players special action.

NameDescription
playeridThe player that should perform the action
actionidThe action that should be performed.

Returns

1: The function executed successfully.

0: The function failed to execute. This means the player is not connected.

Examples

if (strcmp(cmd, "/handsup", true) == 0)
{
    SetPlayerSpecialAction(playerid, SPECIAL_ACTION_HANDSUP);
    return 1;
}

Notes

tip

Removing jetpacks from players by setting their special action to 0 causes the sound to stay until death.

Related Functions

  • GetPlayerSpecialAction: Get a player's current special action.
  • ApplyAnimation: Apply an animation to a player.

Community

  • Discord
  • Instagram
  • Twitter
  • Facebook
  • VK

More

  • SA-MP
  • Blog
  • GitHub