Jump to content

Start a map instantly on game load through script.


Recommended Posts

Posted

I need to have a map started right on script load from CDM, it doesn't work when I add the map config, I even tried to script it with changeGamemodeMap ( cdm_ls ) and it didn't work. What am I doing wrong? Heres the meta for both:

CDM.zip - the source of the game mode

<meta> 
    <info author="Black Dragon" version="1.0" type="gamemode" name="Classic Death Match"/> 
    <script src="cdm.lua" /> 
    <script src="cdm_client.lua" type="client" /> 
    <config src="help.xml" type="client" /> 
</meta> 

CDM_LS.zip - the map it SHOULD load on game mode start

<meta> 
    <info author="Black Dragon" version="1.0" type="map" description="Los Santos CDM" gamemodes="cdm"/> 
    <map src="cdm_ls.map" /> 
    <script src="cdm_ls.lua" /> 
</meta> 

It doesn't load the map with these, I tried making it include the resource and everything, and it doesn't work. And I tried changeGamemodeMap ( cdm_ls ) on resource start, nothing. When I load CDM I want it to automatically start the map and it will not start the map at all. I tried loading both resources through admin menu but it will not work at all.

The ONLY way I can get it to work, is using the votemanager script but I do not want the votemanager script to be able to change the mode. Any help to get the map to load correctly on resource load would be really appreciated.

  • Recently Browsing   0 members

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