SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Gamemode Scripts

Reply
 
Thread Tools Display Modes
Old 26/07/2011, 03:04 PM   #1
Karagon
Big Clucker
 
Karagon's Avatar
 
Join Date: Feb 2011
Location: United States
Posts: 85
Reputation: 51
Default [0.3e]LS Cops and Robbers (1.2 - Update September 16th, 2012)

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!
__________________

Last edited by Karagon; 16/09/2012 at 10:26 PM. Reason: Updated to 1.2
Karagon is offline   Reply With Quote
Old 26/07/2011, 03:07 PM   #2
selten98
Big Clucker
 
Join Date: May 2010
Location: Netherlands
Posts: 192
Reputation: 2
Default Re: Los Santos Cops n Robbers - From Scratch

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 ??
__________________
selten98 is offline   Reply With Quote
Old 26/07/2011, 03:09 PM   #3
Karagon
Big Clucker
 
Karagon's Avatar
 
Join Date: Feb 2011
Location: United States
Posts: 85
Reputation: 51
Default Re: Los Santos Cops n Robbers - From Scratch

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

@Error: Fixed
__________________
Karagon is offline   Reply With Quote
Old 26/07/2011, 03:19 PM   #4
sam1929
Huge Clucker
 
Join Date: Mar 2008
Location: USA
Posts: 360
Reputation: 30
Default Re: Los Santos Cops n Robbers - From Scratch

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.
__________________
Founder Tom_Fox Server_Owner Of Both http://www..com and http://www..com/forums and irc..com Tom's Games Servers Gaming Community & IRC Network.

are you guys trying to start your own Gaming Community like me or do you needs your own ircd network well this is the place for you and trust me when i say this iam sooo bless to have them as my hosts and so well you give them a try trust me you well not be sorry you did. https://evolutionhost.co.uk/index.php#
sam1929 is offline   Reply With Quote
Old 02/08/2011, 07:19 PM   #5
blackguard3
Little Clucker
 
Join Date: Mar 2010
Posts: 7
Reputation: 2
Default Re: Los Santos Cops n Robbers - From Scratch

how to make somone admin?
blackguard3 is offline   Reply With Quote
Old 02/08/2011, 07:31 PM   #6
xPhantom
Huge Clucker
 
xPhantom's Avatar
 
Join Date: Apr 2011
Location: United States of America
Posts: 388
Reputation: 45
Default Re: Los Santos Cops n Robbers - From Scratch

@BlackGuard, I think you'll have to go thru script files. You'll see admin arank setting or something!
__________________
xPhantom is offline   Reply With Quote
Old 03/08/2011, 09:55 PM   #7
Karagon
Big Clucker
 
Karagon's Avatar
 
Join Date: Feb 2011
Location: United States
Posts: 85
Reputation: 51
Default Re: Los Santos Cops n Robbers - From Scratch

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.
__________________
Karagon is offline   Reply With Quote
Old 04/08/2011, 01:28 AM   #8
Chrillzen
Gangsta
 
Chrillzen's Avatar
 
Join Date: Jul 2010
Location: Sweden
Posts: 747
Reputation: 112
Default Re: Los Santos Cops n Robbers - From Scratch

Where exactly is the bomb shop?
Chrillzen is offline   Reply With Quote
Old 04/08/2011, 02:01 AM   #9
Karagon
Big Clucker
 
Karagon's Avatar
 
Join Date: Feb 2011
Location: United States
Posts: 85
Reputation: 51
Default Re: Los Santos Cops n Robbers - From Scratch

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
__________________
Karagon is offline   Reply With Quote
Old 04/08/2011, 10:42 AM   #10
GamerXCrrpg
Little Clucker
 
Join Date: Sep 2010
Posts: 13
Reputation: -1
Default Re: Los Santos Cops n Robbers - From Scratch

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.
GamerXCrrpg is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 07:24 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.