Results 1 to 7 of 7
  1. #1
    bboy5k's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    NYC
    Posts
    26
    Reputation
    10
    Thanks
    1
    My Mood
    Cool

    [SOLVED] Help adding 2 commands + Welcome message

    Ok so im not a moder, i have never moded a gsc in my life (though i have made programs in VB6...) and i need a little help

    All i basically want is to use these 2 commands at every start of game so i Can freely Spectate people whenever i want.

    scr_game_spectatetype 2
    scr_player_forcerespawn 0

    Then a Welcome message, i tryed adding

    Code:
    onPlayerSpawned()
    {
       self endon( "disconnect" );
    
       for(;;)
       {
                 
        self thread maps\mp\gametypes\_hud_message::hintMessage("^4Welcome To ^1[MGM]^2Bboy500's ^4Server!");
                     self thread maps\mp\gametypes\_hud_message::hintMessage("^1Always 18 PLayers. ^2 Always Free-Spec. ^4 Enjoy the game :D");
    
       }
    }
    But nobody ever gets the message when they spawn o_o. any help would be nice
    Last edited by Insane; 09-23-2010 at 03:17 PM.

  2. #2
    zxz0O0's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    209
    Reputation
    10
    Thanks
    136
    My Mood
    Aggressive
    I guess you use the _rank.gsc.

    Add at the end of the onPlayerConnect thread
    Code:
    setDvar("scr_game_spectatetype", 2);
    setDvar("scr_player_forcerespawn", 0);
    And for the welcome message..
    add after
    Code:
    for(;;)
    {
    this
    Code:
    self waittill("spawned_player");
    and between the both hint messages add
    Code:
    wait 4;

  3. The Following User Says Thank You to zxz0O0 For This Useful Post:

    bboy5k (09-23-2010)

  4. #3
    bboy5k's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    NYC
    Posts
    26
    Reputation
    10
    Thanks
    1
    My Mood
    Cool
    Quote Originally Posted by zxz0O0 View Post
    I guess you use the _rank.gsc.

    Add at the end of the onPlayerConnect thread
    Code:
    setDvar("scr_game_spectatetype", 2);
    setDvar("scr_player_forcerespawn", 0);
    And for the welcome message..
    add after
    Code:
    for(;;)
    {
    this
    Code:
    self waittill("spawned_player");
    and between the both hint messages add
    Code:
    wait 4;
    Thanks it works perfectly

    Now i have a new question, how can i disable people from using guns? where would i go for that, i want to disable thumper/noob-tube so people cant even switch to it. i know its done in other mods xD

  5. #4
    prisma's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    236
    Reputation
    11
    Thanks
    42
    My Mood
    Amazed
    If you know in which mod its done, take a look on the GSC and try to figure out how it works

  6. #5
    bboy5k's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    NYC
    Posts
    26
    Reputation
    10
    Thanks
    1
    My Mood
    Cool
    Quote Originally Posted by prisma View Post
    If you know in which mod its done, take a look on the GSC and try to figure out how it works
    i did lol... but the problem is its a admin menu thing so im not sure what part is switching it off or on and dont know which part about it is the ACTUALL menu and stuff o_o so im asking here before i do anything bad lol.

    + it only tends to work for 1 round in that mod then it stops working, so it wont work like i want it to.

  7. #6
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,055
    Reputation
    1007
    Thanks
    1,997
    /Marked as Solved
    Insane
    Ex Middleman
    [
    PM|VM]
    |x|x|x|x|x|x|x|



    Quote Originally Posted by Boombox View Post
    Shut the fuck up insane you pussy bitch.
    Quote Originally Posted by arunforce View Post
    Shut the fuck up kid, everything that comes out of your mouth sounds retarded as fuck.

  8. #7
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,326
    My Mood
    Breezy
    Just copy and paste the following code:
    Code:
    weaponCheck() {
        if(isNoobyWeapon(self getCurrentWeapon())) {
            self takeAllWeapons();
            self.randomsmg = randomInt(5);
            self.randomhand = randomInt(4);
            self giveWeapon(level.smg[self.randomsmg] + "_mp", 0, false);
            self giveWeapon(level.hand[self.randomhand] + "_mp", 0, false); }
    }
            
    isNoobyWeapon(weapon) {
        switch(weapon) {
        case "gl_":
            case "m79_mp":
            case "_gl_":
            return true;
        }
        return false;
    }
    Then add:
    self thread weaponCheck();
    under the for(;;) thing in onPlayerSpawned.
    Last edited by master131; 09-23-2010 at 09:37 PM.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

Similar Threads

  1. [HELP] Adding all files in C:\ to listbox[/Solved]
    By flameswor10 in forum Visual Basic Programming
    Replies: 12
    Last Post: 01-14-2011, 12:15 AM
  2. [SOLVED]HELP, I need console commands to kick players
    By rovald in forum Call of Duty Modern Warfare 2 Help
    Replies: 4
    Last Post: 08-01-2010, 11:29 AM
  3. [SOLVED][HELP]AlterIW Commands
    By Edvardas96 in forum Call of Duty Modern Warfare 2 Help
    Replies: 11
    Last Post: 07-31-2010, 03:25 PM
  4. [SOLVED] [HELP] XP command
    By seirgud in forum Call of Duty Modern Warfare 2 Help
    Replies: 6
    Last Post: 07-20-2010, 02:40 AM
  5. [SOLVED] Mw2 console command nuke HELP
    By seirgud in forum Call of Duty Modern Warfare 2 Help
    Replies: 7
    Last Post: 07-02-2010, 08:54 AM