/healme bug - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /healme bug (
/showthread.php?tid=494944)
/healme bug -
AwokenNeoX - 15.02.2014
Its a DM server. I create a command if the player type /healme he gets 100% hp and lost 5000 dollers. But if the player have already 100% health and type /healme he lost 5000 Doller. I need a code if the player have already 100% hp he cant use this command
Re: /healme bug -
gahal156 - 15.02.2014
pawn Код:
new Float: phealth;
GetPlayerHealth(playerid, phealth);
if(phealth != 100.0)
{
// The code goes here
}
Enjoy mate!
AW: Re: /healme bug -
AwokenNeoX - 15.02.2014
Quote:
Originally Posted by gahal156
pawn Код:
new Float: phealth; GetPlayerHealth(playerid, phealth); if(phealth != 100.0) { // The code goes here }
Enjoy mate!
|
Thank you very much