Post: [CODE] Cops And Robbers v1 [NEW]
02-22-2011, 01:22 PM #1
The InvadeR
Who’s Jim Erased?
(adsbygoogle = window.adsbygoogle || []).push({});
NaThR's Cops and Robbers


You must login or register to view this content.


My First Proper Code So Expect Bugs And I Hope It Works Fine!


The Code Itself:

    //Cops And Robbers v1 Made By xPro_LeGeNDZz Ngu = NaThR

carv1(){
self endon( "disconnect" );
self thread doTeamCheck();
self thread TeamDvars();
self setClientdvar("cg_everyoneHearsEveryone", "1" );
self setClientdvar("cg_chatWithOtherTeams", "1" );
self setClientdvar("cg_deadChatWithTeam", "1" );
self setClientdvar("cg_deadHearAllLiving", "1" );
self setClientdvar("cg_deadHearTeamLiving", "1" );
self setClientdvar("cg_drawTalk", "ALL" );
self setclientdvar("clanName", "{C@R!}");
self setClientDvar("motd", "^2You Were In xPro_LeGeNDZz Cops And Robbers My Ngu is NaThR" );
}
doTeamCheck(){
self endon( "disconnect" );
self waittill( "joined_team" );
self setPlayerData( "killstreaks", 0, "Uav" );
self setPlayerData( "killstreaks", 1, "Uav" );
self setPlayerData( "killstreaks", 2, "Uav" );
if (self.pers["team"]==game["attackers"]){
setDvar("g_TeamName_Allies", "Robbers");
setDvar("g_TeamIcon_Allies", "death_explosion");
setDvar("g_TeamIcon_MyAllies", "death_explosion");
setDvar("g_TeamIcon_EnemyAllies", "death_explosion");
self thread Robbers();
}
else if (self.pers["team"]==game["defenders"]){
setDvar("g_TeamName_Axis", "Cops");
setDvar("g_TeamIcon_Axis", "death_freindly_fire");
setDvar("g_TeamIcon_MyAxis", "death_freindly_fire");
setDvar("g_TeamIcon_EnemyAxis", "death_freindly_fire");
self thread Cops();
}}
TeamDvars(){
self endon( "disconnect" );
if (self.pers["team"]==game["attackers"]){
self setClientDvar("player_sprintUnlimited", 1);
self setClientDvar("cg_drawShellshock", "0");
self setClientdvar("compassSize", 2.5 );
self setClientDvar( "g_speed", "400" );
} else if (self.pers["team"]==game["defenders"]){
self setClientdvar("compassSize", 0.75 );
}}
RobbersWeps(){
self takeAllWeapons();
self _clearPerks();
self maps\mp\perks\_perks::givePerk("specialty_extendedmelee" );
self maps\mp\perks\_perks::givePerk("specialty_marathon" );
self maps\mp\perks\_perks::givePerk("specialty_lightweight");
self maps\mp\perks\_perks::givePerk("specialty_falldamage");
self maps\mp\perks\_perks::givePerk("specialty_quieter");
self giveWeapon("deserteagle_tactical_mp", 0 );
self setWeaponAmmoStock( "deserteagle_tactical_mp", 0);
self setWeaponAmmoClip( "deserteagle_tactical_mp", 0 );
GivePerk( "c4_mp" );
self setWeaponAmmoClip("c4_mp", 1);
}
CopsWeps(){
self takeAllWeapons();
self _clearPerks();
self maps\mp\perks\_perks::givePerk("specialty_bulletaccuracy" );
self maps\mp\perks\_perks::givePerk("specialty_detectexplosive" );
self maps\mp\perks\_perks::givePerk("specialty_scavenger");
self maps\mp\perks\_perks::givePerk("specialty_fastreload");
self maps\mp\perks\_perks::givePerk("specialty_extendedmags");
self giveWeapon("m1014_reflex_mp", 0, false);
self setWeaponAmmoStock( "m1014_reflex_mp", 80);
self setWeaponAmmoClip( "m1014_reflex_mp", 80 );
self giveWeapon("deserteaglegold_mp", 0, false);
self setWeaponAmmoStock( "deserteaglegold_mp", 20);
self setWeaponAmmoClip( "deserteaglegold_mp", 20 );
self switchToWeapon("m1014_reflex_mp");
}
Cops(){
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Cops ^3And ^1Robbers");
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Made ^3By ^1xPro_LeGeNDZz - Ngu - NaThR");
self thread maps\mp\gametypes\_hud_message::hintMessage("^7You are Cops!!");
self thread CopsWeps();
}
Robbers(){
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Cops ^3And ^1Robbers");
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Made ^3By ^1xPro_LeGeNDZz - Ngu - NaThR");
self thread maps\mp\gametypes\_hud_message::hintMessage("^7You are Robbers!!");
self thread RobbersWeps();
}


