[Ajuda] O que estб errado?
#2

PHP код:
new TimerVida[MAX_PLAYERS];
public 
PerderVida(playerid)
{
    new 
Float:Vida;
    
GetPlayerHealth(playeridVida);
    if(
Vida <= 2.0)
    {
        
SetPlayerHealth(playerid1.0);
        
KillTimer(TimerVida[playerid]);
        return 
1;
    }
    
SetPlayerHealth(playeridVida 2.0);
    return 
1;

E tambйm a variбvel TimerVida tem de ser uma array (assim como feito acima), pois cada jogador terб seu prуprio timer.
Reply


Messages In This Thread
[Ajuda] O que estб errado? - by WiliHacking - 06.08.2017, 05:09
Re: [Ajuda] O que estб errado? - by RodrigoMSR - 06.08.2017, 12:20
Re: [Ajuda] O que estб errado? - by WiliHacking - 06.08.2017, 22:23

Forum Jump:


Users browsing this thread: 1 Guest(s)