Need Help with setting the constant Player Health
#1

Hello. I want that If I set the Player Health to 24 so His health set to 24. I almost completed the Command but I want to add these lines. I mean If I set Player Health like:

/heal <playerid> <amount>
/heal 0 59

So his health should be set to "59" exactly.

So I made it:

pawn Код:
CMD:heal(playerid, params[])
{
    new id;
    if(sscanf(params,"u",id)) return SendClientMessage(playerid, COLOR_RED1, "[ ! ] USAGE: /heal <playerid> <amount>");
    if(!IsPlayerConnected(id))return SendClientMessage (playerid, COLOR_WHITE, "ERROR: Invalid Player Id");
    if(IsPlayerAdmin(id)) return SendClientMessage (playerid, COLOR_RED1, "[ ! ] You have restored player health");
    return 1;
}
What to Add now?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)