Raised This Month: $ Target: $400
 0% 

Creating entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 12-28-2009 , 21:19   Creating entity
Reply With Quote #1

I'm trying to create an entity.. I copy this from No Team Buy:
PHP Code:
new ENT_CLASS create_entity("info_map_parameter")

plugin_precache() {
        
ENT_CLASS create_entity("info_map_parameter")
        
DispatchKeyValue("info_map_parameter""buying""3")
        
DispatchSpawn(ENT_CLASS)


But didn't works.. I'm trying that the players can't buy anything .. The problem is this because if i put this:
PHP Code:
        remove_entity("armoury_entity")
        
        
ENT_CLASS create_entity("info_map_parameter")
        
DispatchKeyValue("info_map_parameter""buying""3")
        
DispatchSpawn(ENT_CLASS
The weapons in the floor (like fy_iceworld) dissapear. But if i put this:
PHP Code:
        ENT_CLASS create_entity("info_map_parameter")
         
DispatchKeyValue("info_map_parameter""buying""3")
         
DispatchSpawn(ENT_CLASS)

        
remove_entity("armoury_entity"
The weapons didn't dissapear! In some way the stuff stops the plugin.

Help, i ask for help many times but my thread allways have 1 post (mine)

I help when i can help...

Thanks
Mxnn 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 04:14.


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