Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help change gametype with current map
#1
Hi again Big Grin

in first with what mycode for c# i can use in itsmods ?!

In mw3 when you want to change gametype we have to use map rotation and it also change the map but i want to change gametype with current map so i have this code :

Code:
if (strArray[0].Equals("!dosd"))
                {
                    ServerSay("[AdminPlug] ^7: ^5Gametype Changed To ^1S&D ^5(Search And Destroy)!", true);
                    dvar = GetDvar("mapname");
                    Thread.Sleep(500);
                    ServerCommand("sv_maprotation sd");
                    ServerCommand("map_rotate");
                    ServerCommand("map " + dvar);
                    return false;
                }

But the gametype also changed with other map in rotation ?!!
so how i can get current map ?!!
Reply

#2
sv_maprotation sd? Just do g_gametype sd and then map rotate.
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#3
(09-30-2012, 00:29)DidUknowiPwn Wrote: sv_maprotation sd? Just do g_gametype sd and then map rotate.

No with "g_gametype" the gametype not changed correctly (gametype changed to sd but older gametype such as ffa options always effected on sd -- in otherwise just the gametype name changed not options)
so we have to use sv_maprotation.

but i need know how i can get current map name ?!
Reply

#4
GetDvar("mapname");
Reply

#5
Thank you archit
but as you see i also use GetDvar("mapname");
and when i change game type (from sd to ffa) --> !doffa only map changed in rotation and after do one rotaion again (!dodom) gametype change to ffa also i do one rotation again(!dogg) gametype changed to dom .... as you see all gametype was changed with previous rotation ?!!


i need to change gametype in current map !! are you have better code for that ?!

and my other quastion : How I Disable Map Rotation Threshold ?!!
Reply

#6
Your code must be sucking hard send me the solution and I will see what I can do
Reply

#7
ok i will send you thank you.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Using Cheat Engine 6.2 to change BO2 address values wzlrsaur 6 8,146 08-06-2013, 06:28
Last Post: 14th
  Mw3 Feed Color Change?? aluzion 5 5,905 07-16-2013, 19:52
Last Post: barata
  [Tutorial] Custom gametype HUD iAegle 17 15,413 07-14-2013, 01:16
Last Post: Nekochan
  Change death animation Keouf 3 4,029 07-05-2013, 18:39
Last Post: Nekochan
Wink [Release] Shop system for Infected gametype Nekochan 125 77,078 07-05-2013, 18:09
Last Post: mohammadnanaa
Question Help change single file lzma maker to multiple in c# raminr63 1 3,071 05-12-2013, 19:31
Last Post: raminr63
  Help Gametype WAR FaiR_PLaY 1 2,112 05-07-2013, 20:40
Last Post: DidUknowiPwn
Information How to change text messages in MP (.ff edit) giofrida 5 4,890 05-02-2013, 20:05
Last Post: Pozzuh
  Making a gametype multi-rounded? DidUknowiPwn 6 4,695 04-22-2013, 22:14
Last Post: Pozzuh
Its My Birthday! [Release] ServerConfigurator: Change your server settings easily JariZ 39 82,902 03-10-2013, 19:17
Last Post: wisamskay

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.