From SA-MP Wiki

Jump to: navigation, search


Set a player's wanted level (6 brown stars under HUD).

(playerid, level)
playeridThe ID of the player to set the wanted level of.
levelThe wanted level to set for the player (0-6).

Return Values:

  • 1: The function was executed successfully.
  • 0: The function failed to execute. The player specified does not exist.

Example Usage:

if(strcmp(cmdtext, "/turnuptheheat", true) == 0)
    SetPlayerWantedLevel(playerid, 6);
    SendClientMessage(playerid, 0xFF0000FF, "Wanted Level: 6");
    return 1;

Related Functions

The following functions may be helpful as they relate to this function in one way or another.

Personal tools
In other languages