Hello, i am trying to hook players weapons slots in Black-Mesa Source.
PHP Code:
...
for (new slot = 0; slot <= 5; slot++)
{
new ent = GetPlayerWeaponSlot(client, slot);
if (ent != -1)
{
new String:EdictName[128];
GetEdictClassname(ent, EdictName, sizeof(EdictName));
PrintToChat(client, "Slot: %i --> Weapon: %s", slot, EdictName );
}
}
...
Unfortunately in "BM" there are several weapons in one slot.
Any Ideas?
Thanks in advance
__________________