23.09.2013, 19:13
Health is float.
You need to be RCON in order to use the command.
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;
}