AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Turn off VIP menu on AWP maps (https://forums.alliedmods.net/showthread.php?t=223520)

Gamperis 08-14-2013 15:06

Turn off VIP menu on AWP maps
 
Hello everyone. I need to turn off VIP menu on my VIP plugin but i don't know how to do it. Anything can tell me how to do it? :)

naven 08-14-2013 15:34

Re: Turn off VIP menu on AWP maps
 
Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "naven"


public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
       
        // Add your code here...
}
public a_function()
{
        new szMapname[64];
        get_mapname(szMapname, 63)
        if(containi(szMapname, "awp"))//I think that returns -1 on success so you want to add your code after else{
        {
               
        }
        else
        {
               
        }
}


Gamperis 08-14-2013 15:47

Re: Turn off VIP menu on AWP maps
 
Quote:

Originally Posted by naven (Post 2013083)
Code:

to add your code

What code? Sorry i am bad scripter, so, can you full make this plugin that this works? My VIP plugin name is VIP.amxx

naven 08-14-2013 15:56

Re: Turn off VIP menu on AWP maps
 
As one person told me some time ago:
"If you are writing in this section you are willing to learn"
If you are not, post in requests section. We do not make plugins here, we help make them.

Gamperis 08-14-2013 16:04

Re: Turn off VIP menu on AWP maps
 
Quote:

Originally Posted by naven (Post 2013107)
As one person told me some time ago:
"If you are writing in this section you are willing to learn"
If you are not, post in requests section. We do not make plugins here, we help make them.

Okay. What code where must add?

Kellan123 08-14-2013 16:58

Re: Turn off VIP menu on AWP maps
 
Mby you like this
http://www.upload.ee/files/3513649/p...india.ini.html

akcaliberg 08-14-2013 17:10

Re: Turn off VIP menu on AWP maps
 
at the top of plugin_init();

check if map name contains "awp". If so return PLUGIN_CONTINUE.

If you don't know how to do this. You should learn basics first.

mottzi 08-14-2013 18:29

Re: Turn off VIP menu on AWP maps
 
You'd rather call pause() instead of returning PLUGIN_CONTINUE

Gamperis 08-15-2013 11:28

Re: Turn off VIP menu on AWP maps
 
Thanks all, but i found it. :)

PHP Code:

menu_active 0 



All times are GMT -4. The time now is 16:00.

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