[CS:GO] Change players knife without creating a new entity
Warning: Valve does not want you changing weapons into an economy item (this means changing to any of the cool knives.)
Read this post before venturing further into the tutorial! Well, now that you're not supposed to use plugins that change your weapons to be something from the economy I'll go ahead and show you how to change your weapons to be something from the economy.. without creating a new entity! Whatever you do don't use this tutorial to change your weapons to be something from the economy. May your !knife server crashes be a thing of the past (which should be a thing of the past anyway since you're not running those plugins anymore, right?) Note this is not complete code and is merely used to demonstrate how you can gracefully change a weapon based on its item definition index. Obviously it's not limited to knives only. Try turning your AK into a knife! PHP Code:
|
Re: [CS:GO] Change players knife without creating a new entity
You may want to change this to a PreHook, Otherwise Falchion and Butterfly will have bugged animations.
It took me a while to figure out that it was just a simple change to prehook. Edit: (Its really as simple as this and you will get perfect results everytime without glitches) PHP Code:
|
Re: [CS:GO] Change players knife without creating a new entity
If I use this on my mod my server will get banned?
|
Re: [CS:GO] Change players knife without creating a new entity
Quote:
|
Re: [CS:GO] Change players knife without creating a new entity
I built an API for this before GSLT came in...
https://forums.alliedmods.net/showthread.php?p=2307658 |
| All times are GMT -4. The time now is 18:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.