[GameMode] [EO] Los Santos Cops and Robbers
#1

Los Santos
EO Cops and Robbers

Released 03/22/2017 ( version 4.0 )




  • Layout
    • > Credits
    • > Description
    • > Features
    • > Bank Robbery Guide
    • > Preview
    • > Installation Tips
    • > Requirements
    • > Download Links
    • > FAQ
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
  • Credits
    Code:
     Credits first, because they are important
     Scripter 	 : Oussama, A.K.A Compton
     a_samp		 : SA-MP Team
     YSI and sscanf2 : ******
     Whirlpool	 : ******
     Progress2	 : Created by Flбvio Toribio: flavio_toribio@hotmail.com, Now maintained by Southclaw
     Streamer 	 : Incognito
     iZCMD	  	 : Originnaly developed by Zeex
     Zones    	 : Cueball
     Dialogs  	 : Gammix
     TextMenu        : Jelly23
     Attachents FS   : Richie
     Formatex        : Slice
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
  • Description
Quote:

This is an ongoing project, started on 15/10/2016 (approximately), built entirely from scratch, I'll try to update the gamemode regularly,
This is a free to use gamemode, but on one condition, do no try to sell it or make any financial gains from it(except for selling VIP status), The only reason this was created,
is to let people share it and play with friends, Please, if you plan to use this game mode, Just include the credits!

  • Features
    Code:
     *New A simple in-game player panel control added, where you can change player options /ppanel
     *New new staff command added /changename
    
     *Change Gang system is more advanced now with ability to see offline members and gang leaders
    
     *Fix /seebw bug fixed
     *Fix /addbw bug fixed
     *Fix auto kick bug fixed
     *Fix Many bug fixed
     *Fix Minor typo fixes
    • SQLite Based: A pretty strong Data storage system with a pretty accurate security, containing 6 Tables, (Users, Ban_List, Vehicles, Businesses, Houses, ATMs, Forbidden_Words, Achievements).
    • House System: Create houses in game, see more via /rconcmds, 6 different interiors, dynamic 3D text labels, Checkpoints, pickups and map icons, the houses are robbable, so players can break in /robhouse, chances of house robbery success are 30%.
    • Fishing System: A nice way to make money legally, you just buy bait from the fishing store located at Santa maria pier, and head to a fishing stand, you can sell the fish you get at the fishing store, use /fishstats to keep track of your fish and bait.
    • Achievements System: Simple achievements to unlock for rewards like money and XP
    • Trucking System: It's up to you to choose whether you make a legal delivery or an illegal one which will obviously get your more bonus, You first need a truck and a trailer attached to it, if you leave the truck during the delivery, you will fail, same if the truck exploded.
    • Event System: A very simple Event system, See more via /eventcmds.
    • A basic integrated anti cheat system: Detects weapon,money, fly hacks
    • Businesse System: Create stores/restaurants/ammunitions/Clubs/Bars... in game, see more via /rconcmds, of course, all type of businesses are robbable /robshop, chances of success are 60%, Business revenue will increase each time someone buy something from there, which the owner can get later, /bizcmds, All Shops will have Actors in them for a more realistic touch, they will put up deffirent animations depending on the situation (When Robbing the store, When the Robbery Ends).
    • Admin System: 5 Admin levels (Trial moderator,Moderator ,Administrator,Server Manager, Community Owner), Loads of commands /level and utilities.
    • VIP System: 4 VIP Levels (Silver, Gold, Diamond, Platinum), Loads of commands /vipcmds, VIP Base, VIP Lounge, VIP Vehicles.
    • Regular Player System: Special Rank given to those who are regularly dedicated to the server, Those who attain this rank, can use some pretty interesting commands, /rpcmds.
    • Helper System: Convenient commands that serve the purpose of this class /hcmds.
    • Gang Zones System: Create capturable gang zones in game, the grant gang ranks to the gang that captures it, you will have to wait 10 minutes until you be able to capture another zone, of course this duration can be changed via the Configuration panel.
    • Gang System: Create gangs in game, each gang has a leader that can recruit, kick or disband the gang, (use /mygang for more info), gangs can level up by gathering gang rank, which can be gained from capturing areas, (use /gangs to see all available gangs)
    • Lottery System:It will be withdrawn every hour, random jackpot will be won, you can participate via /lotto, incase you forgot you lucky number, use /mylnumber.
    • Helper System:
    • Helper System:
    • Log System: Now almost every action will be registered in different logs, Available logs(AddminCommands: Will have all admin commands actions like /kick /warn /slap... | Reports: Will have all player reports | Player: Will have all Connect/Disconnect player actions | Bans: Will have all /ban and /unban command actions | Registration: Will have a account registration actions | Events: Will have all event starting/ending actions | Gamemode_History: Will have all Gamemode executing/closing/Data storing actions)
    • AFK System: Use /Afk to enable the afk mode, it will change your virtual world, and toggle your controllability, use /afk again to disable the afk mode (ony for regular players)
    • Server Bot: A bot that will display random messages(Mostly tips) to all players each amount of time, in addition to normal Bot messages, VIP Players will receive other useful tips.
    • XP Points: Another ranking system that allows you to unlock new classes and abilities, It can be attained depending on your class, it can be by robbing or arresting players, or even killing them, robbing houses and business is also a possibility to gain them, There is a XP Counter (textdraw based) at the bottom right corner of the screen, more information via /info.
    • ATM System: Create ATMs in-game, see more via /rconcmds, You can deposit, withdraw and see your balance from.
    • Bank System: Helps you manage your financial stats, it also can be robbed, see more at the bank robbery section below.
    • Tax System: Taxes will be paid every 1 hour, players with less than $500(bank cash) won't pay, all taxes will be taken from player's bank cash, normal players interest is 0.75%, VIP level 1's 0.80%, VIP level 2's 0.85%, VIP level 3's 0.92%, VIP level 4 players won't pay anything.
    • Rob Points: Ranking points gained from specific actions, see more via /info.
    • Hacking Points: Ranking points gained from specific actions, see more via /info.
    • Driving Points: Ranking points gained from specific actions, see more via /info.
    • Configuration Panel: A simple section within the Gamemode file that allows you to make some changes of the server's options, you can for an instance chance the Server's name, add the owner's name, chance the BOT's name and all server economy... etc.
    • City Hall: The center of interest, here you can chance your skill, and get life insurance or buy jail bails... etc.
    • Private Vehicle System: You can buy your personal vehicle from the vehicle dealership located near Richman area, you get a custom license plate with your name as well as a 3D Text label attached to your vehicle, see more via /vehcmds.
    • Multi Skills: There are lots of skills that you can use, they can be changed from the city hall, available Skills are (Rapist, Kidnaper, Hitman, Prostitute, Transporter, Hacker, Drug dealer, Mechanic, Terrorist), each one of these Skill have their own ability and role on all major robberies.
    • Multi Classes: There are multiple Classes, (Civilians, Cops, Army, FBI).
    • Animations: Some appropriate animation for the gamemode, which help interact with your classes.
    • Bad words system: detects swearing and auto warns people, the system can be activated or deactivated by administrator as well as the ability to add or remove forbidden words of your choice
    • GPS System:GPS system added, Enter a vehicle and type /gps
    • Donut Shop:Donut shop for cops added where you can buy Donuts, use /eatdonut to eat one, it increases your health by +5hp, use /donuts to see donuts you have left
    • Login/Register System: Welcoming messages and textdraw with accurate security, with Login attempts(3 as a maximum) and a simple music beat will be streamed for the player when joining in.
    • and more...
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
  • Bank Robbery Guide
    • Requirments
      Must have 5 team members
      Team leader: the guys who starts the robbery
      • Must have at least 800 score

      Hacker: The guy who takes care of the hacking part
      • Must be a hacker (skill acquired from the city hall)
      • Must have a decrypting tool (can be bought from any 24/7 store)
      • Must have at least 100 hacking points (can be acquired from performing ATM robberies)

      Driver: The guy who delivers the stolen cash
      • Must be a Transporter (skill acquired from the city hall)
      • Must have at least 50 Driving points (can be acquired compliting transportation missions via /transport)

      Robber: The guy who carries collects the cash and carries it to the robbery vehicle
      • Must have at least 500 score
      • Must have at least 100 Rob points (can be acquired by robing stores)

      Detonator: The guy who takes care of the safe gate
      • Mustbe a Terrorist (skill acquired from the city hall)
      • Must have a Safe Bomb (Can be bought at the bomb shop)
      • Must have at least 500 score
    • Mission steps
      1. The team must gather at the robbery hideout, the leader should stand at the planing table and use /rpanel, then chose "bank robbery"
      2. Meanwhile, all other 4 members, must be standing each one at a single checkpoints, (there are 4 checkpoints in front of the equipment lockers, the 1st says DRIVER, the 2nd says HACKER, the 3rd says ROBBER, the 4th says DETONATOR)
      3. The team must head to the bank
      4. The hacker must open the storage door, to do so, get close to the keypad next to the storage door at the left side of the reception room, and type /decrypt
      5. The detonator must get closer to the safe door, use /blowup, then take cover, the door should be blow up in 7 seconds
      6. The robber must get inside the safe, there is 4 checkpoints, he must stand in all of them, and use /robbank
      7. The Driver must be waiting at a car in thedriver seat, then the robber must get in the same car, in a passenger seat
      8. The driver must deliver the car back to the robbery hideout, and park it inside at a checkpoint located in the right side of the garage, then use /rveh
    • Prize
      The money will be divided evenly ($50000 each)plus some extra bonus,
      Driver: +10XP || +1 Score || +2 Driving points
      Robber: +10XP || +1 Score || +2 Rob points
      Hacker: +10XP || +1 Score || +2Hacking points
      Leader: +15XP || +1Score
      Detonator: +10XP || +2 Score
    • Other info
      The robbery must be completed under 12 minutes, or the mission will fail
      The bank won't be robber again, until 1 hour later
      If anyone died before performing their objectives, the robbery will fail
    • Preview
      Robbery Hideout location:

      Robbery Hideout:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
  • Instalation Tips
    1- Copy the Gamemode files (.pwn and .amx fies) into your GameMode Folder
    2- Copy and past the "server.cfg" file,
    3- Install the Plugins/Includes stated on the Requirments section in order to run the server properly
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
  • FAQ
    • How do I make myself an admin?
      A common question with two methods,
      • Method 1:
        1. Log in as RCON Admin (/rcon login [Password])
        2. Use /set [Your name or ID] level [Admin level] //Put 5 for Community owner
      • Method 2:
        1. Open the database with a SQLite Database browser
        2. Change your admin level to whatever you want //Put 5 for Community Owner
    • How do I Change the server's name and properties?
      Well, here comes the configuration panel in handy,
      1. Open The gamemode file
      2. Look for "Configuration Panel"
      3. Replace the information you want
      4. Compile the Gamemode
    • How Do I add houses, businesses ATMs, Gangs or Gang Zones?
      Luckily, all of those can be created/edited/deleted in-game
      1. Login as RCON Admin /rcon login [Password] Or you just have to be Admin Level 5(Server Admin)
      2. Use /rconcmds to see all commands related to the managing of Houses,Businesses,ATMs,Gangs,Gang Zones
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------


