plugin conversion

Please post any questions about developing your plugin here. Please use the search function before posting!
Jerome69
Member
Posts: 82
Joined: Wed Sep 23, 2015 3:20 pm

Postby Jerome69 » Tue Nov 03, 2015 4:48 pm

I would like to add the possibility to change map to the next map in the "mapcycle.txt".

I must know which is the current map. I find this page, but I don't know how to use it.

I tried :

Syntax: Select all

currentmap = engine_server.server_command('map_name')
SayText2(message='Current map : {0}'.format(currentmap)).send()

But it doesn't work. It shows me "Current map : None" in the chat

How I can do it please?
User avatar
satoon101
Project Leader
Posts: 2703
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Tue Nov 03, 2015 4:52 pm

Syntax: Select all

from engines.server import global_vars

print(global_vars.map_name)
Image
Jerome69
Member
Posts: 82
Joined: Wed Sep 23, 2015 3:20 pm

Postby Jerome69 » Tue Nov 03, 2015 4:56 pm

So strong.... :) Thanks

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 80 guests