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