Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
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>-@
@-<Ruedas>-@
Senior Member
Join Date: May 2010
Location: Venezuela
Old 10-13-2010 , 13:56   Re: Help, buyzone unlock all the maps, no time limit.
Reply With Quote #2

someone who has an idea how to do this.
Sorry for my bad English.
__________________
@-<Ruedas>-@ is offline
Send a message via MSN to @-<Ruedas>-@
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 10-13-2010 , 14:23   Re: Help, buyzone unlock all the maps, no time limit.
Reply With Quote #3

stop bump.. , you can search.
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
@-<Ruedas>-@
Senior Member
Join Date: May 2010
Location: Venezuela
Old 10-13-2010 , 14:28   Re: Help, buyzone unlock all the maps, no time limit.
Reply With Quote #4

Quote:
Originally Posted by lucas_7_94 View Post
stop bump.. , you can search.
lucas_7_94, and look, but more sercanos I found was this.
https://forums.alliedmods.net/showthread.php?p=358059
but not working as it should.
__________________
@-<Ruedas>-@ is offline
Send a message via MSN to @-<Ruedas>-@
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 10-13-2010 , 14:43   Re: Help, buyzone unlock all the maps, no time limit.
Reply With Quote #5

Quote:
Originally Posted by @-<Ruedas>-@ View Post
lucas_7_94, and look, but more sercanos I found was this.
https://forums.alliedmods.net/showthread.php?p=358059
but not working as it should.
please doesn't use google translator , sucks
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-13-2010 , 19:26   Re: Help, buyzone unlock all the maps, no time limit.
Reply With Quote #6

The plugin by VEN does exactly what you want. I tested it and it works perfectly.

Set cvar bz_range to 2

https://forums.alliedmods.net/showthread.php?p=358059
__________________
Bugsy is offline
@-<Ruedas>-@
Senior Member
Join Date: May 2010
Location: Venezuela
Old 10-13-2010 , 20:09   Re: Help, buyzone unlock all the maps, no time limit.
Reply With Quote #7

Quote:
Originally Posted by Bugsy View Post
The plugin by VEN does exactly what you want. I tested it and it works perfectly.

Set cvar bz_range to 2

https://forums.alliedmods.net/showthread.php?p=358059
thanks for answering, but the plugins I've used. When you finish a predetermined time period set by the mp_buytime or can not perform more arms purchases, by this limitation. how could I synchronize the time set by mp_buytime to be equal to the time the map.

when you press the key b to make the purchase, I get the following message in console, using the plugins.

Quote:
Unknown command: client_buy_open
Unknown command: client_buy_close
Sorry for my bad English.
__________________
@-<Ruedas>-@ is offline
Send a message via MSN to @-<Ruedas>-@
g_often
Senior Member
Join Date: Jan 2010
Location: In your mind
Old 10-16-2010 , 16:52   Re: Help, buyzone unlock all the maps, no time limit.
Reply With Quote #8

try this to unlock the buyzone, i make that yesterday u.u

PHP Code:
#include <amxmodx>
#include <engine>

public plugin_precache()
{
    new 
iEnt create_entity"info_map_parameters" );
    
    if( !
iEnt )
    {
        
DispatchSpawniEnt )
    }

__________________
Reality is wrong, dreams are for real.
g_often is offline
@-<Ruedas>-@
Senior Member
Join Date: May 2010
Location: Venezuela
Old 10-20-2010 , 02:17   Re: Help, buyzone unlock all the maps, no time limit.
Reply With Quote #9

Quote:
Originally Posted by g_often View Post
try this to unlock the buyzone, i make that yesterday u.u

PHP Code:
#include <amxmodx>
#include <engine>

public plugin_precache()
{
    new 
iEnt create_entity"info_map_parameters" );
    
    if( !
iEnt )
    {
        
DispatchSpawniEnt )
    }

g_often, Sorry, but your method does not work, thanks anyway, and resolve to achieve otherwise.
Anyway thanks for trying.
__________________
@-<Ruedas>-@ is offline
Send a message via MSN to @-<Ruedas>-@
Reply



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