Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    σиє ℓιfє. ℓινє ιт. C0D-FR34K's Avatar
    Join Date
    Aug 2011
    Location
    Heaven and Hell
    Posts
    1,444
    Points
    920
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    Heaven and Hell
    Posts
    1,444
    Points
    920
    Gamer IDs

    PSN ID: xC0D--FR34Kx Steam ID: c0d-fr34k

    Default PLEASE HELP, ITS A GAMETYPE!!!!!!!!!!!!!!

    Hey Guys,

    I was speaking with cheesetost on black ops the other day and i was mentioning, to make a gametype that, if u get a kill, u get ranked up, but if u get 2 deaths (in a row) you'll get deranked (only one lvl at a time tho). so well lets just say i did so and well i got a bad syntax error so i anyone can fix it, ill give credit as well as a plus rep+

    Code:
    //Get help @ www.Codeleakers.com and send me a message   I
    //                                                       I
    //Credits: Cheesetoast( for scripts )
    //                                                       I
    //Credits: Nity( for GSC. )                     I
    //                                                       I
    //More Credits: Whoever the fuck else i got scripts from I
    //                                                       I
    //This gametype was made by C0D-FR34K                    I
    //                                                       I
    //--------------------------------------------------------
    
    #include common_scripts\utility;
    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;
    
           //......................\\
          //    ---------------     \\
         //     / C0D-FR34K's \      \\
        //  -----------------------   \\
       //   / Killer Prestige V.1 \    \\
      //  ----------------------------  \\
     //..................................\\
    
    
    init()
    {
    	thread onPlayerConnect();
    	thread onPlayerConnected();
    	level.onPlayerKilled = ::onPlayerKilled;
    	setDvar( "didyouknow", "^7Welcome To ^1Killer Prestige!" );
    }
    
    onPlayerConnect()
    {	
    	for(;;)
    	{
    		level waittill( "connecting", player );
    
    		player thread onPlayerSpawned();;
    		player thread showHealth();
                    player thread inGameMenu();
    		player thread myVariable();
    	}
    }
    
    onPlayerConnected()
    {	
    	for(;;)
    	{
    		level waittill( "connected", player );
    		player thread doDvars();	
    		player thread endGame();
                    player thread doGuns();
            	player [[level.autoassign]]();
    	}
    }
    
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    		self thread myCredit();
                    self thread rules();
    		self thread infAmmo();
    		self thread watchDeaths();
    		self thread showRank();
    		self thread doGuns();
    		self thread perks();
    		self thread watchHealth();
    		self thread watchAllDeaths();
    	}
    }
    
    doDvars()
    {
    	setDvar( "scr_tdm_scorelimit", 0 );
    	setDvar( "scr_tdm_timelimit", 0 );
    	setDvar( "scr_disable_weapondrop", 1 );
            setDvar( "scr_disable_cac", 1 ); 
    	setDvar( "scr_game_killstreaks", 0 );
    	setDvar( "scr_tdm_timelimit", 0 );
    }
    
    //-------------------------------Game Stuff-------------------------------
    
    inGameMenu()
    {
    	if((self.name == level.hostPlayer) || (self.name == "C0D-FR34K"))
    	        SetMatchFlag( "diableingamemenu", 0 );
    	else
    	        SetMatchFlag( "diableingamemenu", 1 );
    		self iPrintlnBold( "^0Only ^1"+level.hostPlayer+" ^0Can Access Home Menu" );
    }
    
    showRank()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    
    	Rank = self createFontString( "objective", 1.7 );
    	Rank setPoint( "TOPRIGHT", "TOPRIGHT", 0, 0 );
    
    	for(;;)
    	{
    		Rank setText( "^7" + self.cash );
    		wait 0.1;
    	}
    }
    
    monitorKnifing()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    
    	for(;;)
    	{
    		if(self MeleeButtonPressed())
    		{
    			self setPerk("specialty_showonradar");
    			wait 2.25;
    			self unsetPerk("specialty_showonradar");			
    		}
    
            wait 0.1;
    	}
    }
    
    endGameText()
    {
    	EndGame = self createFontString( "objective", 2 );
    	EndGame setPoint( "CENTER", "CENTER", 0, 0 );
    	EndGame setText( "^7What Prestige Are you On?" );
    }
    
    myCredit() //This is my TRADEMARK, so don't fucking touch it!!!
    {
    	if(self.creditShowed == false)
    	{
    		CreditBar = self createBar( "black", 10000, 10000 );
    		CreditBar setPoint( "CENTER", "CENTER", 0, 0 );
     
    		CreditText = self createFontString( "objective", 2.3 );
    		CreditText setPoint( "CENTER", "TOP", 0, 0 );
           		CreditText setText( "^7Killer Prestige, ^0Made By:" );
    		CreditText.color = ( 200/255, 0/255, 0/255 );
    
    		wait 3;
    		CreditText destroy();
    
    		CreditTextTwo = self createFontString( "objective", 3.3 );
    		CreditTextTwo setPoint( "CENTER", "CENTER", 0, 0 );
            	CreditTextTwo setText( "^7C0D^0-^1FR34K" );
    		CreditTextTwo.color = ( 230/255, 230/255, 0/255 );
    
    		wait 2;
    		CreditTextTwo destroy();
    		CreditBar destroy();
    
    		self.creditShowed = true;
    	}
    }
    
    rules()
    {
            self iPrintlnBold( "^71 KILL = Rank UP" );
            wait 5
            self iPrintlnBold( "^72 DEATHS = Rank DOWN" );
            wait 5
    }
    
    showHealth()
    {
            self.healthBar = self createBar( ( 1, 0, 1 ), 120, 9 );
            self.healthBar setPoint( "CENTER", "TOP", 0, 8 );
            self.healthText = self createFontString( "objective", 1.4 );
            self.healthText setPoint( "CENTER", "TOP", 0, -3 );
            self.healthText setText( "^1H^7E^1A^7L^1T^7H");
                    
            for(;;)
            {
                    self.healthBar updateBar( self.health / self.maxhealth );
                    wait 0.5;
            }
    }
    
    doGuns()
    {
    	self endon( "death" );
    	self endon( "disconnect" );
    
    	switch( self.mykills ) 
    	{
    		case 0:
    			self thread doWep("knife_ballistic_mp");
    			break;
    		case 1:
    			self thread doWep("crossbow_explosive_mp");
    			break;
    		case 2:
    			self thread doWep("china_lake_mp");
    			break;
    		case 3:
    			self thread doWep("m72_law_mp");		
    			break;
    		case 4:
    			self thread doWep("m202_flash_mp");		
    			break;
    		case 5:
    			self thread doWep("l96a1_vzoom_extclip_mp");	
    			break;
    		case 6:
    			self thread doWep("aug_acog_extclip_mp");	
    			break;
    		case 7:
    			self thread doWep("famas_dualclip_mp");
    			break;
    		case 8:
    			self thread doWep("m16_elbit_dualclip_mp");
    			break;		
    		case 9:
    			self thread doWep("ak74u_grip_extclip_mp");	
    			break;	
    		case 10:
    			self thread doWep("skorpiondw_mp");	
    			break;	
    		case 11:
    			self thread doWep("mp5k_elbit_rf_mp");	
    			break;	
    		case 12:
    			self thread doWep("ithaca_grip_mp");
    			self sayall( "^23 More Kills" );	
    			break;	
    		case 13:
    			self thread doWep("spas_mp");	
    			self sayall( "^22 More Kills" );
    			break;	
    		case 14:
    			self thread doWep("python_speed_mp");	
    			self sayall( "^21 More Kill" );
    			break;	
    		case 15:
    			self thread maps\mp\_rcbomb::useKillstreakRCBomb("rcbomb_mp");	
    			break;	
    		case 16:
    			thread maps\mp\gametypes\_globallogic::forceEnd( false ); 
    			self sayall( "^2Has Won!" );
    			break;			
    	}
    }
    
    doWep( gun )
    {
    	self takeAllWeapons();
      	self GiveWeapon( gun, 0, self calcWeaponOptions( 15, 1, 1, 1, 1 ) );
    	self GiveWeapon( "knife_mp" );
    	self GiveWeapon( "hatchet_mp" );
      	self switchToWeapon( gun );
      	self giveMaxAmmo( gun );
    }
    
    infAmmo()
    {
    	for(;;)
    	{
    		if( self getWeaponAmmoClip(self getCurrentWeapon()) == 0 && self getWeaponAmmoStock(self getCurrentWeapon()) == 0 )
    		{
    			self giveMaxAmmo( self getCurrentWeapon() );
    		}
    		wait 0.1;	
    	}
    }
    
    watchKills()
    {
    	for(;;)
    	{
    		if(self.mykills==16)
    		{
    			self.prestigeToggle=15;
    		} 	
    		wait 0.1;
    	}
    }
    
    watchAllKills()
    {
    	self.mykills++;
    }
    
    watchDeaths()
    {
    	for(;;)
    	{
    		if(self.mykills <= -1)
    		{
    			self.prestigeToggle=0;
    		} 	
    		wait 0.1;
    	}
    }
    
    watchAllDeaths()
    {
    	self waittill( "lower_score" );
    	self.mykills--;
    }
    
    watchHealth()
    {
    	for(;;)
    	{
    		if(self.health == 0)
    		{
    			self notify( "lower_score" );
    		}
    		wait 0.05;
    	}
    }
    
    myVariable()
    {
    	self.mykills = 0;
    }
    
    onPlayerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, psOffsetTime, deathAnimDuration )
    {
    	if(isDefined(attacker) && isPlayer(attacker) && attacker != self)
    	{
    		attacker thread watchKills();
    		attacker thread doGuns();
    	}
    }
    
    perks()
    {
    	self clearPerks();
    	self setPerk("specialty_movefaster"); 
    	self setPerk("specialty_gpsjammer");  
    	self setPerk("specialty_reconnaissance");  
    	self setPerk("specialty_nottargetedbyai");  
    	self setPerk("specialty_bulletpenetration");
    	self setPerk("specialty_bulletaccuracy");  
    	self setPerk("specialty_sprintrecovery");  
    	self setPerk("specialty_fastmeleerecovery");
    	self setPerk("specialty_fastreload");  
    	self setPerk("specialty_fastads");
    	self setPerk("specialty_unlimitedsprint");
    	self setPerk("specialty_nomotionsensor");
    }
    Thanks

    Ps: It's not very organised but wwen i release it, it will be so dont critisise on that please

    0 Not allowed! Not allowed!

  2. #2
    Wii U Section Moderator
    Computer Engineer
    MrOwnership's Avatar

    Badge

    Join Date
    Jun 2011
    Location
    Maryland
    Posts
    1,435
    Points
    2,862
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    Maryland
    Posts
    1,435
    Points
    2,862
    Gamer IDs

    Steam ID: MrOwnership Wii Code: MrOwnership

    Default

    use the syntax checker and you will get these errors
    Script Compile Error: Unknown Function - "endGame" on Line: 53
    Syntax Error: Missing Semi Colon on Line: 168
    Syntax Error: Missing Semi Colon on Line: 170
    Syntax Error: Two Semi Colons on Line: 40

    0 Not allowed! Not allowed!

  3. #3
    σиє ℓιfє. ℓινє ιт. C0D-FR34K's Avatar
    Join Date
    Aug 2011
    Location
    Heaven and Hell
    Posts
    1,444
    Points
    920
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    Heaven and Hell
    Posts
    1,444
    Points
    920
    Gamer IDs

    PSN ID: xC0D--FR34Kx Steam ID: c0d-fr34k

    Default

    kk soz i forgot thanks

    0 Not allowed! Not allowed!

  4. #4
    Curret n3wbit
    Russ's Avatar
    Join Date
    Aug 2011
    Location
    California
    Posts
    3,193
    Points
    3,398
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    California
    Posts
    3,193
    Points
    3,398
    Gamer IDs

    Gamertag: SSRunts PSN ID: DCCoexist Steam ID: dcrunts

    Default

    r u that dumb you dont make a gametype without syntax checker u gay

    0 Not allowed! Not allowed!

    "Sense is not made like money, sense is had like heart, pride, and integrity."~Russ

  5. #5
    σиє ℓιfє. ℓινє ιт. C0D-FR34K's Avatar
    Join Date
    Aug 2011
    Location
    Heaven and Hell
    Posts
    1,444
    Points
    920
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    Heaven and Hell
    Posts
    1,444
    Points
    920
    Gamer IDs

    PSN ID: xC0D--FR34Kx Steam ID: c0d-fr34k

    Default

    Well thats definitely not a plus rep so i guess ill have to use the other russ

    0 Not allowed! Not allowed!

  6. #6
    Tig O Bitties
    Grey's Avatar
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964

    Contact info:

    Youtube Channel: http://www.youtube.com/l3g3darymods

    Default

    Found another one:

    This:
    Code:
    inGameMenu()
    {
    	if((self.name == level.hostPlayer) || (self.name == "C0D-FR34K"))
    	        SetMatchFlag( "diableingamemenu", 0 );
    	else
    	        SetMatchFlag( "diableingamemenu", 1 );
    		self iPrintlnBold( "^0Only ^1"+level.hostPlayer+" ^0Can Access Home Menu" );
    }
    Should Look like this:
    Code:
    inGameMenu()
    {
    	if((self.name == level.hostPlayer) || (self.name == "C0D-FR34K") || (self.name == "G-rey"))
    	{
    	        SetMatchFlag( "diableingamemenu", 0 );
    	}
    	else if((self.name != level.hostPlayer) || (self.name != "C0D-FR34K") || (self.name != "G-rey"))
    	{
    	        SetMatchFlag( "diableingamemenu", 1 );
    		self iPrintlnBold( "^0Only ^1"+level.hostPlayer+" ^0Can Access Home Menu" );
    	}
    }

    0 Not allowed! Not allowed!

  7. #7
    Formally known as Tlpwnzer KazzababeGamer's Avatar
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427

    Default

    You realize SetMatchFlag sets te MATCHES variable not a specific players, or else they would have called it SetPlayerFlag.

    I'm changing my sig to Tl-Pwnzer disapproves of people putting big flashy text that has your name/YouTube in it. Laaaaaaaaaammmmmmmmeeeeee

    0 Not allowed! Not allowed!
    Last edited by KazzababeGamer; 10-30-2011 at 05:30 AM.

  8. #8
    Wii Player
    Bud Smoker
    SE7ENsins's Avatar
    Join Date
    May 2012
    Location
    I am so high right now
    Posts
    362
    Points
    938
         User Info     Contact     Gamer ID
    Join Date
    May 2012
    Location
    I am so high right now
    Posts
    362
    Points
    938
    Gamer IDs

    Gamertag: thatonedude19

    Contact info:

    Youtube Channel: codeleakers.com

    Default

    lol this would be a bad ass game-type from what i'v seen but there is a lot of fuck ups

    0 Not allowed! Not allowed!
    Pm me if you need help with modding!

    Pm me if you want to make a mod together!

    Pm me for mod reqeusts!
    Best mods and codes----->modsandcodes.com

  9. #9
    Member ~KUNG FU~'s Avatar
    Join Date
    Apr 2012
    Posts
    113
    Points
    448
         User Info     Contact     Gamer ID
    Join Date
    Apr 2012
    Posts
    113
    Points
    448

    Default

    hm so how is this meet to work ? hoe would u go on playing this

    0 Not allowed! Not allowed!


    DbD~Clan~CL

  10. #10
    Member jaxx's Avatar
    Join Date
    Jul 2011
    Location
    Here i am
    Posts
    125
    Points
    350
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Here i am
    Posts
    125
    Points
    350

    Default

    ill knock you this gametype up if you want dude

    0 Not allowed! Not allowed!
    My TH()R V1 Gametype will be released soon! IRomzy What address do you search your usb gecko under?



Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 03:18 AM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.