24.05.2014, 09:20
(
Последний раз редактировалось thaKing; 26.08.2014 в 16:38.
)
Fixed.
CMD:heal(playerid, params[]) { new Float:health; GetPlayerHealth(playerid, health); if(health <25) { SetPlayerHealth(playerid, 100); GivePlayerMoney(playerid, -75); } else if(health <50) { SetPlayerHealth(playerid, 100); GivePlayerMoney(playerid, -50); } else if(health <75) { SetPlayerHealth(playerid, 100); GivePlayerMoney(playerid, -25); } else if(health <100) { SendClientMessage(playerid, red, "Doctor says: You do not need medical attention!"); } return 1; }