Raised This Month: $ Target: $400
 0% 

Buy zone help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-09-2005 , 00:21  
Reply With Quote #5

There was a sample code of removing the buyzone entities from a map. I'll try to find it.

Edit: Here it is..
Code:
// Avalanche wrote this #include <amxmodx> #include <engine> public plugin_precache() {    disable_buyzone(); // disable buying    // do it in precache because it is done earlier than plugin_init, and it MIGHT matter } public disable_buyzone() {    // find that info entity    new ent = find_ent_by_class(-1,"info_map_parameters");    // if we couldn't find one, make our own    if(!ent) {       ent = create_entity("info_map_parameters");    }    // disable buying for both teams    DispatchKeyValue(ent,"buying","3");    DispatchSpawn(ent); }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x 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 16:45.


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