Heal Commands
#1

How can I do so if the player is in dept of money so he can't use /heal anymore?

pawn Код:
if (strcmp("/heal", cmdtext, true, 10) == 0)
        {
            if(IsPlayerCloseToEnemy(playerid)) return SendClientMessage(playerid, COLOR_ORANGE, "You are to close to your enemies to refill your health.");
            GivePlayerMoney(playerid, -1000);
            SetPlayerHealth(playerid, 100);
            SendClientMessage(playerid, GREEN, "You have refilled your health but lost 1000.");
            return true;
    }
Reply


Messages In This Thread
Heal Commands - by HighPitchedVoice - 25.05.2012, 15:51
Re: Heal Commands - by [MG]Dimi - 25.05.2012, 16:00
Re: Heal Commands - by HighPitchedVoice - 25.05.2012, 16:05
Re: Heal Commands - by HighPitchedVoice - 25.05.2012, 16:08
Re: Heal Commands - by thefatshizms - 25.05.2012, 16:10
Re: Heal Commands - by HighPitchedVoice - 25.05.2012, 16:15
Re: Heal Commands - by thefatshizms - 25.05.2012, 16:16
Re: Heal Commands - by HighPitchedVoice - 25.05.2012, 16:24
Re: Heal Commands - by $$inSane - 25.05.2012, 16:33
Re: Heal Commands - by thefatshizms - 25.05.2012, 16:37

Forum Jump:


Users browsing this thread: 3 Guest(s)