[GameMode] Los Santos Cops n Robbers - From Scratch
#1

Soyea, I was bored one afternoon, so I just opened pawno and decided to make it. Without further ado, let's begin.

Credits


-The dude who made ZCMD (Zeex)
-The dude who made GVars (the one that actually works) (Incognito)
-SSCANF <3 (******)
-Who ever came up with the idea of PVars and the tutorial on SAMP wiki on how to use them <3
-DUDB/Draco Blue <3
-BMUK and LVRCR 1.7 for the Checkpoints
-The Creator of xObjects (Who ever you are)
-Me for the /getcp command (I love it, it's simple )


Features
-Lots of robbery places, explained later.
-Houses with house owners and names. That'll be explained later. (With house cars for a few houses)
-Terrorism with the ability to blow up several places across LS, including cars
-Lots of Admin Commands
-IRC NOT IN 1.2
-Anti Cheat
-PVars and GVars
-Manual Engines (Not in 1.1)
-Automatic weather (Not in 1.1)
-Spike Strips
-100% Dialogs; no menus
-An owned drug house
-Airports (1.1)

Robberies
Many locations throughout Los Santos. They are all explained below
-69 Cent store
-Bank
-Sex Shop
-Gas Stations (More than one, like 3+)
-Dance Club
-Burger Shots in L.S
-Tatoo Parlors
-Pig Pen
-SubUrban
-Binco
-Well Stacked
In total, there's about 15+ places for Robbery.
(Few more that I might have missed)

Houses
There are 8 or so houses all made. They have owners defined by the script. To make a player owner of the house, edit this line of the house name/number.
Code:
#define HOUSE_ONE_OWNER ""
To make me the owner of that house, for example; do this
Code:
#define HOUSE_ONE_OWNER "Karagon"
There it is. Now, for the name of the house. The house name is set by default to "This house is for sell.... blah blah" Change it from:
Code:
#define House_One_Name "This house is for sell. Contact a Server Admin if you wish to buy it"
To
Code:
#define House_One_Name "This is the house name. It rox"
They all have interiors and a few have houses. To make your own at your location, just follow the way I did them. They are mostly located near Vinewood and in the high end parts of L.S.

Terrorism
As a terrorist, you have to blow things up to create chaos in L.S. There's a few places for you to blow up:
-The Vinewood sign (Experience required)
-The Amusement park in south L.S (Experience Required (Max))
-Bank (Half experience needed)
-Los Santos Airport
-Cars

You must buy explosives from the bomb shop, not far from the airport.

IRC
For IRC, edit the following:
Code:
//IRC

#define BOT_1_NICKNAME ""
#define BOT_1_REALNAME ""
#define BOT_1_USERNAME ""

#define BOT_2_NICKNAME ""
#define BOT_2_REALNAME ""
#define BOT_2_USERNAME ""

#define IRC_SERVER ""
#define IRC_PORT (6667)
#define IRC_CHANNEL "#"
#define IRC_ADMINCHANNEL "#"
#define MAX_BOTS (2)
To include your network and channels.

Manual Engines
Simple type the following commands to do the functions to a vehicle:
/engine or press "2" - Turn it on
/boot - Pop the boot up/down
/bonnet - Pop the bonnet up/down
/lights - Turn on your lights
(Admin Only) - /lock - Locks your car

Automatic Weather System and Time (1.0 ONLY)
The time is synced. No need to worry about it.
For weather, it changes every 24 hours, based on random selection from the function.
To disabled weather, simple put a // at the line below
Code:
SetTimer("Weather", 1000*60*24, 1); //Weather - comment to take it out
Make it
Code:
//SetTimer("Weather", 1000*60*24, 1); //Weather - comment to take it out
To take it out.

Spike Strips
I saw this on the SA-MP forums, and thought'll be cool. I decided to edit it just a bit and change it up, and it's gotten to this:
-Cops/Army can use them. When a player gets near them, their tires will pop.
Use /spike and /remspike to remove them (Look below for confirmation)

Drug House
This can be owned by a player. Do make a player own this, simple add the following:
Code:
//Biz owners
#define Drug_House_Owner ""
For me to own it, as an example, you would do the following:
Code:
//Biz owners
#define Drug_House_Owner "Karagon"
Simple. Just change the name, of course.

Classes/Skills/Jobs
Cops - 20 Score minimum
FBI - 400 I think is the minimum score
Army - Admin Assigned
Terrorist
Rapist
Thief
Private Medic

The Elite Class
This is given to the player by an Admin. They can use the Elite Player Chat and /afk.

Commands
There's lots of commands. All of it's done in ZCMD and what I call "compressed code" formatting. Instead of 3-4 lines for a check, it checks it in one line. In my mind, it should be faster. I don't know that to be 100% certain.
Cops - Army - FBI
/cuff (ID) - Cuffs a player
/ar (ID) - Player must be cuffed
/search (ID) - Searches a player for illegal items (Pot/Explosives)
/spike - Places a spike
/remspike - Removes a spike
/fine (ID) - Fines a Yellow player, like a ticked. (One star wanted)

Rapist
/rape (ID) - rape a player
/fondle (ID) - Fondles a player

Terrorist
/blow - Depending on the checkpoint, blow it up
/bomb - Plant a car bomb in your car. It will explode soon

Thief
/rob (ID) -Robs a player

Private Medic
/infect (ID) - Infects a player
/healme - Heals yourself
/heal (ID) - Heals a player
/cure (ID) - Cures a player

General Commands
/medic Calls for a medic
/smoke - Smokes a cigar, must have one, and heals health
/pot - Smokes a joint with a pipe and pot
/snack - Eats a snack, cures you
/pm (ID) (Message) PMs a player
/report (ID) (Reason) Sends a report on the ID to the admins

Admin Commands
Admin Commands are as follows:
/startevent - Starts an Admin event
/endevent - Ends an Admin event
/eventweapon (WeaonID) (Ammo) Gives an event weapon (Ban Weapons are allowed)
/jail (ID) (Reason) Admin Jails a player
/unjail (ID) (Reason) Admin Unjails a player
/adban (ID) (reason) Bans a player
/adkick (ID) (reason) Admin Kicks a player
/freeze (ID) (reason) Freezes a player
/unfreeze (ID) (Reason) Unfreezes a player
/lock Locks your car, unlocks when you get out
/spec (ID) Spectates a player
/specoff - Turns off Specate
/ad (message) Talk to Other Admins
/admin (message) Speak with *Admin: Kinda like /rcon say
/goto (ID) Puts you near a player
/bring (ID) Brings a player to you
/jetpack Gives you a jetpack
/warn (ID) (Reason) Warns the player to follow the rules
/elite (ID) Gives a player Elite Status
/unelite (ID) Takes a player's Elite Status
/army (ID) Gives a player permission to play as army
/unarmy (ID) Takes a player's permission to play as army
/mute (ID) (Reason) Mutes a player
/unmute (ID) (Reason) Unmutes a player
/admode Goes off/on Admin Mode
/repaircar (ID) Fixes that person's car
/adgc (ID) (Amount) Gives a selected player cash
/nos (ID) Gives a player nos
/adheal (ID) Heals and cures a player
/adarmour (ID) Gives a player armour
/adcmds Shows a dialog of Admin Commands

Elite Player Commands
/afk - Go AFK
/ec (Message) Talk in that chat wave

IRC Commands NOT IN 1.2
!say <message> Speaks In game, must have a voice
!pm <ID> <Message> PMs a player in game
!admin <Message> Speaks with IRC Admin: in game. Must have channel op
!warn <ID> <Reason> Warns a player
!freeze <ID> <Reason> Freezes a player
!unfreeze <ID> <Reason> Unfreezes a player
!mute <ID> <Reason> Mutes a player
!unmute <ID> <reason> Unmutes a player
!kick <ID> <Reason> Kicks a player
!rcon <Command> Sends an RCON Command (Needed for GMX) (AO's only)
!nameban <Name> Bans a player via Player file and bans their ip
!Unban <Name> Unbans a player and their IP
!ann <Announcement> Sends Game Mode text across the screen
!fc <Message> Fake chat, simple lol


Information/Changelog about 1.2:
-1.2 Changelog:
-Removed IRC
-Made some Script Optimizations (Removing LSPD1, LSPD2, etc, replacing it with Arrays)
-Removed all the ol' GetPlayerName calls and so forth into PlayerInfo(playerid)


Information About 1.1
To increase speed, I redefined MAX_PLAYERS to 32. This means that the script will only count players up to ID 32 or so. So, if you wish to have a larger server, you need to change the following things in the script:
Code:
#undef MAX_PLAYERS
#define MAX_PLAYERS (32)
(Line ~34)
That's for the normal players. Next, the check point streamer

Code:
#define MAX_PLAYERS_ 32
(Line 96


Script Properties
(1.0)
8, 469 Lines long. The longest script I have personally done.
PVars and GVars.
Three weeks to make it

(1.1)
8,677 lines long.
PVars and GVars

(1.2)
8,089 Lines long



Change log
Version 1.0 - Original Release
Version 1.1 - Former Release
Version 1.2 - Current Release
Major script overhaul. After realizing the speed, this was updated and is now ~400% faster than what it was
Removed the weather
Removed the on/off thing for cars
Added an Airport
Fixed a few spelling/grammar errors
Mapicons
Speedometer

Version 1.1.1:
-Conversion for SA:MP 0.3e

Version 1.2:
-1.2 Changelog:
-Removed IRC
-Made some Script Optimizations (Removing LSPD1, LSPD2, etc, replacing it with Arrays)
-Removed all the ol' GetPlayerName calls and so forth into PlayerInfo(playerid)



Downloads
NO MIRRORS
Version 1.2



Version 1.1.1 (Old)
Download CnR1.1.zip
IRC .SO Plugin by Incognito (FOR LINUX VERSIONS)
Version 1.0


Enjoy!
Reply


Messages In This Thread
[0.3e]LS Cops and Robbers (1.2 - Update September 16th, 2012) - by Karagon - 26.07.2011, 15:04
Re: Los Santos Cops n Robbers - From Scratch - by selten98 - 26.07.2011, 15:07
Re: Los Santos Cops n Robbers - From Scratch - by Karagon - 26.07.2011, 15:09
Re: Los Santos Cops n Robbers - From Scratch - by sam1929 - 26.07.2011, 15:19
Re: Los Santos Cops n Robbers - From Scratch - by blackguard3 - 02.08.2011, 19:19
Re: Los Santos Cops n Robbers - From Scratch - by xPhantom - 02.08.2011, 19:31
Re: Los Santos Cops n Robbers - From Scratch - by Karagon - 03.08.2011, 21:55
Re: Los Santos Cops n Robbers - From Scratch - by Chrillzen - 04.08.2011, 01:28
Re: Los Santos Cops n Robbers - From Scratch - by Karagon - 04.08.2011, 02:01
Re: Los Santos Cops n Robbers - From Scratch - by GamerXCrrpg - 04.08.2011, 10:42
Re: Los Santos Cops n Robbers - From Scratch - by Infamous - 04.08.2011, 10:44
Re: Los Santos Cops n Robbers - From Scratch - by Karagon - 04.08.2011, 16:42
Re: Los Santos Cops n Robbers - From Scratch - by VoidTheFate - 07.08.2011, 15:31
Re: Los Santos Cops n Robbers - From Scratch - by Karagon - 08.08.2011, 02:03
Re: Los Santos Cops n Robbers - From Scratch - by Famalamalam - 08.08.2011, 02:22
Re: Los Santos Cops n Robbers - From Scratch - by Donya - 08.08.2011, 02:50
Re: Los Santos Cops n Robbers - From Scratch - by FaSihYouSf - 08.08.2011, 02:51
Re: Los Santos Cops n Robbers - From Scratch - by Famalamalam - 08.08.2011, 03:14
Re: Los Santos Cops n Robbers - From Scratch - by -CaRRoT - 08.08.2011, 05:16
Re: Los Santos Cops n Robbers - From Scratch - by Collin - 08.08.2011, 07:20
Re: Los Santos Cops n Robbers - From Scratch - by Godhimself - 08.08.2011, 07:44
Re: Los Santos Cops n Robbers - From Scratch - by mariosv819 - 08.08.2011, 11:29
Re: Los Santos Cops n Robbers - From Scratch - by Sensitive - 08.08.2011, 14:28
Re: Los Santos Cops n Robbers - From Scratch - by Karagon - 08.08.2011, 21:32
Re: Los Santos Cops n Robbers - From Scratch - by svaba - 09.08.2011, 18:52
Re: Los Santos Cops n Robbers - From Scratch - by Karagon - 09.08.2011, 19:47
Re: Los Santos Cops n Robbers - From Scratch - by Cpt.Markus - 09.08.2011, 20:08
Re: Los Santos Cops n Robbers - From Scratch - by Karagon - 09.08.2011, 21:13
Re : Los Santos Cops n Robbers - From Scratch - by Baba_oweo - 04.12.2011, 20:33
Re: Re : Los Santos Cops n Robbers - From Scratch - by Karagon - 05.12.2011, 01:22
Re: Los Santos Cops n Robbers - From Scratch - by DjoleRazbijac - 30.04.2012, 20:56
Re: Los Santos Cops n Robbers - From Scratch - by [Cali]ChrOnic - 07.05.2012, 10:58
Re: Los Santos Cops n Robbers - From Scratch - by sscarface - 07.05.2012, 11:02
Re: Los Santos Cops n Robbers - From Scratch - by Skavanovski - 07.05.2012, 16:52
Re: Los Santos Cops n Robbers - From Scratch - by Karagon - 07.05.2012, 20:37
Re: Los Santos Cops n Robbers - From Scratch - by DjoleRazbijac - 14.05.2012, 22:10
Re: Los Santos Cops n Robbers - From Scratch - by pasha97 - 15.05.2012, 03:27
Re: Los Santos Cops n Robbers - From Scratch - by Samp_India - 15.05.2012, 03:28
Re: Los Santos Cops n Robbers - From Scratch - by $$inSane - 18.05.2012, 08:55
Re: Los Santos Cops n Robbers - From Scratch - by DjoleRazbijac - 24.05.2012, 20:50
Re: Los Santos Cops n Robbers - From Scratch - by professionalkiller - 13.09.2014, 12:52
Re: Los Santos Cops n Robbers - From Scratch - by professionalkiller - 13.09.2014, 13:02
Re: Los Santos Cops n Robbers - From Scratch - by tol2ino - 21.03.2017, 09:25
Re: Los Santos Cops n Robbers - From Scratch - by jasper091 - 13.04.2018, 16:56
Re: Los Santos Cops n Robbers - From Scratch - by Eduardof077 - 14.04.2018, 06:15

Forum Jump:


Users browsing this thread: 1 Guest(s)