• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help change gametype with current map
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 :

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

But the gametype also changed with other map in rotation ?!!
so how i can get current map ?!!
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]
(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 ?!
[-] The following 1 user says Thank You to archit for this post:
  • raminr63
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 ?!!
Your code must be sucking hard send me the solution and I will see what I can do
ok i will send you thank you.

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

Forum Jump:

Users browsing this thread: 1 Guest(s)