[SNIPPET][CSGO] Safely remove weapons without crashes
Hello guys, based on some research from Bacardi I have created a stock which will safely remove clients weapons without crashes, this is better than RemovePlayerItem and from current testing my servers have not crashed once yet.
So instead of doing: PHP Code:
PHP Code:
PHP Code:
|
Re: [SNIPPET][CSGO] Safely remove weapons without crashes
sick!! trying this out later on
|
Re: [SNIPPET][CSGO] Safely remove weapons without crashes
wou, when this have came up ? :)
HasEntProp |
Re: [SNIPPET][CSGO] Safely remove weapons without crashes
Quote:
http://www.sourcemod.net/downloads.p...h=master&all=1 Code:
stock bool HasEntProp(int entity, PropType type, const char[] prop) |
Re: [SNIPPET][CSGO] Safely remove weapons without crashes
I still have crashes
here is Bacardi's code:
Spoiler
I try to apply command
Spoiler
But still crash, and i realy dont understand his code, because he first remove glock then equip knife that already exist on player
Spoiler
And this code also crash server like Bacari's But if we change EquipPlayerWeapon(client, glock); = No crash But:
Spoiler
= No crush Now I realy dont understand nothing |
Re: [SNIPPET][CSGO] Safely remove weapons without crashes
Quote:
|
Re: [SNIPPET][CSGO] Safely remove weapons without crashes
Just calling AcceptEntityInput with "Kill" has worked for donkies years without side effects.
Why does this need to be so complex? |
Re: [SNIPPET][CSGO] Safely remove weapons without crashes
Quote:
Take a look at these examples. First include CSGOItems. Download here: https://bitbucket.org/SM91337/csgo-items/overview PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
:) |
Re: [SNIPPET][CSGO] Safely remove weapons without crashes
Quote:
Quote:
PHP Code:
|
Re: [SNIPPET][CSGO] Safely remove weapons without crashes
Quote:
Code:
#include <sdkhooks> |
| All times are GMT -4. The time now is 18:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.