09.05.2016, 12:57
For some reason this doesn't work:
I have a /god command for level 3+ admins which enables god mode, but the code above doesn't seem to work. Also don't suggest making it SetPlayerHealth(playerid, 9999999) when typing /god, because this doesn't work for some reason in my server. Does anybody know what is the issue?
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid) { if (GodMode[playerid] == 1) { new Float:health; GetPlayerHealth(playerid,health); if (health < 150.0) { SetPlayerHealth(playerid, 200.0); } }