[Ajuda] Comer para nгo morrer
#7

Simples, rapido e facil.

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
}
Simples *-*
Reply


Messages In This Thread
Comer para nгo morrer - by Mutuka_XTreme - 07.04.2013, 23:16
Re: Comer para nгo morrer - by Gii - 07.04.2013, 23:27
Re: Comer para nгo morrer - by Mutuka_XTreme - 07.04.2013, 23:33
Re: Comer para nгo morrer - by Gii - 07.04.2013, 23:35
Re: Comer para nгo morrer - by Mutuka_XTreme - 07.04.2013, 23:38
Re: Comer para nгo morrer - by Gii - 07.04.2013, 23:40
Re: Comer para nгo morrer - by AzAmerica - 07.04.2013, 23:48
Re: Comer para nгo morrer - by Mutuka_XTreme - 07.04.2013, 23:54
Re: Comer para nгo morrer - by n0minal - 08.04.2013, 15:48

Forum Jump:


Users browsing this thread: 1 Guest(s)