/heal another player
#9

Quote:
Originally Posted by [CrC]reinixx
Посмотреть сообщение
try this..
pawn Код:
CMD:heal(playerid, params[])
{
    new
        id;
    if (sscanf(params, "u", id)) SendClientMessage(playerid, COLOR_GREEN, "Usage: \"/heal <playerid or name>\"");
    else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_SIMPSONS, "Player not found");
    if (id == playerid) {SendClientMessage(playerid, COLOR_SIMPSONS, "You cannot set your own hp!"); return 1;}
    if(PlayerInfo[playerid][pAdminLevel] < 1){SendClientMessage(playerid, COLOR_LIGHTRED, "You Are Not Admin level required to use this cmd"); return 1;}
    else
    {
        SetPlayerHealth(id, 100.0);
        SendClientMessage(id, COLOR_LIGHTRED, "Admin healed you.");
        SendClientMessage(playerid, COLOR_LIGHTRED, "Player healed.");
    }
    return 1;
}
this is straight from my GM..
Offtopic: Did you take that from SWX? I recognize the code
Reply


Messages In This Thread
/heal another player - by Michael@Belgium - 28.01.2011, 19:51
Re: /heal another player - by Larsey123IsMe - 28.01.2011, 20:07
Re: /heal another player - by Rock18 - 28.01.2011, 20:34
Re: /heal another player - by FreshDoubleX - 28.01.2011, 20:38
Re: /heal another player - by Michael@Belgium - 29.01.2011, 10:25
Re: /heal another player - by [CrC]reinixx - 29.01.2011, 10:31
Re: /heal another player - by Lorenc_ - 29.01.2011, 10:33
Re: /heal another player - by Michael@Belgium - 29.01.2011, 10:56
Re: /heal another player - by alpha500delta - 30.01.2011, 11:56
Re: /heal another player - by [CrC]reinixx - 01.02.2011, 16:40

Forum Jump:


Users browsing this thread: 1 Guest(s)