05.07.2015, 18:13
Hi. I have this script:
But after the wanted level goes down with 1 level, the stars are still there. Some1 knows why? :-/
Код:
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); } } }