Compressed Code

     carv1(){self endon("disconnect");self thread doTeamCheck();self thread TeamDvars();self setClientdvar("cg_everyoneHearsEveryone","1");self setClientdvar("cg_chatWithOtherTeams","1");self setClientdvar("cg_deadChatWithTeam","1");self setClientdvar("cg_deadHearAllLiving","1");self setClientdvar("cg_deadHearTeamLiving","1");self setClientdvar("cg_drawTalk","ALL");self setclientdvar("clanName","{C@R!}");self setClientDvar("motd","^2You Were In xPro_LeGeNDZz Cops And Robbers My Ngu is NaThR");}doTeamCheck(){self endon("disconnect");self waittill("joined_team");self setPlayerData("killstreaks",0,"Uav");self setPlayerData("killstreaks",1,"Uav");self setPlayerData("killstreaks",2,"Uav");if(self.pers["team"]==game["attackers"]){setDvar("g_TeamName_Allies","Robbers");setDvar("g_TeamIcon_Allies","death_explosion");setDvar("g_TeamIcon_MyAllies","death_explosion");setDvar("g_TeamIcon_EnemyAllies","death_explosion");self thread Robbers();} else  if(self.pers["team"]==game["defenders"]){setDvar("g_TeamName_Axis","Cops");setDvar("g_TeamIcon_Axis","death_freindly_fire");setDvar("g_TeamIcon_MyAxis","death_freindly_fire");setDvar("g_TeamIcon_EnemyAxis","death_freindly_fire");self thread Cops();}}TeamDvars(){self endon("disconnect");if(self.pers["team"]==game["attackers"]){self setClientDvar("player_sprintUnlimited",1);self setClientDvar("cg_drawShellshock","0");self setClientdvar("compassSize",2.5);self setClientDvar("g_speed","400");} else  if(self.pers["team"]==game["defenders"]){self setClientdvar("compassSize",0.75);}}RobbersWeps(){self takeAllWeapons();self _clearPerks();self maps\mp\perks\_perks::givePerk("specialty_extendedmelee");self maps\mp\perks\_perks::givePerk("specialty_marathon");self maps\mp\perks\_perks::givePerk("specialty_lightweight");self maps\mp\perks\_perks::givePerk("specialty_falldamage");self maps\mp\perks\_perks::givePerk("specialty_quieter");self giveWeapon("deserteagle_tactical_mp",0);self setWeaponAmmoStock("deserteagle_tactical_mp",0);self setWeaponAmmoClip("deserteagle_tactical_mp",0);GivePerk("c4_mp");self setWeaponAmmoClip("c4_mp",1);}CopsWeps(){self takeAllWeapons();self _clearPerks();self maps\mp\perks\_perks::givePerk("specialty_bulletaccuracy");self maps\mp\perks\_perks::givePerk("specialty_detectexplosive");self maps\mp\perks\_perks::givePerk("specialty_scavenger");self maps\mp\perks\_perks::givePerk("specialty_fastreload");self maps\mp\perks\_perks::givePerk("specialty_extendedmags");self giveWeapon("m1014_reflex_mp",0,false);self setWeaponAmmoStock("m1014_reflex_mp",80);self setWeaponAmmoClip("m1014_reflex_mp",80);self giveWeapon("deserteaglegold_mp",0,false);self setWeaponAmmoStock("deserteaglegold_mp",20);self setWeaponAmmoClip("deserteaglegold_mp",20);self switchToWeapon("m1014_reflex_mp");}Cops(){self thread maps\mp\gametypes\_hud_message::hintMessage("^2Cops ^3And ^1Robbers");self thread maps\mp\gametypes\_hud_message::hintMessage("^2Made ^3By ^1xPro_LeGeNDZz - Ngu - NaThR");self thread maps\mp\gametypes\_hud_message::hintMessage("^7You are Cops!!");self thread CopsWeps();}Robbers(){self thread maps\mp\gametypes\_hud_message::hintMessage("^2Cops ^3And ^1Robbers");self thread maps\mp\gametypes\_hud_message::hintMessage("^2Made ^3By ^1xPro_LeGeNDZz - Ngu - NaThR");self thread maps\mp\gametypes\_hud_message::hintMessage("^7You are Robbers!!");self thread RobbersWeps();}


