Raised This Month: $ Target: $400
 0% 

disable buymenu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
whosyourdaddy
Senior Member
Join Date: Apr 2008
Old 08-07-2008 , 14:52   disable buymenu
Reply With Quote #1

is there a way i can disable buy menu only from a specific map?
whosyourdaddy is offline
scrtxxcaz
Senior Member
Join Date: Feb 2007
Location: a place u cant find
Old 08-08-2008 , 10:47   Re: disable buymenu
Reply With Quote #2

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
          
}       
     }

__________________
Please leave your name when giving me any karma

Counter Strike Freeze Tag
Status: Testing.... (bugs)

Revised Registration
Status: In Progress

Last edited by scrtxxcaz; 08-08-2008 at 11:30.
scrtxxcaz is offline
Send a message via AIM to scrtxxcaz
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 05:29.


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