AMX Mod X API Documentation

Signature
native rg_give_custom_item(const index, const pszName[], GiveType:type = GT_APPEND, const uid = 0);
Description

Gives the player an custom item, this means that don't handled API things.

Notes
  • example: rg_give_custom_item(id, "weapon_c4"); doesn't sets the member

    m_bHasC4 to true, as the rg_give_item does.

Parameters
  • index Client index
  • pszName Item classname
  • type Look at the enums with name GiveType
  • uid Sets a unique index for the entity
Returns

Index of entity if successfull, -1 otherwise

Назад
Верх