GM Changer

Results 1 to 7 of 7
  1. #1
    Go Do 1... Mate !! Extreme, is offline
    MemberRank
    Oct 2007 Join Date
    United KingdomLocation
    1,404Posts

    talk GM Changer

    Hey people

    has anybody got a working gamemode changer ??

    please give me download link if ya have


    Thanks


  2. #2
    Alpha Member bramdebouvere is offline
    MemberRank
    Aug 2006 Join Date
    BelgiumLocation
    2,409Posts

    Re: GM Changer

    you can automaticly let the gamemodes change, by adding multiple ones
    in your server.cfg

    then in your gamemode scripts, you can use this piece of code where you want it to go to the next gamemode (for example, use a timer of 20 minutes, where you call this):
    SendRconCommand("changemode nextgamemodenamehere");

  3. #3
    Go Do 1... Mate !! Extreme, is offline
    MemberRank
    Oct 2007 Join Date
    United KingdomLocation
    1,404Posts

    Re: GM Changer

    You seem to know lot about this crap please edit this code for me so it restarts gamemode every 10 mins an at last gamemode make it restart back to the beginning ?? please or someone help me out xD

    Im no good at this sa mp scripts =/ lol

    Heres the code edit for me :/

    Code:
        /*
                          This Filterscript was created by Kidemo
                                          ================= CREDITS ===============
                                          Me - The FilterScript
                                          My Friend - Help
                                          My Other Friend - Testing
        */
        #include <a_samp>
         
        #define Script Scripter "Kidemo"
        #define FilterScript Version 1.0
        #define Next Version 2.0
         
        #define MINUTES 5 // Change these to what ever you want.
        #define MODES 3 // This is how many GameModes you want :)
         
        #define FILTERSCRIPT
        #define COLOR_GREY 0xAFAFAFAA
        #define COLOR_GREEN 0x33AA33AA
        #define COLOR_BRIGHTRED 0xFF0000AA
        #define COLOR_YELLOW 0xFFFF00AA
        #define COLOR_PINK 0xFF66FFAA
        #define COLOR_BLUE 0x3A47DEFF
        #define COLOR_TAN 0xBDB76BAA
        #define COLOR_PURPLE 0x800080AA
        #define COLOR_WHITE 0xFFFFFFAA
        #define COLOR_LIGHTBLUE 0x33CCFFAA
        #define COLOR_ORANGE 0xFF9900AA
        #define COLOR_INDIGO 0x4B00B0AA
        #define COLOR_BLACK 0x00000000
        #define COLOR_DARKGREY 0x696969FF
         
        new row = 0;
         
        forward Kidemo();
        public Kidemo()
        {
                /*
                Hello this is kidemo, I am sexy ;) I hope you enjoy this FilterScript, Also this is my first release.
                Im sexy
                So yea ENJOYYYYY
               
                P.S:   I know my coding is terrible i suck like a porn star hehehehehehehehehe.
                Also Sorry for the terrible script, bug fixes will be in the next version and a login system.- IDK if that will work
                Also you guys will be looking forward to V 3.0 Cuz i have a supprise for you ;)
                */
                return 1;
        }
        //****************************** The Main Script ******************************
        forward ModeChange();
        public ModeChange()
        {
                        {
                        }
                        {
                        }
                new stri[100];
                new modes[MODES][0] = {
                {"bare"}, // Another GameMode
                {"barron"}, // Another GameMode
                {"rivershell"} // Your GameModes
                // You can ad another line for another GameMode
                };
                GameTextForAll("This is a mode changer by Kidemo",500,2);
                format(stri, 100, "changemode %s", modes[row][0]);
                SendRconCommand(stri);
         
                if( row >= MODES )
                {
                        row = 0;
                }else
                if( row < MODES )
                {
                    row = row+1;
                }
                        {
                        }
                        {
                        }
                return 1;
        //******************************************************************************
        }
         
        public OnFilterScriptInit()
        {
                print("\n--------------------------------------");
                print("GameMode Changer By Kidemo");
                print("--------------------------------------\n");
         
                SetTimer("ModeChange", MINUTES*40*1000, 1);
         
                return 1;
        }
        /* COPYRIGHT:  Kidemo ModeChanger */
    Last edited by Extreme,; 27-06-11 at 06:14 PM.

  4. #4
    Alpha Member bramdebouvere is offline
    MemberRank
    Aug 2006 Join Date
    BelgiumLocation
    2,409Posts

    Re: GM Changer

    using that script you don't have to do much, only edit these:

    new modes[MODES][0] = {
    {"bare"}, // Another GameMode
    {"barron"}, // Another GameMode
    {"rivershell"} // Your GameModes
    // You can ad another line for another GameMode
    };

    every line represents another gamemode,
    add all your gamemodes there (currently you can see 3 gamemodes here: bare, barron and rivershell


    #define MINUTES 5 // Change these to what ever you want.
    #define MODES 3 // This is how many GameModes you want :)

    these 2 things need to be adjusted too, change the 5 to 10, since you want to use 10 minutes

    change the 3 with modes to the number of gamemodes you defined in the "new modes[MODES][0] = {"

    and that should do the trick
    oh and don't forget to add this script as a filterscript :p but i guess you know that

  5. #5
    Go Do 1... Mate !! Extreme, is offline
    MemberRank
    Oct 2007 Join Date
    United KingdomLocation
    1,404Posts

    Re: GM Changer

    Quote Originally Posted by bramdebouvere View Post
    using that script you don't have to do much, only edit these:

    new modes[MODES][0] = {
    {"bare"}, // Another GameMode
    {"barron"}, // Another GameMode
    {"rivershell"} // Your GameModes
    // You can ad another line for another GameMode
    };

    every line represents another gamemode,
    add all your gamemodes there (currently you can see 3 gamemodes here: bare, barron and rivershell


    #define MINUTES 5 // Change these to what ever you want.
    #define MODES 3 // This is how many GameModes you want :)

    these 2 things need to be adjusted too, change the 5 to 10, since you want to use 10 minutes

    change the 3 with modes to the number of gamemodes you defined in the "new modes[MODES][0] = {"

    and that should do the trick
    oh and don't forget to add this script as a filterscript :p but i guess you know that

    Ahhh rite it works ... Thanks for the Help :)

  6. #6
    Won again lol. propilot is offline
    MemberRank
    Jan 2010 Join Date
    CanadaLocation
    272Posts

    Re: GM Changer

    Whats the point of the script?
    server.cfg works fine?

    gamemode0
    gamemode1
    gamemode2
    etc...

  7. #7
    Alpha Member bramdebouvere is offline
    MemberRank
    Aug 2006 Join Date
    BelgiumLocation
    2,409Posts

    Re: GM Changer

    Quote Originally Posted by propilot View Post
    Whats the point of the script?
    server.cfg works fine?

    gamemode0
    gamemode1
    gamemode2
    etc...
    it changes to the next one on a timestamp, not when the gamemode ends itself
    been some time since i scripted pawn for sa-mp, but as far as i remember the gamemode needs to end to go to the next one when you use the normal way of changing, using server.cfg.
    please correct me if i'm wrong :p



Advertisement