The timer "ResetWanted" is on 5000 miniseconds...
The prob is, It is not working, I have 2 starts Ingame now, and im not yellow =/
pawn Код:
public ResetWanted()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsSpawned[i] == 1)
{
new wanted = GetPlayerWantedLevel(i);
if(wanted > 0 && wanted < 4)
{
SetPlayerColor(i, COLOR_YELLOW);
}
else if(wanted > 3 && wanted < 10)
{
SetPlayerColor(i, COLOR_ORANGE);
}
else if(wanted > 9)
{
SetPlayerColor(i, COLOR_RED);
}
else if(wanted == 0)
{
if(gTeam[i] == TEAM_COP)
{
SetPlayerColor(i, 0x0000FFAA);
return 1;
}
else if(gTeam[i] == TEAM_AIRCOP || gTeam[i] == TEAM_MARINECOP)
{
SetPlayerColor(i, 0x007F0EAA);
return 1;
}
else if(gTeam[i] == TEAM_CASINOGUARD)
{
SetPlayerColor(i, 0x1E90FFAA);
return 1;
}
else if(gTeam[i] == TEAM_SWAT)
{
SetPlayerColor(i, 0xD2691EAA);
return 1;
}
else if(gTeam[i] == TEAM_ARMY)
{
SetPlayerColor(i, 0x8A2BE2AA);
return 1;
}
else if(gTeam[i] == TEAM_MEDIC)
{
SetPlayerColor(i, 0xFF6EC7AA);
return 1;
}
else if(gTeam[i] == TEAM_MECHANIC)
{
SetPlayerColor(i, COLOR_WHITE);
return 1;
}
else if(gTeam[i] == TEAM_BISTRO)
{
SetPlayerColor(i, COLOR_WHITE);
return 1;
}
else if(gTeam[i] == TEAM_DRIVER)
{
SetPlayerColor(i, 0x00330EAA);
return 1;
}
else if(gTeam[i] == TEAM_RAPTIST)
{
SetPlayerColor(i, COLOR_WHITE);
return 1;
}
else if(gTeam[i] == TEAM_WEAPON_DEALER)
{
SetPlayerColor(i, COLOR_WHITE);
return 1;
}
else if(gTeam[i] == TEAM_DRUG_SELLER)
{
SetPlayerColor(i, COLOR_WHITE);
return 1;
}
else if(gTeam[i] == TEAM_SALES_MAN)
{
SetPlayerColor(i, COLOR_WHITE);
return 1;
}
}
}
else if(IsSpawned[i] == 0)
{
SetPlayerColor(i, 0x404040FF);
return 1;
}
}
return 1;
}