Jump to content

Get nextmap name ?


novo

Recommended Posts

Posted

Hi all.

I want know the syntax to get the nextmap name.

I have race on random. So i want know wich will be the nextmap.

Please help me :)

Thanks ! <3

Posted

Well that's what random means.. you don't know the name of the map

When the current race ends, it will calculate the random map (based on stuff like least played or most played) and it will start it

So you can't know which one is the next one because the server only knows this right when the current map ends (If I'm not mistaken)

However, you can recreate a random nextmap "setter" from scratch that will simply calculate it sooner and this will do what you need, but it will require a lot of work

Posted

No, it knows what map will be the next, visit some race servers dude...

But I don't know the way, you can always create an exported function from the Race resource.

Posted

Nope, default race doesn't know which maps comes next. Like BinSlayer posted (he should know, he's managing one), when a map ends race checks the setting 'random maps' and either starts a vote or finds a new random map. Maybe the servers you are talking about changed there version.

So novo, if you want to get the nextmap name during a currently running map, you should create a script that already selects a next map when a new map starts. Store it in some variable and you can do with it whatever you want.

Posted
Uhm.. Anyways, thank you all.

If anybody knows the way to know nextmap name, please tell me.

Bye.

You will 99% not be given anything ready from scratch as people don't work for free (usually) .

You've been given ideas as to how to do this and we'll only help when you got some coding already going and it's failing.

Good luck

Posted

I will try to make some code and i'll send to you with a PM. I don't want to make public a script that costs money.

Thank you BinSlayer1.

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...