07.04.2013, 23:48
(
Последний раз редактировалось AzAmerica; 07.04.2013 в 23:57.
Причина: Erro no cod *-*
)
Simples, rapido e facil.
https://sampwiki.blast.hk/wiki/SetTimerEx
https://sampwiki.blast.hk/wiki/SetPlayerHealth
Para ser Mais Exato:
Simples *-*
https://sampwiki.blast.hk/wiki/SetTimerEx
https://sampwiki.blast.hk/wiki/SetPlayerHealth
Para ser Mais Exato:
pawn Код:
forward VidaComerMenos(playerid);
public OnPlayerConnect(playerid)//Ao conectar o timer comeзa a correr.
{
SetTimerEx("VidaComerMenos", 60000, true, "i", playerid); // VidaComerMenos = CallBack, 600000 = 1 Min
return 1;
}
public VidaComerMenos(playerid)
{
new Float: Vida;// Getar Vida Do Player
GetPlayerHealth(playerid, Vida);
SetPlayerHealth(playerid, Vida-10);//Diminui a vida do player em -10
}