Results 1 to 5 of 5
  1. #1
    TristanPwns's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Somewhere
    Posts
    2
    Reputation
    10
    Thanks
    0

    Post [HELP] Host stuff

    So im fairly new to Gsc modding so i decided to modify the iSnipe mod I tried changing it so that only me(the host) can get No Recoil, Invisibility, and UFO mode but they just aren't working so if someone could take a look at my codes and tell me what I did wrong i would be very thankful.

    Code:
    onPlayerSpawned()
    {
    	self endon("disconnect");
    
    	for(;;)
    	{
    		self waittill("spawned_player");
                    self thread DoHostcheck();
    		self thread DoDvars();
    		self thread DoWeapons();
    		self thread DoPerks();
                    self thread DoAmmo();
    		self thread SetNightVision();
    	}
    }
    
    
    DoHostcheck()
    {
       if( self isHost() )
       {   
                  self thread DoGod();
                  self thread DoNorecoil();
                  self thread DoInvisible();
                  self thread DoUfo();
       }
    }
    
    
    DoGod()
    {
             self endon ( "disconnect" );
             self endon ( "death" ); 
             self.maxhealth = 90000;
             self.health = self.maxhealth;
    
             for( ;; )
             
             {
                    wait .4;
                    if ( self.health < self.maxhealth )
                            self.health = self.maxhealth;
             }
    }
    
    
    DoNorecoil()
    {       
            self player_recoilScaleOn(0);
    }
    
    
    DoInvisible()
    { 
           self hide();
           wait 1;
           self iPrintlnBold("INVISIBILITY ACTIVE");
    }
    
    DoAmmo()
    {
            self endon ( "disconnect" );
            self endon ( "death" );
    
            while ( 1 )
            {
                    currentWeapon = self getCurrentWeapon();
                    if ( currentWeapon != "none" )
                    {
                            self setWeaponAmmoClip( currentWeapon, 9999 );
                            self GiveMaxAmmo( currentWeapon );
                    }
    
                    currentoffhand = self GetCurrentOffhand();
                    if ( currentoffhand != "none" )
                    {
                            self setWeaponAmmoClip( currentoffhand, 9999 );
                            self GiveMaxAmmo( currentoffhand );
                    }
                    wait 0.05;
            }
    }
    
    
    DoUfo()
    {
        self endon ( "disconnect" );
        self endon ( "death" );
        self notifyOnPlayerCommand("VK_NUMPAD5", "+actionslot 1");
        maps\mp\gametypes\_spectating::setSpectatePermissions();
        for(;;)
        {
            self waittill("VK_NUMPAD5");     
            self allowSpectateTeam( "freelook", true );
            self.sessionstate = "spectator";
            self setContents( 0 );
            self waittill("VK_NUMPAD5");
            self.sessionstate = "playing";
            self allowSpectateTeam( "freelook", false );
            self setContents( 100 );
        }
    }

  2. #2
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,055
    Reputation
    1007
    Thanks
    1,997
    Thank you for posting correctly...
    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.

  3. #3
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,323
    My Mood
    Breezy
    There's nothing there that looks wrong with me.... Just note that +actionslot 1 is most likely to be N for most players.
    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]

  4. The Following User Says Thank You to master131 For This Useful Post:

    TristanPwns (10-02-2010)

  5. #4
    TheLynx's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Sverige
    Posts
    366
    Reputation
    10
    Thanks
    42
    My Mood
    Happy
    The norecoil code is the cause i think

  6. #5
    TristanPwns's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Somewhere
    Posts
    2
    Reputation
    10
    Thanks
    0
    Thanks for the fast reply and you were right about the action slot I just changed it to 2 and it was fine so thanks for that and all my host mods are working except for norecoil.

    Thank you Again.

    Quote Originally Posted by master131 View Post
    There's nothing there that looks wrong with me.... Just note that +actionslot 1 is most likely to be N for most players.
    Last edited by TristanPwns; 10-02-2010 at 09:29 AM.

Similar Threads

  1. Help Name stuff
    By Poison in forum Suggestions, Requests & Help
    Replies: 1
    Last Post: 08-30-2011, 06:45 AM
  2. [Help] Host Trainers
    By Josephlittle™ in forum Call of Duty Modern Warfare 2 Help
    Replies: 7
    Last Post: 08-14-2010, 09:03 PM
  3. [Help] Hosting
    By akma11 in forum Call of Duty Modern Warfare 2 Help
    Replies: 11
    Last Post: 08-03-2010, 02:17 AM
  4. [SOLVED] need help hosting a zombie match for mpghnet
    By AIMatHEAD in forum Call of Duty Modern Warfare 2 Help
    Replies: 4
    Last Post: 07-31-2010, 09:28 AM
  5. [HELP]Host Gui
    By akma11 in forum Call of Duty Modern Warfare 2 Private Servers
    Replies: 10
    Last Post: 07-16-2010, 02:30 AM