Raised This Month: $ Target: $400
 0% 

[SNIPPET][CSGO] Safely remove weapons without crashes


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Indarello
Senior Member
Join Date: Nov 2015
Location: Russia
Old 10-04-2016 , 01:40   Re: [SNIPPET][CSGO] Safely remove weapons without crashes
Reply With Quote #4

Quote:
Originally Posted by Bacardi View Post
wou, when this have came up ?
HasEntProp
Latest unstable, development build have it
http://www.sourcemod.net/downloads.p...h=master&all=1
Code:
stock bool HasEntProp(int entity, PropType type, const char[] prop)
{
	if (type == Prop_Data) {
		return (FindDataMapInfo(entity, prop) != -1);
	}

	if (type != Prop_Send) {
		return false;
	}

	char cls[64];
	if (!GetEntityNetClass(entity, cls, sizeof(cls))) {
		return false;
	}

	return (FindSendPropInfo(cls, prop) != -1);
}
Indarello 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 18:56.


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