SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 26/12/2016, 01:52 PM   #1
Eoussama
High-roller
 
Eoussama's Avatar
 
Join Date: Jul 2016
Location: Kingdom of Morocco // Tangier
Posts: 1,082
Reputation: 149
Lightbulb [EO] Los Santos Cops and Robbers [SQLite Based]

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 : Y_less
     Whirlpool	 : Y_Less
     Progress2	 : Created by Flávio Toribio: [email protected], 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!
__________________

Last edited by Eoussama; 22/03/2017 at 09:46 PM. Reason: New content
Eoussama is online now   Reply With Quote
Old 26/12/2016, 02:20 PM   #2
Jelly23
Guest
 
Posts: n/a
Default Re: [EO] Los Santos Cops and Robbers

1 - You might want to read this: http://forum.sa-mp.com/showthread.php?t=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 With Quote
Old 26/12/2016, 02:45 PM   #3
Bolex_
Gangsta
 
Bolex_'s Avatar
 
Join Date: Aug 2015
Location: Croatia
Posts: 557
Reputation: 98
Default Re: [EO] Los Santos Cops and Robbers

Also add credits to other creators of filterscipts...
__________________
Bolex_ is offline   Reply With Quote
Old 26/12/2016, 02:50 PM   #4
Eoussama
High-roller
 
Eoussama's Avatar
 
Join Date: Jul 2016
Location: Kingdom of Morocco // Tangier
Posts: 1,082
Reputation: 149
Default Re: [EO] Los Santos Cops and Robbers

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
__________________
Eoussama is online now   Reply With Quote
Old 27/12/2016, 12:02 AM   #5
Chesher
Big Clucker
 
Join Date: Sep 2016
Location: I dunno
Posts: 71
Reputation: 1
Default Re: [EO] Los Santos Cops and Robbers

Hi upload a full package please.
Chesher is offline   Reply With Quote
Old 27/12/2016, 05:51 AM   #6
Chesher
Big Clucker
 
Join Date: Sep 2016
Location: I dunno
Posts: 71
Reputation: 1
Default Re: [EO] Los Santos Cops and Robbers

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 (c) 1997-2006, ITB CompuPhase


3 Errors.
Chesher is offline   Reply With Quote
Old 27/12/2016, 10:46 AM   #7
coool
Huge Clucker
 
Join Date: Feb 2013
Location: Pakistan, Sindh
Posts: 449
Reputation: 23
Default Re: [EO] Los Santos Cops and Robbers

Quote:
Originally Posted by Chesher View Post
Errors found.
Which sa-mp version are you using?
__________________
My Writing Works
Lost In Future

coool is offline   Reply With Quote
Old 27/12/2016, 10:51 AM   #8
Chesher
Big Clucker
 
Join Date: Sep 2016
Location: I dunno
Posts: 71
Reputation: 1
Default Re: [EO] Los Santos Cops and Robbers

Quote:
Originally Posted by coool View Post
Which sa-mp version are you using?
0.3.7
Chesher is offline   Reply With Quote
Old 27/12/2016, 12:08 PM   #9
Eoussama
High-roller
 
Eoussama's Avatar
 
Join Date: Jul 2016
Location: Kingdom of Morocco // Tangier
Posts: 1,082
Reputation: 149
Default Re: [EO] Los Santos Cops and Robbers

Screenshots added
__________________
Eoussama is online now   Reply With Quote
Old 27/12/2016, 12:26 PM   #10
Problems
Big Clucker
 
Join Date: Sep 2013
Posts: 135
Reputation: 1
Default Re: [EO] Los Santos Cops and Robbers

Good job
Problems 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 08:37 PM.


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