• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] How to decrease SetPlayerWantedLevel every 5 seconds?
#2
Code:
forward DeceraseWantedLevel(playerid);
public DecreaseWantedLevel(playerid)
{
    new level = GetPlayerWantedLevel(playerid);
    if(!level)
        return;

    SetPlayerWantedLevel(playerid, --level);
}

// Somewhere in your script
SetTimerEx("DecreaseWantedLevel", true, 5 * 1000, "d", playerid);
Using Pawn.CMD?

If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
  Reply


Messages In This Thread
RE: How to decrease SetPlayerWantedLevel every 5 seconds? - by Pinch - 2021-07-04, 07:29 AM

Forum Jump: