SA-MP Forums Archive
Wanted Stars - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Wanted Stars (/showthread.php?tid=580477)



Wanted Stars - abyss. - 05.07.2015

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? :-/


Re: Wanted Stars - liquor - 05.07.2015

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