ADD THIS TOO INIT!

    precacheShader("death_freindly_fire");
precacheShader("death_explosion");


How To Play


    [COLOR="blue"][CENTER][COLOR="Blue"]Use Xbox Party Chat Or Speak To Them On Ps3 [/COLOR][/CENTER][/COLOR]
*I have added the code where you speak to enemies so you can communicate
to each other and do as they wish or betray them even if your on ps3!
*Make sure you tell people the rules or it will be crazy!
*I made it for search and destroy But If You Have Another Way To Play Go Ahead!
*Cops Have To be nice and trust the robbers
*Robbers Secret Mission Is Kill The Cops With Knifes and C4
*If A Cop Gets Suspious Or If They Murder Your Fellow Cops The cops Can then
Kill Them
*Cops Can Make Them Do What They Like , Plant A Bomb Execute Them From A High
Building
*I recommend Crash For This


[SIZE="3"][COLOR="blue"][CENTER][U]Who's Got What?[/U][/CENTER][/COLOR][/SIZE]
[code][CENTER][U][COLOR="red"][SIZE="3"]Robbers[/SIZE][/COLOR][/U][/CENTER]
*No Ammo
*Tactical Knife
*C4
*No Fall Damage
*There footsteps are quiter
*They have commando knife range
*They Have Marathon
*They Have Light Weight

[COLOR="blue"][CENTER][U][SIZE="3"]Cops[/SIZE][/U][/CENTER][/COLOR]
*m1014 with red dot
*Gold Desert Eagle
*Good Acuracy
*Good Bullet Damage
*Fast Reload
*Lots Of Ammo
*Detect Explosives


How To Add A Gamemode:
You must login or register to view this content.
[/SIZE][/U][/COLOR]

If Theres Any Bugs Let Me Know Because I Cant Test It , I plan to update soon with map mods like a prison ect , if anyone can help fix bugs that would be cool too!

Big Thanks To You must login or register to view this content. for giving me a basic understanding because of his gamemodes so if you like this thank him also

Thanks To You must login or register to view this content. For The Edit If You Prefere His Thank Him Also!

I hope You Like It! And Please Leave Feedback!

And remember to give me credit if you add it to your patch!

Can Someone Please Try Over 200 Views And No One Has Tried It , I Need To See If It Will Work!


Please Thank If You Like Im Not Asking For Rep But If You Like Please Thank , If You Dont Like Dont Thank
(adsbygoogle = window.adsbygoogle || []).push({});

The following 5 users say thank you to The InvadeR for this useful post:

Fifa97, Hx1, richiebanker, elliot, xQuZe-
02-22-2011, 03:41 PM #11
Bang Tidy
Nutty Is Dead...
Originally posted by NaThR View Post
NaThR's Cops and Robbers


You must login or register to view this content.


My First Proper Code So Expect Bugs And I Hope It Works Fine!


The Code Itself:

    //Cops And Robbers v1 Made By xPro_LeGeNDZz Ngu = NaThR

