Raised This Month: $ Target: $400
 0% 

Weird scripting question.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 10-01-2011 , 16:37   Weird scripting question.
Reply With Quote #1

Mhm. Is it possible to check map size in a code and block a menu?
Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 10-01-2011 , 17:03   Re: Weird scripting question.
Reply With Quote #2

Quote:
Originally Posted by Evaldas.Grigas View Post
Mhm. Is it possible to check map size in a code and block a menu?
Weird, yes right.

What map size, in MB / KB?

block what menu?
.Dare Devil. is offline
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 10-02-2011 , 03:39   Re: Weird scripting question.
Reply With Quote #3

Mhm I don't know I thing better would be in KB.
Here is the code:
PHP Code:
public Showrod(id) {
    
set_task(10.0"CancelMenu"id);
    
    new 
mapname32 ];
    
get_mapnamemapnamecharsmax(mapname) );

    if ( 
equali(mapname"awp_india") || equali(mapname"awp_dust") || equali(mapname"cs_deagle5") )
             return;

    
show_menu (idKeysrod"Choose VIP guns:^n\w1. Get M4A1 and Deagle ^n\w2. Get AK47 and Deagle ^n3. Get Galil and Deagle ^n0. Exit^n"10"rod" )

Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-02-2011 , 04:10   Re: Weird scripting question.
Reply With Quote #4

Just use map specific plugin files to disable the plugin on maps that you don't want it to run on OR to only enable it on maps that you do want it to run on.
__________________
fysiks is offline
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 10-02-2011 , 07:24   Re: Weird scripting question.
Reply With Quote #5

Oh right! I don't need it I just had a question.
Thanks for answers.
Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
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 19:42.


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