Heal Commands
#2

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.");
        if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, COLOR_ORANGE, "You don't have enough money to heal yourserlf.");
        GivePlayerMoney(playerid, -1000);
        SetPlayerHealth(playerid, 100);
        SendClientMessage(playerid, GREEN, "You have refilled your health but lost 1000.");
        return true;
    }
GetPlayerMoney(playerid)
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: 1 Guest(s)