/heal CMD!
#1

Sloved!
Reply
#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
#3

nice nice
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)