07.03.2010, 10:40
isso tem alguns problemas ai.. acho
pawn Код:
//No Topo
forward PerderLife();
//No OnGameModeInit
SetTimer("PerderLife",60000,1); // a cada 1 min o cara vai perder -1.0 life
//No Fim do GM
public PerderLife()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new Float:vidap;
GetPlayerHealth(i, vidap);
SetPlayerHealth(i, vidap-1.0); // se nгo quiser que o cara perde 1.0 por hora troque tipo por 0.5 ou 5.0, nгo retire o - se nгo o cara ganharб health
}
}
return 1;
}