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

How do I lock l4d2 server to one campaign only


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
technut74
Junior Member
Join Date: Apr 2013
Old 11-23-2014 , 19:39   How do I lock l4d2 server to one campaign only
Reply With Quote #1

I would like to lock my l4d2 server to one map only. Helms deep is the only campaign I would like to have running on my server. Is there a way to have the server advertise helms deep only and not the default campaigns?
__________________
Cold Blooded Zombie Killers
http://steamcommunity.com/groups/CBZK



technut74 is offline
RU_6uK
SourceMod Donor
Join Date: May 2010
Old 11-26-2014 , 18:39   Re: How do I lock l4d2 server to one campaign only
Reply With Quote #2

PHP Code:
public OnMapStart()
{
    
decl String:sCurrentMap[24];
    
GetCurrentMap(sCurrentMapsizeof(sCurrentMap));

    
// If map is not Helms Deep
    
if(!StrEqual(sCurrentMap"map_name_goes_here"false))
    {
        
ServerCommand("changelevel map_name_goes_here");
    }


Last edited by RU_6uK; 12-03-2014 at 11:55.
RU_6uK 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 02:37.


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