Raised This Month: $74 Target: $400
 18% 

Creating .ini for mapchange plugin.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 06-01-2020 , 21:31   Creating .ini for mapchange plugin.
Reply With Quote #1

Hey, so I want to make simple mapchange plugin that will change current map when server has less than 15 players. I want to make .ini file where I can add maps that would be cycled.

Can anyone explain this to me?
supertrio17 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-01-2020 , 23:32   Re: Creating .ini for mapchange plugin.
Reply With Quote #2

Explain what? Read the file like you read any other file. Without more details on what you actually want from us, that's about what you get.
__________________

Last edited by fysiks; 06-01-2020 at 23:34.
fysiks is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-02-2020 , 07:32   Re: Creating .ini for mapchange plugin.
Reply With Quote #3

You can just change the "mapcyclefile" cvar and set the new file there. The rest will happen automatically.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 06-02-2020 , 08:50   Re: Creating .ini for mapchange plugin.
Reply With Quote #4

Quote:
Originally Posted by fysiks View Post
Explain what? Read the file like you read any other file. Without more details on what you actually want from us, that's about what you get.
Well, I wanted someone to explain me the whole concept of creating ini files, not like step by step, but I don't quite understand it.
supertrio17 is offline
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 06-02-2020 , 08:52   Re: Creating .ini for mapchange plugin.
Reply With Quote #5

Quote:
Originally Posted by OciXCrom View Post
You can just change the "mapcyclefile" cvar and set the new file there. The rest will happen automatically.
And how do I do that, I can't find any function or anything that can change mapcycle.
supertrio17 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-02-2020 , 09:57   Re: Creating .ini for mapchange plugin.
Reply With Quote #6

Code:
set_cvar_string("mapcyclefile", "your_file_here.txt")
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-02-2020 , 23:53   Re: Creating .ini for mapchange plugin.
Reply With Quote #7

Quote:
Originally Posted by supertrio17 View Post
Well, I wanted someone to explain me the whole concept of creating ini files, not like step by step, but I don't quite understand it.
There are hundreds of plugins that read and write to files and also tutorials. Look at those if you want to learn. If you run into issues, post your code and we'll help you out.
__________________

Last edited by fysiks; 06-02-2020 at 23:53.
fysiks is offline
Reply


Thread Tools
Display Modes

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 20:05.


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