Need Help with setting the constant Player Health
#2

This is the way you want it to work. Work on it to suit your needs.
pawn Код:
CMD:heal(playerid, params[])
{
    if(IsPlayerAdmin(playerid))
    {
        new id,amount;
        if(sscanf(params,"ui",id,amount)) return SendClientMessage(playerid, COLOR_RED1, "[ ! ] USAGE: /heal <playerid> <amount>");
        if(!IsPlayerConnected(id))return SendClientMessage (playerid, COLOR_WHITE, "ERROR: Invalid Player Id");
        SetPlayerHealth(id,amount);
    }  
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)