SA-MP Forums Archive
/heal CMD! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /heal CMD! (/showthread.php?tid=470431)



/heal CMD! - Another1 - 18.10.2013

Sloved!


Re: /heal CMD! - PT - 18.10.2013

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;
}



Re: /heal CMD! - Alphlax - 18.10.2013

nice nice