AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Solved] Help, buyzone unlock all the maps, no time limit. (https://forums.alliedmods.net/showthread.php?t=140491)

@-<Ruedas>-@ 10-12-2010 22:52

[Solved] Help, buyzone unlock all the maps, no time limit.
 
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
      }
  }
}


@-<Ruedas>-@ 10-13-2010 13:56

Re: Help, buyzone unlock all the maps, no time limit.
 
someone who has an idea how to do this.
Sorry for my bad English.

lucas_7_94 10-13-2010 14:23

Re: Help, buyzone unlock all the maps, no time limit.
 
stop bump.. , you can search.

@-<Ruedas>-@ 10-13-2010 14:28

Re: Help, buyzone unlock all the maps, no time limit.
 
Quote:

Originally Posted by lucas_7_94 (Post 1323970)
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.

lucas_7_94 10-13-2010 14:43

Re: Help, buyzone unlock all the maps, no time limit.
 
Quote:

Originally Posted by @-<Ruedas>-@ (Post 1323976)
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 :(

Bugsy 10-13-2010 19:26

Re: Help, buyzone unlock all the maps, no time limit.
 
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

@-<Ruedas>-@ 10-13-2010 20:09

Re: Help, buyzone unlock all the maps, no time limit.
 
Quote:

Originally Posted by Bugsy (Post 1324169)
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.

g_often 10-16-2010 16:52

Re: Help, buyzone unlock all the maps, no time limit.
 
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 )
    }



@-<Ruedas>-@ 10-20-2010 02:17

Re: Help, buyzone unlock all the maps, no time limit.
 
Quote:

Originally Posted by g_often (Post 1326796)
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.


All times are GMT -4. The time now is 10:24.

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