A CMD that bugs my server.
#7

Fix:

pawn Код:
CMD:heal(playerid, params[])
{
        new playerb, string[128];
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
        if(sscanf(params, "u", playerb)) return SendClientMessage(playerid, COLOR_WHITE, "SYNTAX: /heal [playerid]");
    if(!IsAMedic(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to be a Medic to use this command.");
    SetPlayerHealth(playerb, 100);
    GiveZaiatMoney(playerb, -45);
        format(string, sizeof(string), "You have healed %s for 45$.", RPN(playerb));
    SendClientMessage(playerid, COLOR_GREY, string);
    return 1;
}
Reply


Messages In This Thread
A CMD that bugs my server. - by Strech - 09.08.2012, 17:40
Re: A CMD that bugs my server. - by PawnFox - 09.08.2012, 17:41
Re: A CMD that bugs my server. - by Strech - 09.08.2012, 17:42
Re: A CMD that bugs my server. - by Jstylezzz - 09.08.2012, 17:44
Re: A CMD that bugs my server. - by Dawnz - 09.08.2012, 17:46
Re: A CMD that bugs my server. - by Strech - 09.08.2012, 18:01
Re: A CMD that bugs my server. - by Dawnz - 09.08.2012, 18:06

Forum Jump:


Users browsing this thread: 1 Guest(s)