Wanted Stars
#1

Hi. I have this script:

Код:
  		if(P_DATA[i][pWantedLevel] > 0)
		{
		    wantedlost[i]--;
		    if(wantedlost[i] <= 0)
		    {
		        P_DATA[i][pWantedLevel] -= 1;
		        new name[25];
		        GetPlayerName(i,name,sizeof(name));
		        SCM(i,COLOR_LIGHTBLUE,"You lost one wanted points because you ran 10 minutes by police.");
		        Update(i,pWantedLevel);
				format(string,sizeof(string),"%s(%d) lost one wanted points because it ran 10 minutes by police.",name,i);
				SendTeamMessage(3, COLOR_DBLUE, string);
				SendTeamMessage(2, COLOR_DBLUE, string);
				SendTeamMessage(1, COLOR_DBLUE, string);
				wantedlost[i] = 600;
				if(P_DATA[i][pWantedLevel] <= 0)
				{
				    ClearCrime(i);
				}
			}
		}
But after the wanted level goes down with 1 level, the stars are still there. Some1 knows why? :-/
Reply
#2

Well... https://sampwiki.blast.hk/wiki/SetPlayerWantedLevel
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)