Quote:
Originally Posted by Konstantinos
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; }
|
It doesn't have to be set as a float though.