/healme bug
#1

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
Reply
#2

pawn Код:
new Float: phealth;
GetPlayerHealth(playerid, phealth);
if(phealth != 100.0)
{
    // The code goes here
}
Enjoy mate!
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)