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

Custom Weapon Box Entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DavidJr
Senior Member
Join Date: Apr 2012
Old 02-06-2014 , 08:42   Custom Weapon Box Entity
Reply With Quote #1

Hi, I'm trying to make custom weaponbox when user drops his weapon but it seems it isn't registered as weaponbox. When round ends the custom weaponbox isn't removed, how to make it registered as the real weaponbox?

PHP Code:
        iEnt[id] = engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"weaponbox"));
        
entity_set_string(iEnt[id], EV_SZ_classname"weaponbox"); 
__________________
What are you looking for here?
DavidJr is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-07-2014 , 00:59   Re: Custom Weapon Box Entity
Reply With Quote #2

You can't.
On new round, dll is parsing an internal hashed stuff that has not taken in account entities created from amxx.
See this plugin : http://forums.alliedmods.net/showthread.php?p=761924

You need to call internal dll function AddEntityHashValue if you want to make your entity be taken in account with this system, you can access with orpheu.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 02-07-2014 at 01:01.
ConnorMcLeod 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 04:19.


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