[Pedido] SetPlayerHealth gradualmente
#4

Isso,

pawn Код:
healtPlayer(); public healtPlayer(){



    static Float: pHealth[ MAX_PLAYERS ];
    static Int, MaxP;
   
   
    for(Int = 0, MaxP = GetMaxPlayers(); Int != MaxP; ++Int){
   
        if(IsPlayerConnected(Int)){
            GetPlayerHealth(Int, pHealth[Int]);
           
            if(pHealth[Int] < 100){
                SetPlayerHealth(Int, 5.0);
            }
        }
    }
    return true;
}
Reply


Messages In This Thread
SetPlayerHealth gradualmente - by Gustavo Aguiar - 07.02.2013, 14:47
Re: SetPlayerHealth gradualmente - by @Riichard - 07.02.2013, 14:50
Re: SetPlayerHealth gradualmente - by DanDRT - 07.02.2013, 15:03
Re: SetPlayerHealth gradualmente - by zSuYaNw - 07.02.2013, 15:46
Re: SetPlayerHealth gradualmente - by MatheusFuria - 07.02.2013, 15:48
Re: SetPlayerHealth gradualmente - by Schocc - 07.02.2013, 17:30
Re: SetPlayerHealth gradualmente - by Gustavo Aguiar - 08.02.2013, 15:32

Forum Jump:


Users browsing this thread: 1 Guest(s)