[Include] Server-Side Health ― Sem mais s0rvete nem cl3o
#7

pawn Code:
if(_sg_PlayerInfo[playerid][shPlayerArmour] < 0)
    {
        _sg_PlayerInfo[playerid][shPlayerArmour] = 0.0;
        _sg_PlayerInfo[playerid][shPlayerHealth] += _sg_PlayerInfo[playerid][shPlayerArmour];
    }
Nгo deveria ser assim ?

pawn Code:
if(_sg_PlayerInfo[playerid][shPlayerArmour] < 0)
    {
        _sg_PlayerInfo[playerid][shPlayerHealth] += _sg_PlayerInfo[playerid][shPlayerArmour];
        _sg_PlayerInfo[playerid][shPlayerArmour] = 0.0;
    }
E outra coisa: De qualquer forma, se o jogador atingido nгo estiver usando cheat, a vida dele nгo serб esta que foi setada e sim a correta (entendeu ? '-').
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)