[Tutorial] Evitar teleport con poca vida
#10

Otra opcion seria hacerlo asi.
Al final del script:
pawn Код:
stock PlayerHealth(playerid)
{
    new Float: vida;
    GetPlayerHealth(playerid, vida);
    return vida;
}
En el comando o la funcion:
pawn Код:
if(PlayerHealth(playerid) >= 70.0)
{
//Tiene 70.0 o mas puntos de vida
}
else
{
//Tiene 69.9 o menos puntos de vida
}
PD: Ya se que es lo mismo, solo doy mas opciones jeje
Reply


Messages In This Thread
Evitar teleport con poca vida - by GroX0r - 15.11.2009, 22:03
Re: [Tutorial] Evitar teleport con poca vida - by bm0z - 16.11.2009, 00:41
Re: [Tutorial] Evitar teleport con poca vida - by Donuts - 16.11.2009, 05:03
Re: [Tutorial] Evitar teleport con poca vida - by bm0z - 16.11.2009, 07:12
Re: [Tutorial] Evitar teleport con poca vida - by elvago - 17.11.2009, 05:43
Re: [Tutorial] Evitar teleport con poca vida - by Donuts - 17.11.2009, 16:23
Re: [Tutorial] Evitar teleport con poca vida - by elvago - 18.11.2009, 01:13
Re: [Tutorial] Evitar teleport con poca vida - by XeoN_13 - 19.11.2009, 01:35
Re: [Tutorial] Evitar teleport con poca vida - by Donuts - 19.11.2009, 06:57
Re: [Tutorial] Evitar teleport con poca vida - by Gantzyo - 19.11.2009, 20:13

Forum Jump:


Users browsing this thread: 1 Guest(s)