[HELP]Problem with WantedLevelReduce
#1

I have an a GM with Cops and Robbers, I too have an system to reduce level, but dont fuction. This are the lines:

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);
}
}
}
}
}
}
}

If in any are wrong, please help me.
Reply


Messages In This Thread
[HELP]Problem with WantedLevelReduce - by cofy1 - 05.07.2010, 21:36
Respuesta: [HELP]Problem with WantedLevelReduce - by cofy1 - 05.07.2010, 22:26
Re: [HELP]Problem with WantedLevelReduce - by Babul - 06.07.2010, 06:20
Re: [HELP]Problem with WantedLevelReduce - by cofy1 - 06.07.2010, 16:05
Re: [HELP]Problem with WantedLevelReduce - by cofy1 - 06.07.2010, 16:38

Forum Jump:


Users browsing this thread: 1 Guest(s)