05.07.2010, 21:36
I have an a GM with Cops and Robbers, I too have an system to reduce level, but dont fuction. This are the lines:
If in any are wrong, please help me.
Quote:
public WantedLevelReduce() { for (new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(IsSpawned[i] == 1) { if(commitedcrimerecently[i] == 0) { if(GetPlayerWantedLevel(i) >= 1 && GetPlayerWantedLevel(i) <= 6) { if(copshavevc[i] == 0) { new plwl = GetPlayerWantedLevel(i); SetPlayerWantedLevel(i,plwl -1); new criminal[30]; new string[100]; plwl = GetPlayerWantedLevel(i); new pcol = GetPlayerColor(i); GetPlayerName(i,criminal,30); SendClientMessage(i, 0xA9A9A9AA, "|_Wanted Level Reduced_|"); SendClientMessage(i, pcol, "Your wanted level has been reduced due to a lack of police interest"); format(string, sizeof(string), "Reduced Wanted Level: %d",plwl); SendClientMessage(i, pcol, string); format(string, sizeof(string), "**(Reduced Wanted Level)** %s(%d) New Wanted Level: %d",criminal,i,plwl); printf("%s",string); } } } } } } } |