16.02.2013, 10:11
Tente assim:
pawn Код:
forward AtualizarHora();
public AtualizarHora()
{
getdate(data[0], data[1], data[2]);
gettime(hora[0], hora[1], hora[2]);
for(new players; players < GetMaxPlayers(); players++)
{
if(!IsPlayerConnected(players)) continue;
if(ProgressaoInfo[players][Preso] == true && ProgressaoInfo[players][TempoPreso] <= 0)
{
GameTextForPlayer(players,"Solto!",5000,5);
SetPlayerPos(players,268.0135,77.1637,1001.0391);
ProgressaoInfo[players][Preso] = false;
ProgressaoInfo[players][TempoPreso] = 0;
return true;
}
else if(ProgressaoInfo[players][Preso] == true && ProgressaoInfo[players][TempoPreso] > 0)
{
ProgressaoInfo[players][TempoPreso] --;
return true;
}
}
return true;
}