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

Solved [L4D2] Block Map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zaviier
Senior Member
Join Date: Aug 2017
Location: Indonesia
Old 08-25-2022 , 10:51   [L4D2] Block Map
Reply With Quote #1

is there any plugin for block map for play on the server?
i'm hosted server with only Tank Challenge map, so everytime people play on my server sometimes they forced it by mm_dedicated_force_server or something to play in different map. i want force it to change map to Tank Challenge.

like, when someone use my server and the map is "Dark Carnival", automaticaly change the map to Tank Challenge.

is that possible?

Last edited by zaviier; 08-28-2022 at 21:32.
zaviier is offline
L4D2Noob
AlliedModders Donor
Join Date: Mar 2020
Location: Moscow
Old 08-25-2022 , 11:18   Re: Block Map
Reply With Quote #2

God, edit some Auto Change Map plugin for your needs, and that's it.
__________________
L4D2Noob is offline
Send a message via ICQ to L4D2Noob Send a message via Skype™ to L4D2Noob
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 08-25-2022 , 15:30   Re: Block Map
Reply With Quote #3

...now I have seen new meaning of lobby+reservation cookie thing in srcds

Don't know, could we trick this system
Bacardi is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 08-25-2022 , 16:49   Re: Block Map
Reply With Quote #4

you can make a plugin that checks the map "OnMapStart" and if is not the one you want, use the changelevel command.
__________________
Marttt is offline
L4D2Noob
AlliedModders Donor
Join Date: Mar 2020
Location: Moscow
Old 08-26-2022 , 01:27   Re: [L4D2] Block Map
Reply With Quote #5

Quote:
Originally Posted by Marttt View Post
I made a beta plugin (only works in dedicated servers).
The plugin works, and the map changes to the one in the list.
But, if the map is changed during the game, then all players will be kicked out of the server.
__________________
L4D2Noob is offline
Send a message via ICQ to L4D2Noob Send a message via Skype™ to L4D2Noob
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 08-27-2022 , 20:45   Re: [L4D2] Block Map
Reply With Quote #6

Plugin released: [L4D1 & L4D2] Whitelist Map Changer
__________________

Last edited by Marttt; 08-28-2022 at 18:58.
Marttt is offline
zaviier
Senior Member
Join Date: Aug 2017
Location: Indonesia
Old 08-28-2022 , 02:50   Re: [L4D2] Block Map
Reply With Quote #7

Quote:
Originally Posted by Marttt View Post
Took some extra work, but I think now its working fine.

Code:
1.0.1 (27-August-2022)
    - Fixed clients being kicked on mid-game map changes. (thanks "L4D2Noob" for reporting)
    - Faster and safer checks to change maps.
waiting zaviier test before publishing in the plugin area

put l4d_whitelist_maps.cfg int the data folder
and the plugin in plugins folder.
hello, sorry for late..
tested and work perfect for me, you will get instantly to map Tank Challenge.
I try change campaign to Hard Rain, when loading finish it's not Hard Rain but Tank Challenge

this is good for me, thank you so much. appreciate your work man
zaviier 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 09:17.


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