02.06.2012, 23:21
(
Последний раз редактировалось Kurtis96z; 03.06.2012 в 00:19.
Причина: SOLVED
)
I am really new to this and what I am trying to make here is a toggle-able command. Basically what I want it to do is make it set there health extremely high (godmode on) and then if they typed the command again, it will set the players health back to normal. Can someone help me?
Quote:
CMD:godmode(playerid) { new Float:health; GetPlayerHealth(playerid, health); if (health == 100) { SetPlayerHealth(playerid, 90000.0); SendClientMessageToAll(0xFFFF00AA, "A player has enabled godmode!"); } else if(health == 90000.0 ) { SetPlayerHealth(playerid, 100.0); SendClientMessageToAll(0xFFFF00AA, "A player has disabled godmode!"); } return 1; } |