In case you encountered some bugs, Please, report them on this thread, as well as if you had any suggestions!
Have fun!
Reply
#2

1 - You might want to read this: https://sampforum.blast.hk/showthread.php?tid=570635

2 - Use foreach..

3 - Give credit to the author of the attachment system you added in your gamemode.

4 - There is barely 70 characters in this string, aswell as many others
PHP Code:
new bstr[85];
format(bstrsizeof(bstr), "[INFO]: {FFFFFF}You have successfully put $%i in your bank account",strval(inputtext)); 
5 - 250 cells? uh... what? A client message can have the maximum of 128 cells, you don't even need that.
PHP Code:
CMD:report(playeridparams[]){
    if(
PlayerInfo[playerid][LoggedIn] == false) return SendClientMessage(playeridRED"[ERROR]: You are not connected");
    new 
IDReason[100],str[250];
    if(
sscanf(params,"us",ID,Reason)) return SCM(playeridWHITE"[USAGE]: /report (ID) (Reason)") && SCM(playeridBLREN"[FUNCTION]:{FFFFFF} Report a specific pleyr for a specific reason");
    if(!
IsPlayerConnected(ID)) return SCM(playeridRED"[ERROR]: This player is not connected");
    
SCM(playeridYELLOW"[INFO]: {FFFFFF}Your report was sent to all connected staff members!");
    
format(strsizeof(str), "[REPORT]: {FFFFFF}%s(%i) Has reported %s(%i), Reason: %s",GetName(playerid),playerid,GetName(ID),ID,Reason);
    for(new 
i=0;i<MAX_PLAYERS;i++){
        if(!
IsPlayerConnected(i)) continue;
        if(
PlayerInfo[i][AdminLevel]>=1)
            
SCM(i,ORANGEstr);
    }
    return 
1;

6 - Wasting cells once again, it isn't even close to be 120.

PHP Code:
str[120];
format(strsizeof(str), "**%s has paid for his ticket"name);
SCM(cidBLRENstr); 
7 - Why are these colors defined? you are not even using them..

PHP Code:
#define LIGHTBLUE 0x33CCFFAA
#define GREY 0xAFAFAFAA 
Reply
#3

Also add credits to other creators of filterscipts...
Reply
#4

Quote:
Originally Posted by Scripter18
View Post
Also add credits to other creators of filterscipts...
The only thing that's not mine, is the attachment system, I didn't use any other FS
Reply
#5

Hi upload a full package please.
Reply
#6

Errors found.

Quote:

C:\Users\Dodong\Desktop\EO_CnR v(1.5)\pawno\include\YSI\internal\y_dohooks.inc(90 5) : error 021: symbol already defined: "OnPlayerCommandText"
C:\Users\Dodong\Desktop\EO_CnR v(1.5)\pawno\include\dialogs.inc(354) : error 017: undefined symbol "DIALOG_STYLE_TABLIST_HEADERS"
C:\Users\Dodong\Desktop\EO_CnR v(1.5)\gamemodes\CNR.pwn(1024) : warning 202: number of arguments does not match definition
C:\Users\Dodong\Desktop\EO_CnR v(1.5)\gamemodes\CNR.pwn(2509) : error 017: undefined symbol "GetPlayerPoolSize"
C:\Users\Dodong\Desktop\EO_CnR v(1.5)\gamemodes\CNR.pwn(3166) : warning 202: number of arguments does not match definition
C:\Users\Dodong\Desktop\EO_CnR v(1.5)\gamemodes\CNR.pwn(5389) : warning 202: number of arguments does not match definition
C:\Users\Dodong\Desktop\EO_CnR v(1.5)\gamemodes\CNR.pwn(7175) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.

Reply
#7

Quote:
Originally Posted by Chesher
View Post
Errors found.
Which sa-mp version are you using?
Reply
#8

Quote:
Originally Posted by coool
View Post
Which sa-mp version are you using?
0.3.7
Reply
#9

Screenshots added
Reply
#10

Good job
Reply
#11

The entire admin, robbery system, and literally everything in pawno/include/cnr is from CZCNR game mode.

At least it was in the old version.
Reply
#12

Quote:
Originally Posted by BurnZ
View Post
The entire admin, robbery system, and literally everything in pawno/include/cnr is from CZCNR game mode.

At least it was in the old version.
Dude, this was built from scratch,(only the attachment system was brought from a FS)
Reply
#13

Quote:
Originally Posted by Eoussama
View Post
Dude, this was built from scratch,(only the attachment system was brought from a FS)
Don't worry about him, he's a professional faggot who does nothing at all, but says shit here and there with his useless comments.


OT: Good work.
Reply
#14

Quote:
Originally Posted by iLearner
View Post
Don't worry about him, he's a professional faggot who does nothing at all, but says shit here and there with his useless comments.


OT: Good work.
What is a professional faggot, lol?

OT: I really hope you made this from scratch, since it's pretty good. I'm glad you are learning pawn fast, well done!
Reply
#15

I cant Add My Self ADmin ?? pls help

i type this command
/rcon login [MyPass]
/level 0 5
So This Error Comes You Are Not Staff Member..
Pls Help I am New!
All Script Is VERY NICE Thanks I used it in my server And Works Well
Reply
#16

Quote:
Originally Posted by mrsaad22
View Post
I cant Add My Self ADmin ?? pls help

i type this command
/rcon login [MyPass]
/level 0 5
So This Error Comes You Are Not Staff Member..
Pls Help I am New!
All Script Is VERY NICE Thanks I used it in my server And Works Well
firs, /rcon login [your password]
second, /set [your name or your ID] [level] [1 or 2 or 3 or 4 or 5]
that's it
Reply
#17

this would be sooooooo nice with mysql system the things you can do with mysql wow, so far it looks Absolutely amazing keep up all the great work bro + Rep.
Reply
#18

Keep goin' Bro
Reply
#19

Looks very good!
Reply
#20

how to fix this?
Quote:

C:\Users\Dodong\Desktop\New folder\pawno\include\YSI\y_hooks/impl.inc(923) : error 021: symbol already defined: "OnPlayerCommandText"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)