Jump to content

Exclude certain maps from the map cycle (but still, they can be bought/set as next).


koragg

Recommended Posts

So basically, I have a few maps which I don't want to see if I do /random or in votes. But I also want to have them so that people who like them can still buy them (or set, if admin).

I tried adding this in a lot of places inside the mapmanager resource but nothing worked (sometimes had errors, other times no errors but maps were still cycled as normal).

if (getMapName() == "Hell Choose Me") then
return
end

I'm not even sure if what I want is possible, asked a friend, he's got no idea. So I thought someone here can help. Found few old topics with similar content but there was no answer there or it didn't work.

Edited by koragg
Link to comment
1 hour ago, koragg said:

So basically, I have a few maps which I don't want to see if I do /random or in votes. But I also want to have them so that people who like them can still buy them (or set, if admin).

I tried adding this in a lot of places inside the mapmanager resource but nothing worked (sometimes had errors, other times no errors but maps were still cycled as normal).


if (getMapName() == "Hell Choose Me") then
return
end

I'm not even sure if what I want is possible, asked a friend, he's got no idea. So I thought someone here can help. Found few old topics with similar content but there was no answer there or it didn't work.

I don't know how you can achieve what you're to do, but yes, it's possible. I've seen it in some servers also there's an option in the admin panel by default in the 'maps' tab. You can set the map selected in the gridlist as the next map by using 'Set Next Map' button over there. You can take reference from there perhaps. :)

Link to comment
1 minute ago, koragg said:

@Gravestone I know I can set it from there xD I just gave it as example, map should not be in random cycle or votes, but should be setable from admin panel (or bought from my custom shop).

Yes, that's what I'm saying, take reference from there and add a system if the player has permission to set the next map. I'll try to look into the admin resource too.

Link to comment
1 hour ago, Gravestone said:

Yes, that's what I'm saying, take reference from there and add a system if the player has permission to set the next map. I'll try to look into the admin resource too.

Well, ok, will see. But the default permission is fine, just wanna exclude maps from the mapmanager (or mapcycler?).

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...