killdahobo99
Unregistered
I have a /heal command, but it heals even if you health is 100.
How do i make it so if you type /heal, and your health is 100 it says "your health is already full" and doesnt charge you the $100.
killdahobo99
Unregistered
Quote:
Originally Posted by Roban[swe
]
Try this:
pawn Код:
if (strcmp("/heal", cmdtext, true, 10) == 0) { new Float:HP; GetPlayerHealth(playerid, HP); if(HP <= 99) { SetPlayerHealth(playerid, 100.0); } else { } return 1; }
|
How do i make it, so like I Think that command works but...How do i make it so it says "Your hp is full" if its at 100 with that command?
Posts: 2,896
Threads: 11
Joined: Sep 2008
Reputation:
0
How come the last three of us posted different code that does the same exact thing? Is it really needed?
killdahobo99
Unregistered
Ok, I've used your command (doesnt matter which one, you guys are all helpful) but now, my other one doesnt work that heals, because it gives me errors.
Can you guys add a /heal command for if you need healing? like now its if you type /heal and you need to be healed
Because now its just anytime i type /heal even if not in a portal it says "You dont need to be healed" but it heals you....
I want it to be, if you don't need to be healed, it says "you dont need to be healed" but if you do it says "You have been healed, Hospital bill was $100"