Results 1 to 4 of 4
  1. #1
    Member saberzzz's Avatar
    Join Date
    Feb 2012
    Posts
    204
    Points
    511
         User Info     Contact     Gamer ID
    Join Date
    Feb 2012
    Posts
    204
    Points
    511

    Default Copz V Robberz V1 [SC7E52]

    *Credits
    Jellyinjector
    Kenny*
    Saberzz(me)
    *what is in V1
    ~cops
    Cops Have pistol only 80 shots.
    1 life till all dead
    get flag for objective
    text for each team
    police dogs eventually
    ~robbers
    cloak
    c4 only
    last player is a jugganaugt with a modded pistol
    Download Link : http://www.mediafire.com/?sdvubbfkn5z5tvs

    Please don't flame This is my First Gametype And special thanks to my bro Kenny!

    Code:
    //Saberzzz First Gametype. Cops And Robbers. ik its made but i made a new one and better
    //Credit To Kenny For Helping Scripting and fixing errors
    //Have Fun And Enjoy V1. Please no credit Stealers!!
    
    #include common_scripts\utility;
    
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    
    #include maps\mp\gametypes\_hud_util;
    
    main()
    
    {
    	thread init();
    }
    
    init()
    {
    	thread onPlayerConnect();
    	thread onPlayerConnected();
    	level thread doBlocks();
    	setDvar( "didyouknow", "Welcome To ^1Cops Vs ^0Robberz ^1V^01" );
    }
    
    onPlayerConnect()
    {	
    	for(;;)
    	{
    		level waittill( "connecting", player );
    
    		player thread onPlayerSpawned();
    	}
    }
    
    onPlayerConnected()
    {	
    	for(;;)
    	{
    		level waittill( "connected", player );
    		player thread Classes();
    		player thread KDvars();
    		player thread Teleporter();
    		player thread TeleporterYellow();
    		player thread KennyLife();
    	}
    }
    
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );	
    		self thread Cops();
    		self thread Robbers();
    	}
    }
    
    Classes()
    {
    	self setClientDvar( "customclass1", "^1Welcome To" );
    	self setClientDvar( "customclass2", "^2Cops Vs. Robbers" );
    	self setClientDvar( "customclass3", "^3Made By" );
    	self setClientDvar( "customclass4", "^9Saberzzzzzz" );
    	self setClientDvar( "customclass5", "^1And Help By ^1[WSCA]^0Kennny AKA just Kenny" );
    }
    
    Cops()
    {
    	if( self.pers["team"] == "allies" )
    	{
    		self thread CopsGuns();
    		self thread Sperks();
    		self thread Death();
    		self thread creditsforwin();
    		self thread PoPo_Dogs();
    		self thread lasersight();
                    self thread scoreNames();
    		self thread maps\mp\gametypes\_hud_message::hintMessage( "Go Get The Law Breakers" );
    		self thread maps\mp\gametypes\_hud_message::hintMessage( "Do Not Let Them Get The Flag And Get Free" );
    	}
    }
    
    Robbers()
    {
    	if( self.pers["team"] == "axis" )
    	{
    		self thread RobbersGuns();
    		self thread Perks();
    		self thread Death();
    		self thread creditsforwin();
    		self thread RobberPerk();
    		self thread DoLastPlayerK();
                    self thread scoreNames2();
    		self.cloak = 1;
    		self thread maps\mp\gametypes\_hud_message::hintMessage( "Run And Hide From Coppers. Get Your Escape Now. Kill Coperz" );
    		self thread maps\mp\gametypes\_hud_message::hintMessage( "Kill Coperz With Your Explosives. Use them Carefully" );
    	}
    }
    
    Sperks()
    {
    	self endon( "disconnect" );
    
    	self clearPerks();
            self setPerk("specialty_noname");
            self setPerk("specialty_reconnaissance");  
    	self setPerk("specialty_unlimitedsprint");
    	self setPerk("specialty_movefaster");
    	self setPerk("specialty_quieter");
    }
    
    RobbersGuns()
    {
    	self takeAllWeapons();	
    	self giveWeapon( "deafaultweapon_mp" );
    	self giveWeapon( "knife_mp" );
    	self switchToWeapon( "deafaultweapon_mp" );
    	self SetWeaponAmmoClip( "defaultweapon_mp", 0 );
    	self SetWeaponAmmoStock( "defaultweapon_mp", 0 );
    	self SetActionSlot( 1, "weapon", "c4_mp" );
    	self giveMaxAmmo( "c4_mp" );
    }
    
    CopsGuns()
    {
    	self takeAllWeapons();
    	self giveWeapon( "cz75_mp_mp" );
    	self giveWeapon( "knife_mp" );
    	self switchToWeapon( "cz75_mp_mp" );
    	self SetWeaponAmmoClip( "cz75_mp_mp", 80 );
    	self SetWeaponAmmoStock( "cz75_mp_mp", 80 );
    	self giveWeapon( "frag_grenade_mp" );		
    }
    
    Perks()
    {
    	self endon( "disconnect" );
    
    	self clearPerks();  
    	self setPerk("specialty_unlimitedsprint");
    	self setPerk("specialty_movefaster");
    }
    
    Death()
    {
    	self endon( "disconnect" );
    
    	for(;;)
    	{
    		self waittill( "death" );
    
    		self.playerStatus = "dead";
    		self notify( "menuresponse", game["menu_team"], "spectator" );
    	}
    }
    
    creditsforwin()
    {
    	for(;;)
    	{
    		wait 1.0;
    		if( level.playerCount["axis"] == 0 )
    		{
    			level notify( "game_wasover" );
    			for(i=0;i<level.players.size;i++)
    			{
    				level.players[i] notify( "menuresponse", game["menu_team"], "axis" );
    			}
    			wait 0.5;
    			thread maps\mp\gametypes\_globallogic::endGame( "axis", "You Have Been Defeated By The Po-Po" );
    			break;
    		}
    	}
    }
    
    creditsforwin2()
    {
    	for(;;)
    	{
    		wait 1.0;
    		if( level.playerCount["allies"] == 0 )
    		{
    			level notify( "game_wasover" );
    			for(i=0;i<level.players.size;i++)
    			{
    				level.players[i] notify( "menuresponse", game["menu_team"], "allies" );
    			}
    			wait 0.5;
    			thread maps\mp\gametypes\_globallogic::endGame( "allies", "THE ROBBERS HAVE GOTTEN AWAY" );
    			break;
    		}
    	}
    }
    
    KDvars()
    {
    	setDvar( "g_TeamName_Allies", "^5Cops" );
    	setDvar( "g_TeamName_Axis", "^0Robbers" );
    	setDvar( "g_allow_teamchange", 0 );
    	self setClientDvar( "scr_game_killstreaks", 0 );
    }
    
    RobberPerk()
    {
    	self endon("death");
    	self endon("disconnect");
    
    	te = self createFontString( "objective", 1.3 );
    	te setPoint("CENTER", "TOP", 0, -80);
    	te setText("[[{+actionslot 3}]] ^1Toggle Cloak");
    	te.sort = 10;
    	
    	for(;;)
    	{
    		while(!self ActionSlotThreeButtonPressed())
    			wait 0.05;
    		if(self.cloak)
    		{
    			self.cloak--;
    			self show();
    			self iPrintLnBold("Cloak ^1Off");
    		}
    		else
    		{
    			self.cloak++;
    			self hide();
    			self iPrintLnBold("Cloak ^2On");
    		}
    		wait 0.50;
    	}
    }
    
    DoLastPlayerK()
    {
    	for(;;)
    	{
    		wait 1.0;
    		if( level.playerCount["axis"] == 0 )
    		{
    			for(i=0;i<level.players.size;i++)
    			{
    				level.players[i] notify( "menuresponse", game["menu_team"], "axis" );
    			}
    			wait 0.5;
    			self thread DoKenny();
    			break;
    		}
    	}
    }
    
    DoKenny()
    {
    	self giveSuperWeapon("ithaca_mp");
    	self.maxHealth = 500;
    	self.health = self.maxHealth;
    	self thread maps\mp\gametypes\_hud_message::hintMessage( "You got kenny's fav. gun kill dem cops. BTW your a jugg" );
    	wait 1.0;
    	level thread maps\mp\_popups::DisplayTeamMessageToAll( "^7Runnnn COPSSSS. Fucking Modded Pistol Comin Through", self );
    }
    
    createBlock( pos, angle )
    {
            crate = spawn( "script_model", pos );
            crate setModel( "mp_supplydrop_ally" );
            crate.angles = angle;
    }
    
    doBlocks()
    {
    	level.bunkers[1] = createBlock( ( 575, 116, -31), (0, 195, 0) );	
    	level.bunkers[2] = createBlock( ( 575, 116, -46), (0, 195, 0) );		
    	level.bunkers[3] = createBlock( ( 551, 111, -46), (0, 195, 0) );
    	level.bunkers[4] = createBlock( ( 1146, 306, 92), (0, 195, 0) );	
    	level.bunkers[5] = createBlock( ( 1146, 306, 107), (0, 195, 0) );
    	level.bunkers[6] = createBlock( ( 1180, 312, 92), (0, 195, 0) );
    	level.bunkers[7] = createBlock( ( 1155, 267, -31), (0, 195, 0) );	
    	level.bunkers[8] = createBlock( ( 1155, 267, -46), (0, 195, 0) );
    	level.bunkers[9] = createBlock( ( 1189, 273, -46), (0, 195, 0) );
    	level.bunkers[10] = createBlock( ( 681, 518, -41), (0, 195, 0) );
    	level.bunkers[11] = createBlock( ( 681, 518, -6), (0, 195, 0) );
    	level.bunkers[12] = createBlock( ( 681, 518, 29), (0, 195, 0) );
    	level.bunkers[13] = createBlock( ( 700, 456, -41), (0, 195, 0) );
    	level.bunkers[14] = createBlock( ( 700, 456, -6), (0, 195, 0) );
    	level.bunkers[15] = createBlock( ( 700, 456, 29), (0, 195, 0) );
    	level.bunkers[16] = createBlock( ( 1010, 693, -41), (0, 195, 0) );	
    	level.bunkers[17] = createBlock( ( 1010, 693, -6), (0, 195, 0) );
    	level.bunkers[18] = createBlock( ( 1010, 693, 29), (0, 195, 0) );
    	level.bunkers[19] = createBlock( ( 745, 146, 96), (0, 195, 0) );
    	level.bunkers[20] = createBlock( ( 745, 146, 111), (0, 195, 0) );
    	level.bunkers[21] = createBlock( ( 696, 205, 96), (0, 243, 0) );
    	level.bunkers[22] = createBlock( ( 696, 205, 111), (0, 243, 0) );
    	level.bunkers[23] = createBlock( ( 591, 209, 96), (0, 282, 0) );
    	level.bunkers[24] = createBlock( ( 591, 209, 111), (0, 282, 0) );
    	level.bunkers[25] = createBlock( ( 618, 216, 96), (0, 282, 0) );
    	level.bunkers[26] = createBlock( ( 618, 216, 111), (0, 282, 0) );
    	level.bunkers[27] = createBlock( ( 680, 174, 96), (0, 243, 0) );
    	level.bunkers[28] = createBlock( ( 665, 302, 166), (0, 195, 0) );
    	level.bunkers[29] = createGreen( ( -1114.03, 445.671, 97.3139 ), ( 0, 69.0662, 0 ) ); //Teleporter Model Blue
    	level.bunkers[30] = createSpot( ( -1114.03, 445.671, 97.3139 ) ); //Teleport Spot Blue
    	level.bunkers[31] = createGreen( ( 1124.8, 478.653, 95.0632 ), ( 0, 284.815, 0 ) ); //Teleporter Model Yellow
    	level.bunkers[32] = createSpotYellow( ( 1124.8, 478.653, 95.0632 ) ); //Teleport Spot Yellow
    }
    
    createGreen( pos, angle ) // Teleporter Model
    {
    	level.crateG = spawn( "script_model", pos );
    	level.crateG setModel( "mp_supplydrop_ally" );
    	level.crateG.angles = angle;
    
    	iconOrg = level.crateG.origin;
    	icon = newTeamHudElem( "axis" );
    
    	icon.x = iconOrg[0];
    
    	icon.y = iconOrg[1];
    
    	icon.z = iconOrg[2] + 30;
    
    	icon.alpha = .59;
    
    	icon.archived = true;
    
    	icon setShader( "compass_supply_drop_green", 15, 15 );
    	icon setwaypoint( true );
    }
    
    createSpot( pos ) // Teleport Spot
    {
    	level.teleSpot = spawn( "script_model", pos );
    }
    
    createSpotYellow( pos ) // Teleport Spot
    {
    	level.teleSpotYellow = spawn( "script_model", pos );
    }
    
    Teleporter()
    {
    	self endon( "disconnect" );
    	level endon("game_wasover");
    
    	level.teleInProg = 0;
    
    	for(;;)
    	{
    		if( distance( self.origin, level.teleSpot.origin ) < 100 && level.teleInProg == 0 )
    		{
    			self setLowerMessage( "Press [{+activate}] to use the teleporter" );
    			while( distance( self.origin, level.teleSpot.origin ) < 100 )
    			{
    				if( self useButtonPressed() == true )
    				{
    					thread TeleportTo();
    					break;
    				}
    				wait 0.05;
    			}
    		}
    		else
    		{
    			self clearLowerMessage( 3 );
    		}
    		wait 0.05;
    	}
    }
    
    TeleportTo()
    {
    	level.teleInProg = 1;
    
    	for(i=0;i<level.players.size;i++)
    	{
    		if( distance( level.players[i].origin, level.teleSpot.origin ) < 100 )
    			level.players[i] setOrigin( ( 700.982, -153.357, -8.76514 ) );
    		wait 0.3;
    	}
    
    	level.teleInProg = 0;
    }
    
    TeleporterYellow()
    {
    	self endon( "disconnect" );
    	level endon("game_wasover");
    
    	level.teleInProg = 0;
    
    	for(;;)
    	{
    		if( distance( self.origin, level.teleSpotYellow.origin ) < 100 && level.teleInProg == 0 )
    		{
    			self setLowerMessage( "Press [{+activate}] to use the teleporter" );
    			while( distance( self.origin, level.teleSpotYellow.origin ) < 100 )
    			{
    				if( self useButtonPressed() == true )
    				{
    					thread TeleportYellowTo();
    					break;
    				}
    				wait 0.05;
    			}
    		}
    		else
    		{
    			self clearLowerMessage( 3 );
    		}
    		wait 0.05;
    	}
    }
    
    TeleportYellowTo()
    {
    	level.teleInProg = 1;
    
    	for(i=0;i<level.players.size;i++)
    	{
    		if( distance( level.players[i].origin, level.teleSpotYellow.origin ) < 100 )
    			level.players[i] setOrigin( ( -1599.97, 1120.38, -12.9762 ) );
    		wait 0.3;
    	}
    
    	level.teleInProg = 0;
    }
    
    KennyLife()
    {    
        HPD = self createFontString( "objective", 2 );
        HPD setPoint( "CENTRE", "CENTRE", 0, 170 );
    
        for(;;)
        {
            HPD setText( "^1H^4e^1a^4l^1t^0h:  " +self.health );
            wait 0.05;
        }
    }
    
    PoPo_Dogs()
    {
    	for(;;)
    	{
    		wait randomFloatRange( 150, 250 );
    		
    		for( i = 0; i < level.players.size; i++ )
    		{
    			if( level.players[i].pers["team"] == "allies" )
    			{
    				level.players[i] thread maps\mp\_dogs::useKillstreakDogs( "dogs_mp" );
    	level thread maps\mp\_popups::DisplayTeamMessageToAll( "^1Police Dogs Inbound", self );
    				break;
    			}
    		}
    		iPrintlnBold( "^1Dogs!" );
    	}
    }
    
    lasersight()
    {
    	self endon( "disconnect" );
    	self endon( "death" );
    	self iPrintlnBold( "^1" );
    	for(;;)
    	{
    		trace=bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*100000,1,self)["position"];
    		lights=loadfx("weapon/crossbow/fx_trail_crossbow_blink_red_os");
    		playfx(lights,trace);
    		wait 0.02;
    	}
    }
    
    giveSuperWeapon( gun )
    {
    	self takeAllWeapons();
    	self giveWeapon(gun);
    	wait 0.1;
    	class = "";
    	c = GetArrayKeys(level.classMap);
    	for(i=0;i<c.size;i++)
    		if(level.classMap[c[i]] == self.pers["class"])
    			class = c[i];
    	self notify("menuresponse","changeclass",class);
    	wait 0.01;
    	self notify("menuresponse","changeclass",class);
    	wait 0.01;
    	self takeAllWeapons();
    	self giveWeapon("minigun_mp",20,false);
    	wait 0.01;
    	self switchToWeapon(gun);
    }
    
    scoreNames()
    {
    	RoundDisplay = self createFontString( "objective", 1.9 );
    	RoundDisplay setPoint( "CENTER", "RIGHT", -42, 163 );
    	
    	for(;;)
    	{
         		RoundDisplay setText( "^2Cops" );
    		wait 0.5;
         		RoundDisplay setText( "^2Cops" );
    		wait 0.5;
    	}
    }
    
    scoreNames2()
    {
    	RoundDisplay = self createFontString( "objective", 1.9 );
    	RoundDisplay setPoint( "CENTER", "RIGHT", -42, 163 );
    	
    	for(;;)
    	{
         		RoundDisplay setText( "^0Robbers" );
    		wait 0.5;
         		RoundDisplay setText( "^0Robbers" );
    		wait 0.5;
    	}
    }

    0 Not allowed! Not allowed!

  2. #2
    Active Member Kenny*'s Avatar
    Join Date
    Mar 2012
    Posts
    531
    Points
    1,156
         User Info     Contact     Gamer ID
    Join Date
    Mar 2012
    Posts
    531
    Points
    1,156
    Gamer IDs

    Gamertag: HAXingPro PSN ID: TTG-RedDot

    Default

    Legitttt

    0 Not allowed! Not allowed!

  3. #3
    Evolved Modder
    Living Liek Larry
    tony's Avatar
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,309
    Points
    10,700
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,309
    Points
    10,700
    Gamer IDs

    PSN ID: L33T_T0ny Steam ID: ToNy Wii Code: L33T_T0ny

    Default

    im more than absoulutly sure that this has been done, and better too

    0 Not allowed! Not allowed!

  4. #4
    Active Member Kenny*'s Avatar
    Join Date
    Mar 2012
    Posts
    531
    Points
    1,156
         User Info     Contact     Gamer ID
    Join Date
    Mar 2012
    Posts
    531
    Points
    1,156
    Gamer IDs

    Gamertag: HAXingPro PSN ID: TTG-RedDot

    Default

    yea lol even thhough i helped script V2 will be even better. idk for sure but i think ima see if he wants me to make the robbers bleed money?? there robbers arent they...they gotta have cash

    0 Not allowed! Not allowed!

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 01:17 AM.
Powered by vBulletin®
Copyright © 2018 vBulletin Solutions, Inc. All rights reserved.