SendClientMessage tag missmatch? How?
#3

pawn Код:
CMD:heal(playerid, params[])
{
    if(UsedHeal[playerid]) return SendClientMessage(playerid,-1, "<!>You already used /heal! Wait until you die so you can use it again!");
    if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid,-1,"<!>Not enough money! You must have atleast 500$!");
    GivePlayerMoney(playerid, -500);
    SendClientMessage(playerid,-1,"<!>You have healed yourself to 100HP!");
    SetPlayerHealth(playerid, 100);
    UsedHeal[playerid] = true;
    return 1;
}
Reply


Messages In This Thread
SendClientMessage tag missmatch? How? - by Twinklies - 16.09.2012, 17:01
Re: SendClientMessage tag missmatch? How? - by Vince - 16.09.2012, 17:03
Re: SendClientMessage tag missmatch? How? - by AtItsMax - 16.09.2012, 17:14

Forum Jump:


Users browsing this thread: 2 Guest(s)