Raised This Month: $51 Target: $400
 12% 

[BM] Weapon Slot in Black-Mesa Source


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HSFighter
Veteran Member
Join Date: Aug 2007
Location: Flensburg - Germany
Old 11-05-2022 , 20:06   [BM] Weapon Slot in Black-Mesa Source
Reply With Quote #1

Hello, i am trying to hook players weapons slots in Black-Mesa Source.

PHP Code:
...
for (new 
slot 0slot <= 5slot++)
{    
   new 
ent GetPlayerWeaponSlot(clientslot);
   if (
ent != -1)
   {            
      new 
String:EdictName[128];
      
GetEdictClassname(entEdictNamesizeof(EdictName));

      
PrintToChat(client"Slot: %i --> Weapon: %s"slotEdictName );
   }
}
... 
Unfortunately in "BM" there are several weapons in one slot.

Any Ideas?

Thanks in advance
__________________



Sorry for my very bad english
Greetings HSFighter

Last edited by HSFighter; 11-06-2022 at 05:58.
HSFighter is offline
Send a message via ICQ to HSFighter
Alienmario
Senior Member
Join Date: Aug 2013
Old 12-09-2022 , 13:28   Re: [BM] Weapon Slot in Black-Mesa Source
Reply With Quote #2

Use SMLib to get all weapons.
If you need the slots, you could always hardcode it.
Alienmario is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode