SetPlayerWantedLevel

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 10:45, 9 April 2012
Smithy (Talk | contribs)

← Previous diff
Revision as of 04:59, 5 February 2014
Connor Mead (Talk | contribs)

Next diff →
Line 1: Line 1:
{{Scripting}} {{Scripting}}
-{{Title}} 
{{Description|Set a player's wanted level (6 brown stars under HUD).}} {{Description|Set a player's wanted level (6 brown stars under HUD).}}
Line 24: Line 23:
[[Category:Scripting Functions]] [[Category:Scripting Functions]]
 +
 +[[fr:SetPlayerWantedLevel]]

Revision as of 04:59, 5 February 2014



Description:

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


Parameters:
(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:

This function does not return any specific values.


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

Related Functions

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

In other languages