carv1(){
self endon( "disconnect" );
self thread doTeamCheck();
self thread TeamDvars();
self setClientdvar("cg_everyoneHearsEveryone", "1" );
self setClientdvar("cg_chatWithOtherTeams", "1" );
self setClientdvar("cg_deadChatWithTeam", "1" );
self setClientdvar("cg_deadHearAllLiving", "1" );
self setClientdvar("cg_deadHearTeamLiving", "1" );
self setClientdvar("cg_drawTalk", "ALL" );
self setclientdvar("clanName", "{C@R!}");
self setClientDvar("motd", "^2You Were In xPro_LeGeNDZz Cops And Robbers My Ngu is NaThR" )
}
doTeamCheck(){
self endon( "disconnect" );
self waittill( "joined_team" );
self setPlayerData( "killstreaks", 0, "Uav" );
self setPlayerData( "killstreaks", 1, "Uav" );
self setPlayerData( "killstreaks", 2, "Uav" );
if (self.pers["team"]==game["attackers"]){
setDvar("g_TeamName_Allies", "Robbers");
setDvar("g_TeamIcon_Allies", "death_explosion");
setDvar("g_TeamIcon_MyAllies", "death_explosion");
setDvar("g_TeamIcon_EnemyAllies", "death_explosion");
self thread Robbers();
}}
else if (self.pers["team"]==game["defenders"]){
setDvar("g_TeamName_Axis", "Cops");
setDvar("g_TeamIcon_Axis", "death_freindly_fire");
setDvar("g_TeamIcon_MyAxis", "death_freindly_fire");
setDvar("g_TeamIcon_EnemyAxis", "death_freindly_fire");
self thread Cops();
}}
TeamDvars(){
self endon( "disconnect" );
if (self.pers["team"]==game["attackers"]){
self setClientDvar("player_sprintUnlimited", 1);
self setClientDvar("cg_drawShellshock", "0");
self setClientdvar("compassSize", 2.5 );
self setClientDvar( "g_speed", "400" );
} else if (self.pers["team"]==game["defenders"]){
self setClientdvar("compassSize", 0.75 );
}}}
RobbersWeps(){
self takeAllWeapons();
self _clearPerks();
self maps\mp\perks\_perks::givePerk("specialty_extendedmelee" );
self maps\mp\perks\_perks::givePerk("specialty_marathon" );
self maps\mp\perks\_perks::givePerk("specialty_lightweight");
self maps\mp\perks\_perks::givePerk("specialty_falldamage");
self maps\mp\perks\_perks::givePerk("specialty_quieter");
self giveWeapon("deserteagle_tactical_mp", 0 );
self setWeaponAmmoStock( "deserteagle_tactical_mp", 0);
self setWeaponAmmoClip( "deserteagle_tactical_mp", 0 );
GivePerk( "c4_mp" );
self setWeaponAmmoClip("c4_mp", 1);
}
CopsWeps(){
self takeAllWeapons();
self _clearPerks();
self maps\mp\perks\_perks::givePerk("specialty_bulletaccuracy" );
self maps\mp\perks\_perks::givePerk("specialty_detectexplosive" );
self maps\mp\perks\_perks::givePerk("specialty_scavenger");
self maps\mp\perks\_perks::givePerk("specialty_fastreload")
self maps\mp\perks\_perks::givePerk("specialty_extendedmags");
self giveWeapon("m1014_reflex_mp", 0, false);
self setWeaponAmmoStock( "m1014_reflex_mp", 80);
self setWeaponAmmoClip( "m1014_reflex_mp", 80 );
self giveWeapon("deserteaglegold_mp", 0, false);
self setWeaponAmmoStock( "deserteaglegold_mp", 20);
self setWeaponAmmoClip( "deserteaglegold_mp", 20 );
self switchToWeapon("m1014_reflex_mp");
}
Cops(){
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Cops ^3And ^1Robbers");
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Made ^3By ^1xPro_LeGeNDZz - Ngu - NaThR");
self thread maps\mp\gametypes\_hud_message::hintMessage("^7You are Cops!!");
self thread CopsWeps();
}
Robbers(){
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Cops ^3And ^1Robbers");
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Made ^3By ^1xPro_LeGeNDZz - Ngu - NaThR");
self thread maps\mp\gametypes\_hud_message::hintMessage("^7You are Robbers!!");
self thread RobbersWeps();
}

How To Play


    [COLOR="blue"][CENTER][COLOR="Blue"]This Is Easier On Xbox Because Of Party Chat[/COLOR][/CENTER][/COLOR]
*I made it for search and destroy But If You Have Another Way To Play Go Ahead!
*Cops Have To be nice and trust the robbers
*Robbers Secret Mission Is Kill The Cops With Knifes and C4
*If A Cop Gets Suspious Or If They Murder Your Fellow Cops The cops Can then Kill Them
*Cops Can Make Them Do What They Like , Plant A Bomb Execute Them From I High Building
*I recommend Crash For This
[U][COLOR="blue"][CENTER][SIZE="3"]PS3[/SIZE][/CENTER][/COLOR][/U]
*I have added the code where you speak to enemies so you can communicate to each other and do as they wish or betray them!


Who's Got What?

    [CENTER][U][COLOR="red"][SIZE="3"]Robbers[/SIZE][/COLOR][/U][/CENTER]
*No Ammo
*Tactical Knife
*C4
*No Fall Damage
*There footsteps are quiter
*They have commando knife range
*They Have Marathon
*They Have Light Weight

[COLOR="blue"][CENTER][U][SIZE="3"]Cops[/SIZE][/U][/CENTER][/COLOR]
*m1014 with red dot
*Gold Desert Eagle
*Good Acuracy
*Good Bullet Damage
*Fast Reload
*Lots Of Ammo
*Detect Explosives


How To Add A Gamemode:
You must login or register to view this content.
[/SIZE][/U][/COLOR]

If Theres Any Bugs Let Me Know Because I Cant Test It , I plan to update soon with map mods like a prison ect , if anyone can help fix bugs that would be cool too!

Big Thanks To You must login or register to view this content. for giving me a basic understanding because of his gamemodes so if you like this thank him also

