Raised This Month: $ Target: $400
 0% 

Turn off VIP menu on AWP maps


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gamperis
BANNED
Join Date: Aug 2013
Old 08-14-2013 , 15:06   Turn off VIP menu on AWP maps
Reply With Quote #1

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?
Gamperis is offline
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 08-14-2013 , 15:34   Re: Turn off VIP menu on AWP maps
Reply With Quote #2

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
	{
		
	}
}
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
Gamperis
BANNED
Join Date: Aug 2013
Old 08-14-2013 , 15:47   Re: Turn off VIP menu on AWP maps
Reply With Quote #3

Quote:
Originally Posted by naven View Post
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
Gamperis is offline
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 08-14-2013 , 15:56   Re: Turn off VIP menu on AWP maps
Reply With Quote #4

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.
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
Gamperis
BANNED
Join Date: Aug 2013
Old 08-14-2013 , 16:04   Re: Turn off VIP menu on AWP maps
Reply With Quote #5

Quote:
Originally Posted by naven View Post
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?
Gamperis is offline
Kellan123
AlliedModders Donor
Join Date: Aug 2012
Old 08-14-2013 , 16:58   Re: Turn off VIP menu on AWP maps
Reply With Quote #6

Mby you like this
http://www.upload.ee/files/3513649/p...india.ini.html
Kellan123 is offline
akcaliberg
Senior Member
Join Date: Nov 2011
Location: Istanbul
Old 08-14-2013 , 17:10   Re: Turn off VIP menu on AWP maps
Reply With Quote #7

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.
akcaliberg is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 08-14-2013 , 18:29   Re: Turn off VIP menu on AWP maps
Reply With Quote #8

You'd rather call pause() instead of returning PLUGIN_CONTINUE
mottzi is offline
Send a message via MSN to mottzi
Gamperis
BANNED
Join Date: Aug 2013
Old 08-15-2013 , 11:28   Re: Turn off VIP menu on AWP maps
Reply With Quote #9

Thanks all, but i found it.

PHP Code:
menu_active 0 

Last edited by Gamperis; 08-15-2013 at 13:48.
Gamperis is offline
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 16:00.


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