AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   disable buymenu (https://forums.alliedmods.net/showthread.php?t=75540)

whosyourdaddy 08-07-2008 14:52

disable buymenu
 
is there a way i can disable buy menu only from a specific map?

scrtxxcaz 08-08-2008 10:47

Re: disable buymenu
 
You could use this http://forums.alliedmods.net/showthr...=Buyzone+Range and include the script below somewhere(may have to be altered a little)

PHP Code:

#define MAX_MAPS 6
new Maps[MAX_MAPS][] = {     //map names here.... used CS one's for an example
     
"cs_dust",
     
"de_office",
     
"de_dust2",
     
"awp_map",
     
"cs_assault"
}
public 
plugin_init() {
     
register_plugin(PLUGINVERSIONAUTHOR)
     
register_logevent("MapChange"2"0=World triggered""1=Round_Start");
}
public 
MapChange(id) {
     new 
map_name[32]
     
get_mapname(map_name,31)
     for(new 
0;i<MAX_MAPS;i++)
     {
          if(
equal(map_name,Maps[i])
          {
              
//do this
          
}       
     }




All times are GMT -4. The time now is 05:29.

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