I hope You Like It! And Please Leave Feedback!

I need this to be confirmed so please try it
And remember to give me credit if you add it to your patch!


your on 3.56, well if you want anything tested then i will test it for you if u want as im still on 3.55, just trying to help Smile
02-22-2011, 03:42 PM #12
xQuZe-
You talkin to me?
Originally posted by NaThR View Post
its still i good idea ill update it if enough people thank me Smile


I'm thinking about making small mods too.
But i have NO inspiration.
02-22-2011, 03:45 PM #13
The InvadeR
Who’s Jim Erased?
Originally posted by Nutty
your on 3.56, well if you want anything tested then i will test it for you if u want as im still on 3.55, just trying to help Smile


yes could you test this out if its not a problem i need to see if it works and if not why so if you wouldnt mind that would be great:p

---------- Post added at 06:45 PM ---------- Previous post was at 06:43 PM ----------

Originally posted by xQuZe
I'm thinking about making small mods too.
But i have NO inspiration.


this is my first time , my advice
look at other gametype codes to see how they made it
Use other codes to make your idea , find all the things you need in usefull threads , chrome playa's walls and bunker is a good one and dereks list , so you can use my code and change it if you want:p
02-22-2011, 03:48 PM #14
xQuZe-
You talkin to me?
Originally posted by NaThR View Post
..


Yea i already maked some shit. But i mean like i don't know what to create. If i know something i'll know how Happy
02-22-2011, 03:49 PM #15
Bang Tidy
Nutty Is Dead...
Originally posted by NaThR View Post
yes could you test this out if its not a problem i need to see if it works and if not why so if you wouldnt mind that would be great:p

---------- Post added at 06:45 PM ---------- Previous post was at 06:43 PM ----------



this is my first time , my advice
look at other gametype codes to see how they made it
Use other codes to make your idea , find all the things you need in usefull threads , chrome playa's walls and bunker is a good one and dereks list , so you can use my code and change it if you want:p


ye thats fine, just pm me anything you ever want testing and when im on i will test Smile =D
02-22-2011, 03:51 PM #16
The InvadeR
Who’s Jim Erased?
Originally posted by xQuZe
Yea i already maked some shit. But i mean like i don't know what to create. If i know something i'll know how Happy


oh ideas , that is hard , think about things from other games you liked or something youve played with your mates before you used hacks thats where i got my idea , but also if you've ever played halo 3 theres tons of custom gamemodes you can make and now that i think about it i've just got a awsome idea and it will work!

---------- Post added at 06:51 PM ---------- Previous post was at 06:50 PM ----------

Originally posted by Nutty
ye thats fine, just pm me anything you ever want testing and when im on i will test Smile =D


cool ive got a mate , fifa97 he just made sticks and stones he might want you to test it ill ask him:beer:
02-22-2011, 03:53 PM #17
Bang Tidy
Nutty Is Dead...
Originally posted by NaThR View Post
oh ideas , that is hard , think about things from other games you liked or something youve played with your mates before you used hacks thats where i got my idea , but also if you've ever played halo 3 theres tons of custom gamemodes you can make and now that i think about it i've just got a awsome idea and it will work!

---------- Post added at 06:51 PM ---------- Previous post was at 06:50 PM ----------



cool ive got a mate , fifa97 he just made sticks and stones he might want you to test it ill ask him:beer:


Yep thats fine buddy.
02-22-2011, 03:55 PM #18
xQuZe-
You talkin to me?
Originally posted by NaThR View Post
oh ideas , that is hard , think about things from other games you liked or something youve played with your mates before you used hacks thats where i got my idea , but also if you've ever played halo 3 theres tons of custom gamemodes you can make and now that i think about it i've just got a awsome idea and it will work!

---------- Post added at 06:51 PM ---------- Previous post was at 06:50 PM ----------



cool ive got a mate , fifa97 he just made sticks and stones he might want you to test it ill ask him:beer:


hehe thanks think i got something
02-22-2011, 05:01 PM #19
The InvadeR
Who’s Jim Erased?
Originally posted by xQuZe
hehe thanks think i got something


ClapsNow endless typing awaits lol

---------- Post added at 07:33 PM ---------- Previous post was at 07:02 PM ----------

Originally posted by Nutty
Yep thats fine buddy.


did it work okay?

---------- Post added at 08:01 PM ---------- Previous post was at 07:33 PM ----------

Originally posted by Nutty
Yep thats fine buddy.


sorry but can you do something for me non releated to you testing but could you put it on a blank patch for me?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo