/heal CMD!
#2

pawn Код:
CMD:heal(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, RED, "UnKnown Command! Type /help");
    if(sscanf(pramas,"u", params[0])) return SendClientMessage(playerid, RED, "Healing a specific player: /heal <playerid>");
    if(!IsPlayerConnected(params[0])) return SendClientMessage(playerid, RED, "Player is not connected!");
    SetPlayerHealth(params[0], 100.0);
    new name[MAX_PLAYER_NAME], pt_msg[100];
    GetPlayerName(playerid, name, sizeof (name));
    format(pt_msg,sizeof (pt_msg),"Administrator %s has healed you",name);
    SendClientMessage(params[0], -1, pt_msg);
    return 1;
}
Reply


Messages In This Thread
/heal CMD! - by Another1 - 18.10.2013, 01:42
Re: /heal CMD! - by PT - 18.10.2013, 01:49
Re: /heal CMD! - by Alphlax - 18.10.2013, 01:51

Forum Jump:


Users browsing this thread: 1 Guest(s)