Lose Wanted over time?
#1

I know this gets asked every day but i would realy like a working one.

It would need to Lose 1 star every 2.5 mins. Every star you lose gives you 2 points each.



{extra} If you reach 6 wanted you get 6 points on the dot?

Thanks
Reply
#2

pawn Код:
forward DecreaseWanted(playerid);
public DecreaseWanted(playerid)
{
  SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)-1);
  return 1;
Work with PVar's and shit to kill the timers when they're useless.
Reply
#3

Quote:
Originally Posted by Hiddos
Посмотреть сообщение
pawn Код:
forward DecreaseWanted(playerid);
public DecreaseWanted(playerid)
{
  SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)-1);
  return 1;
Work with PVar's and shit to kill the timers when they're useless.
What will that do?
Reply
#4

when u set to wanted start a timer and activate this public and this decrease by -1 the wanted level
Reply
#5

er? Can some one make it so i just put it im my GameMode and it works? Im no good with timers. PLZ
Reply
#6

Quote:
Originally Posted by Jackster
Посмотреть сообщение
er? Can some one make it so i just put it im my GameMode and it works? Im no good with timers. PLZ
Hiddos really did that lol..
Reply
#7

But will that make the player lose wanted every 1 mins?
Reply
#8

if you add a timer yes

- https://sampwiki.blast.hk/wiki/SetTimer
Reply
#9

Код:
SetTimer("DecreaseWanted", 120000, 1); //under ongamemodeinit
Reply
#10

Its didn't work tour15.

It incresed it.

Should it be -1 ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)