14.10.2012, 01:42
Seria esse o codigo de remover o nivel de procurado ?
pawn Код:
public Production()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pFishes] >= 5) { if(FishCornt[i] >= 3) { PlayerInfo[i][pFishes] = 0; } else { FishCornt[i] += 1; } }
if(PlayerDrunk[i] > 0) { PlayerDrunk[i] = 0; PlayerDrunkTime[i] = 0; SetPlayerDrunkLevel (i, 0); GameTextForPlayer(i, "~w~O efeito da bebida~n~~b~acabou", 3500, 1); }
if(PlayerInfo[i][pPayDay] < 6) { PlayerInfo[i][pPayDay] += 1; } //+ 5 min to PayDay anti-abuse
if(WantedPoints[i] > 0)
{
WantedPoints[i] -= 1;
SetPlayerWantedLevel(i, WantedPoints[i]);
format(gstring, sizeof(gstring), "Nнvel de procurado: %d", WantedPoints[i]);
MSGPLAYER(i, COLOR_YELLOW, gstring);
}
}
}
}