AMX Mod X API Documentation

Signature
native clamp(value, min = cellmin, max = cellmax);
Description

Limits a provided value between two specified bounds.

Parameters
  • value Value to clamp
  • min Lower bound
  • max Upper bound
Returns

The value if it is between the lower and upper bound, min if

value is below, max if it is above the specified bounds.

Назад
Верх