AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Weird scripting question. (https://forums.alliedmods.net/showthread.php?t=168621)

Evaldas.Grigas 10-01-2011 16:37

Weird scripting question.
 
Mhm. Is it possible to check map size in a code and block a menu?

.Dare Devil. 10-01-2011 17:03

Re: Weird scripting question.
 
Quote:

Originally Posted by Evaldas.Grigas (Post 1566698)
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?

Evaldas.Grigas 10-02-2011 03:39

Re: Weird scripting question.
 
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" )



fysiks 10-02-2011 04:10

Re: Weird scripting question.
 
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.

Evaldas.Grigas 10-02-2011 07:24

Re: Weird scripting question.
 
Oh right! I don't need it I just had a question. :D
Thanks for answers.


All times are GMT -4. The time now is 19:42.

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