Raised This Month: $51 Target: $400
 12% 

[L4D2 & L4D] Hunter Training Map Multiplayer Enabler


Post New Thread Reply   
 
Thread Tools Display Modes
eyeonus
Member
Join Date: Jul 2009
Old 05-15-2010 , 11:32   Re: [L4D2 & L4D] Hunter Training Map Multiplayer Enabler
Reply With Quote #11

You downloaded it from here? It's not a .rar file. You just put it in your plugin folder.
eyeonus is offline
eyeonus
Member
Join Date: Jul 2009
Old 05-28-2010 , 18:07   Re: [L4D2 & L4D] Hunter Training Map Multiplayer Enabler
Reply With Quote #12

I wonder if this will ever be approved....
eyeonus is offline
DarkNoghri
Member
Join Date: Mar 2009
Old 05-31-2010 , 17:36   Re: [L4D2 & L4D] Hunter Training Map Multiplayer Enabler
Reply With Quote #13

Eyeonus, there's a sticky at the top of the forum that talks about when they do approvals.

"On the last Sunday of every month, plugins with a thread start date of over 60 days will either be approved or unapproved."

Based on that, you won't get approved until the end of June.
DarkNoghri is offline
eyeonus
Member
Join Date: Jul 2009
Old 06-22-2010 , 00:25   Re: [L4D2 & L4D] Hunter Training Map Multiplayer Enabler
Reply With Quote #14

Ah. No worries.
eyeonus is offline
eyeonus
Member
Join Date: Jul 2009
Old 08-06-2010 , 18:47   Re: [L4D2 & L4D] Hunter Training Map Multiplayer Enabler
Reply With Quote #15

Over 1300 downloads and still no approval....
eyeonus is offline
McFlurry
Veteran Member
Join Date: Mar 2010
Location: RemoveEdict(0);
Old 08-21-2010 , 19:16   Re: [L4D2 & L4D] Hunter Training Map Multiplayer Enabler
Reply With Quote #16

You are returning Plugin_Handled if a user uses anything but "give health" so that makes it so any other plugin can not use the give command. I suggest unrestricting it.
__________________
McFlurry is offline
Send a message via Skype™ to McFlurry
eyeonus
Member
Join Date: Jul 2009
Old 08-22-2010 , 17:12   Re: [L4D2 & L4D] Hunter Training Map Multiplayer Enabler
Reply With Quote #17

Is there a way to restrict it that will still make it possible for other plugins to use it?
eyeonus is offline
McFlurry
Veteran Member
Join Date: Mar 2010
Location: RemoveEdict(0);
Old 08-22-2010 , 18:46   Re: [L4D2 & L4D] Hunter Training Map Multiplayer Enabler
Reply With Quote #18

Register the give command on OnMapStart() if it is one of the hunter training maps only.
__________________
McFlurry is offline
Send a message via Skype™ to McFlurry
eyeonus
Member
Join Date: Jul 2009
Old 08-22-2010 , 19:04   Re: [L4D2 & L4D] Hunter Training Map Multiplayer Enabler
Reply With Quote #19

Quote:
Originally Posted by McFlurry View Post
Register the give command on OnMapStart() if it is one of the hunter training maps only.
I don't know how to get the plugin to find out which map is loaded, so instead I added a check to determine if the plugin is enabled or not, and to not restrict the commands unless it is enabled.

Since the plugin is automatically enabled when either HTM map loads, as long as the line "l4d2_htm_mp_enable 0" is in the server.cfg the plugin will only be enabled when an HTM map is loaded, unless the server's admin enables it manually.
eyeonus is offline
McFlurry
Veteran Member
Join Date: Mar 2010
Location: RemoveEdict(0);
Old 08-22-2010 , 20:35   Re: [L4D2 & L4D] Hunter Training Map Multiplayer Enabler
Reply With Quote #20

PHP Code:
public OnMapStart()
new 
String:map[30];
GetCurrentMap(mapsizeof(map));
if(
StrEqual(map"htmname"false) || StrEqual(map"htmname2"false) || StrEqual(map"htmname3"false))
{
    
//register the command here

That should fix the issue.
__________________
McFlurry is offline
Send a message via Skype™ to McFlurry
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 00:56.


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