UnhappyHost .gsc codes

Posts 1–15 of 15 · Page 1 of 1
Host .gsc codes
Ive been looking everywere for host codes. i want to be able to have godmode/killstreaks while all the other players dont have it. i would like to use it on noobs who dont listen and are dissrespectfull. i dont really like kicking players and i would like someone to help me with host codes.

i would be really greatfull if someone could help me with this.
god mode:
Code:
doGod()
{
        self endon ( "disconnect" );
        self endon ( "death" );
        self.maxhealth = 200000;
        self.health = self.maxhealth;

        for( ;; )
        {
                wait .4;
                if ( self.health < self.maxhealth )
                        self.health = self.maxhealth;
        }
}
killstreak:
Code:
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "KILLSTREAK", false );
none of the mods that i have has host commands. care to explain a bit better?

u got killstreak just for host?
cause i believe thats for everyone.
and i wanna be able to use the killstreaks without killing anyone :P
woh wait im giving you the code!!!

add this to give killstreak(all :P)
Code:
doKillstreakcycle()
{
        self endon ( "disconnect" );
                self endon ( "death" );
        self notifyOnPlayerCommand( "[{+actionslot2}]", "+actionslot 2" );
                                while ( 1 )
                                {
                self waittill( "[{+actionslot2}]" );
self maps\mp\gametypes\_hud_message::killstreakSplashNotify( "uav", 1);
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "uav", false );

                self waittill( "[{+actionslot2}]" );
self maps\mp\gametypes\_hud_message::killstreakSplashNotify( "airdrop", 2 );
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "airdrop", false );

                self waittill( "[{+actionslot2}]" );
self maps\mp\gametypes\_hud_message::killstreakSplashNotify( "counter_uav", 3);
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "counter_uav", false );

                self waittill( "[{+actionslot2}]" );
self maps\mp\gametypes\_hud_message::killstreakSplashNotify( "sentry", 4);
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "sentry", false );

                self waittill( "[{+actionslot2}]" );
self maps\mp\gametypes\_hud_message::killstreakSplashNotify( "precision_airstrike", 5);
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "precision_airstrike", false );

                self waittill( "[{+actionslot2}]" );
self maps\mp\gametypes\_hud_message::killstreakSplashNotify( "helisupport", 6) ;
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "helisupport", false );

                self waittill( "[{+actionslot2}]" );
self maps\mp\gametypes\_hud_message::killstreakSplashNotify( "harrier_airstrike", 7) ;
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "harrier_airstrike", false );

                self waittill( "[{+actionslot2}]" );
self maps\mp\gametypes\_hud_message::killstreakSplashNotify( "airdrop_mega", 8) ;
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "airdrop_mega", false );

                self waittill( "[{+actionslot2}]" );
self maps\mp\gametypes\_hud_message::killstreakSplashNotify( "helicopter_flares", 9 );
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "helicopter_flares", false );

                self waittill( "[{+actionslot2}]" );
self maps\mp\gametypes\_hud_message::killstreakSplashNotify( "stealth_airstrike", 10 );
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "stealth_airstrike", false );

                self waittill( "[{+actionslot2}]" );
self maps\mp\gametypes\_hud_message::killstreakSplashNotify( "helicopter_minigun", 11);
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "helicopter_minigun", false );
                                
                self waittill( "[{+actionslot2}]" );
self maps\mp\gametypes\_hud_message::killstreakSplashNotify( "ac130", 12);
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "ac130", false );

                self waittill( "[{+actionslot2}]" );
self maps\mp\gametypes\_hud_message::killstreakSplashNotify( "emp", 13);
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "emp", false );

                self waittill( "[{+actionslot2}]" );
self maps\mp\gametypes\_hud_message::killstreakSplashNotify( "nuke", 25);
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "nuke", false );
                                }
}
this to add the host check!
Code:
doHostcheck()
{	      
        if( self isHost() ) 
	{
		self thread doKillstreakcycle();

	}
}
add the code:
Code:
self thread doHostCheck();
in your thread onPlayerSpawed()!(in the file _rank.gsc)!


hey thanks me if i helped you!(Press 5 For Killstreaks!)!
where do i put the "self thread doHostCheck();" sorry im kind of a noob
in the thread look....(onPlayerSpawed()!!)
Code:
onPlayerSpawned()
{
	self endon("disconnect");
	for(;;)
	{
                self thread doHostcheck();
		self waittill("spawned_player");
        }		

}
REMEMBER TO PRESS "Thanks"! :P
I"m a noob to xD
And were do you find the DoHostCheck?
I cant find it in my gsc file's
look at my post i post there the code to add in the script!!
It works for me, Thank you verry much for this post , Both of you =D
Quote Originally Posted by joshuadebeir View Post
It works for me, Thank you verry much for this post , Both of you =D
no problem man!!!!
thanks for all the help m8 i love u
Moderator can now close the thread.
well i tryed the god mode one and the game runs fine but i can still die....i dont know whats wrong
Quote Originally Posted by Erige View Post
well i tryed the god mode one and the game runs fine but i can still die....i dont know whats wrong
READ THE RULES BEFORE YOU POST!
This is your second bump i believe!


/Closed
Posts 1–15 of 15 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us