Raised This Month: $ Target: $400
 0% 

Getting a weapons ent index


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
wgooch
Member
Join Date: Dec 2008
Old 05-02-2009 , 18:53   Getting a weapons ent index
Reply With Quote #1

I'm trying to write a plugin for sourcemod that allows you to equip a weapon to a player and remove weapons from players using RemovePlayerItem and EquipPlayerWeapon, I need to know how to create the weapon entity then get it's index so that it may be equiped to the player, and I need some sort of way to get the index of the weapon that I want to remove from the player. I'm guessing I can do something like that by using GetPlayerWeaponSlot, but I don't know what slot each weapon shows up in.
wgooch is offline
 



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 21:28.


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