[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
#2

the IRC thingie i bet its incognitos. And i think you did some hell of a job again.

!Unabn <Name> Unbans a player and their IP

->

!Unban ??
Reply
#3

Yea, it is Incognitos, couldnt' think of the name or how to spell it.

@Error: Fixed
Reply
#4

bro this is Tom Tom_Fox From Crrpg i can't Waite to test this good job and i hope we can get to talk again this looks real good keep up the good work bro That's All From Tom_Fox.
Reply
#5

how to make somone admin?
Reply
#6

@BlackGuard, I think you'll have to go thru script files. You'll see admin arank setting or something!
Reply
#7

Sorry for late response, just looked here

This is what you have to do, blackguard3:

This is an example player file
Code:
password_hash=192479972
Score=0
Cash=0
BankCash=0
AdminLevel=0
Banned=0
IP=0.0.0.0
WantedLevel=0
Warnings=0
HasPack=1
ArmyPermission=0
PackCash=0
PackSnack=0
PackPipe=0
PackPot=0
PackCondom=0

JailTime=0
RobSkill=0
Elite=0
TerrorSkill=0
PackExp=0
That what it may look like. To make someone admin change
Code:
AdminLevel=0
To
Code:
AdminLevel=1337
And he's admin. It's the same for Elite and Army permission.
Reply
#8

Where exactly is the bomb shop?
Reply
#9

Yea, I forgot to add map icons to the map, to help ya out. I'll do that in the next version, or just release an FS with this to add to it if you wish. Here's a map of the area, with the following places marked:
T- Terrorism
B- Bank
D- Drug House
Star = Bomb Shop
Reply
#10

I must say, BMUK didn't made the checkpoint streamer. At least he said so in Stevo's gamemode.
Very good job Karagon, I hope to see the new release of this.
Reply
#11

I think it was Mabako that made the streamer, good job Kara.
Reply
#12

The script is simple for a reason, if any of you have that question. I made it simple so other people can add things to it without much of an issue. Like the housing system, it's simple, not like 10 things to do for a house. Just a few things.


And thanks guys
Reply
#13

i know this is late, but how can i disable the anti hacks? my own admins even get banned. D:
Reply
#14

That shouldn't happen, make sure that they are player file admin 1337. It doesn't detect RCON admin. I didn't happen to think of that.

I tested it, and I didn't get banned.
Reply
#15

Quote:

The dude who made the IRC plugin, forget his name

Incognito.
Quote:

The creator of ZCMD

ZeeX.
Quote:

The dude who made GVars (The ones that actually work)

Incognito.
Quote:

The Creator of xObjects for the object streamer

Boylett.
Reply
#16

Quote:
Originally Posted by Famalamalam
View Post
Incognito.

ZeeX.

Matthias.

Boylett.
Incognito made the GVars? lol..erm
Reply
#17

nice one lets try it
8/10
Reply
#18

Quote:
Originally Posted by Donya
View Post
Incognito made the GVars? lol..erm
Uh? Is that a question or something?

EDIT: LOL, I just realized.
Reply
#19

Quote:

They all have interiors and a few have houses.

you mean Cars ? lol


and that GM is awesome dude
Reply
#20

I tested it out, and I love it! Very Nice work!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)