Raised This Month: $ Target: $400
 0% 

[Solved] Help, buyzone unlock all the maps, no time limit.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
@-<Ruedas>-@
Senior Member
Join Date: May 2010
Location: Venezuela
Old 10-12-2010 , 22:52   [Solved] Help, buyzone unlock all the maps, no time limit.
Reply With Quote #1

how to unlock the buyzone on all maps to be purchased freely in any place without time limits.

afford to buy normal weapons anywhere in the map, by pressing the B in no time limits.

Sorry for my bad English.

[Solved]
Code:
#include <amxmodx>
#include <engine>

new g_Ent

public plugin_init()
    unlockzone()

public unlockzone(){
   new buyzone = -1
   new Float:absmin[3] = {-8191.0, -8191.0, -8191.0}
   new Float:absmax[3] = {8191.0, 8191.0, 8191.0}

   if ((buyzone = find_ent_by_class(buyzone, "func_buyzone")))
      entity_set_size(buyzone, absmin, absmax)
   else{
      buyzone = create_entity("func_buyzone")
      DispatchSpawn(buyzone)
      entity_set_size(buyzone, absmin, absmax)
   }
}

public plugin_precache(){
   g_Ent = create_entity("info_map_parameters")
   DispatchSpawn(g_Ent)
   DispatchKeyValue(g_Ent,"buying","0")
   DispatchKeyValue(g_Ent, "bombradius", "500")
   entity_set_int(g_Ent, EV_INT_iuser1, 1)
}

public pfn_keyvalue(entid){
   new classname[32], key[32], value[32]
   copy_keyvalue(classname, 31, key, 31, value, 31)

   if (equal(classname,"func_buyzone") && is_valid_ent(entid))
      remove_entity(entid) 

   if(is_valid_ent(entid) && equal(classname,"info_map_parameters") && entity_get_int(entid,EV_INT_iuser1)!=1){  
      DispatchKeyValue(entid,"buying","0")
      if (g_Ent){
         remove_entity(g_Ent)
         g_Ent = 0
      }
   }
}
__________________

Last edited by @-<Ruedas>-@; 10-20-2010 at 02:20. Reason: add information
@-<Ruedas>-@ is offline
Send a message via MSN to @-<Ruedas>-@
 



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 10:24.


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