Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Change map
Re: Change map [message #437350 is a reply to message #437343] Sat, 02 October 2010 11:04 Go to previous messageGo to previous message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma:
General (1 Star)
halo2pac wrote on Sat, 02 October 2010 18:09

Omar007 wrote on Thu, 30 September 2010 14:01

IDK a way to do it within scripts at once but I do know a work around.

(pseudo-real)
char *actionMainSave;
cmd = strtok_s((char *)message, " ", &actionMainSave);
map = strtok_s(NULL, "\r\n", &actionMainSave);

if(strcmp(cmd, "!setnextmap") == 0)
{
	Console_Input(StrFormat("mlistc %d %s", The_Game()->MapNumber + 1, map).c_str());
	Console_Input(StrFormat("msg Next map changed to: %s", map).c_str());
}


Then just gameover the current game Smile



"mlistc %d %s" I've never heard of that... is that a legitimate stock ssgm command?

Its a scripts console command Smile


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Measuring and rewarding team work programatically?
Next Topic: vtach/detach command
Goto Forum:
  


Current Time: Mon Dec 23 11:26:38 MST 2024

Total time taken to generate the page: 0.00838 seconds