09.10.2015, 17:27
PHP код:
SetPlayerHealthEx(playerid,Float:NewHealth)
{
new Float:A;
GetPlayerArmour(playerid,A);
if((NewHealth > 99 && A <= 0.0) && JustSpawned[playerid] == 0 && onduty[playerid] == 0 && pInfo[playerid][GodMode] == 0 ) NewHealth = 99;
if(NewHealth <= 0.0) NewHealth = 0.0;
return SetPlayerHealth(playerid,NewHealth);
}
Example:
(a > 0 && a < 99 && b == 5) //invalid
((a > 0 && a < 99) && b == 5) //valid