[pawn]else if ( strcmp( cmd, "!heal", true ) == 0 )
{
new Float:Health; GetPlayerHealth( playerid, Health );
if ( strcmp( GetPlayerLocation( playerid ), "Hospital-Vice-Point-Vice-City-Beach", false ) == 0 ) SendClientMessage( playerid, COLOR_GREEN, "You have to be at the hospital." );
else if ( Health >= 100 ) SendClientMessage( playerid, COLOR_GREEN, "Error: You are healthy." );
else
{
SetPlayerHealth( playerid, 100.0 );
SendClientMessage( playerid, COLOR_GREEN, "You have been healed." );
}
return 1;
}[/pawn]