GetPlayerWeaponSlot Function

Returns the weapon in a player's slot.

int GetPlayerWeaponSlot(int client, int slot)

Parameters

int client

Client index.

int slot

Slot index (mod specific).

Return Value

Entity index on success, -1 if no weapon existed.

Errors

Invalid client or client not in game, or lack of mod support.