Raised This Month: $32 Target: $400
 8% 

[CS:S] Weapon Tools


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 01-26-2012 , 13:05   [CS:S] Weapon Tools
Reply With Quote #1

Here is a somewhat useful include if you do lots of things with weapons. This was written for weapon restrict plugin originally. Also included is the weapon tracking code used in weapon restrict plugin. There is 0 documentation as of right now ill add some as I get time.

The weapon tracking include requires you to use sdkhooks along with the css_weapons.inc

Note:some features provided by css_weapons include may seem to be a duplicate of some natives. This was written before the natives were added and this also adds to the native (but still uses the natives). The WeaponId system goes in line with the one in cstrike.inc but adds a few extra weapons that do not have an id by default (defuser for example).

Usage:
Place the css_weapons.inc file in the include directory.
If you want to use the weapon tracking place the .sp in the same folder as the sp for your plugin.

Credits: ProdigySim for the original idea.

Example Incuding:

Without Tracking
Code:
#include <cstrike_weapons>
With Tracking
Code:
#include <sdkhooks>
#include <cstrike_weapons>
#include "weapon-tracking.sp"
Functions


Updated version can always be found here: https://bitbucket.org/Drifter321/wea...ke_weapons.inc
Attached Files
File Type: sp Get Plugin or Get Source (weapon-tracking.sp - 601 views - 2.5 KB)

Last edited by Dr!fter; 01-16-2014 at 13:52.
Dr!fter is offline
robin123
Junior Member
Join Date: Mar 2012
Old 03-14-2012 , 20:56   Re: [CS:S] Weapon Tools
Reply With Quote #2

Thanks for the share, and thanks to Prodigy too.
robin123 is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 10-05-2012 , 23:49   Re: [CS:S] Weapon Tools
Reply With Quote #3

Pretty old but is there any reason you did the order that way??

EDIT:
CSGO Support below



Edit:
Updated the CSGO Support stuff.
Attached Files
File Type: inc weaponsystem.inc (7.8 KB, 394 views)

Last edited by Doc-Holiday; 01-16-2014 at 13:01.
Doc-Holiday is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 12-31-2015 , 01:03   Re: [CS:S] Weapon Tools
Reply With Quote #4

What about fixes for last update in csgo?) Revolver shadow daggers..
ZASTRELIS is offline
Reply


Thread Tools
Display Modes

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 08:33.


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