Need Help with setting the constant Player Health
#9

Health is float.
pawn Код:
CMD:heal( playerid, params[ ] )
{
    if( !IsPlayerAdmin( playerid ) ) return 1;
    new
        id,
        Float: hp
    ;
    if( sscanf( params, "uf", id, hp ) ) return SendClientMessage( playerid, COLOR_RED1, "[ ! ] USAGE: /heal <playerid> <amount>" );
    if( !IsPlayerConnected( id ) ) return SendClientMessage( playerid, COLOR_WHITE, "ERROR: Invalid Player Id" );
    SetPlayerHealth( id, hp );
    return 1;
}
You need to be RCON in order to use the command.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)