SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 27/04/2016, 04:19 AM   #1
SyS
High-roller
 
SyS's Avatar
 
Join Date: Oct 2015
Posts: 1,969
Reputation: 426
Cool SS_Gang System [SQLITE] By Sreyas


I made this script after a lot of requests from the people.This script has both SQLite and MySQL version.User can create zone,create gang and fight with other gangs and capture zones. The project still looking more ideas to implemented and those who are interested in contributing to it can pull a commit to the main repo.i would like to express my gratitude towards AndySedeyn and Konstantinos for contributing to this project.

Change log

V 1.1 [MySQL] (Latest)
  • Converted to MySQL (Thanks to AndySedeyn)
  • Optmised the script very much.
  • Previous bugs fixed

V 1.2 [SQLite] (Latest)
  • Optmised the script to very extent thanks to AndySedeyn for this
  • A bug in gang tag fixed
  • Simplified the code much

V 1.0 [SQLite]

As promised the stable version with capture system is released,now user can create gang zone (rcon) in game using dynamic in game zone creator.

New features and Commands
  • /capture - to capture zone
  • /ghelp - to view all cmds
  • /createzone - to create zone (rcon only)
  • /demote - to remove a member from leader position
  • Previous bugs fixed and optmised the code
  • In game dynamic zone creator added
  • New text draws added
  • And more..

V 1.0 (Beta)

Features and Commands

  • /gcp - to enter gang control panel
  • /creategang - to create new gang
  • /gangtag - to add tag to your gang
  • /gwar - to challenge other gang members for a gang war
  • /gkick - to kick a member from gang
  • /setleader - to set a member to leader
  • /gmembers - to see whole members of gang
  • /top - to see top 10 gangs
  • /ginvite - to invite some to your gang
  • /accept - to accept an invitation
  • /decline - to decline an invitation
  • /gangcolor - to change your gang color
  • /lg - to leave the gang

Other Features
  • Use '#' to gang chat
  • Each kill give 1 score for gang
  • Gang Member's death will be notified
  • Gang will be destroyed if a leader leaves it
  • Gang Members will get 100$ per each 10 minutes

Custom Settings that you need to change

The script supports some custom settings for the server you can change those defaults in this part:

SQLite


PHP Code:
//--------------Custom Defines-----------------------------------------------------------
#define MAX_GANGS              50                //Total number of gangs
#define MAX_GZONES           50                //Total number of zones
#define ZONE_COLOR           0xF3F0E596   //colour un owned zone (white by default) 
#define ZONE_LOCK_TIME              120              //The time for locking the captured zone  in seconds
#define ZONE_CAPTURE_TIME        30               //The time for capturing the zone in seconds
#define MAX_SCORE                     100             //Maximum score to create a gang
//---------------------------------------------------------------------------------------- 

MySQL

PHP Code:
//--------------Custom Defines-----------------------------------------------------------

#define CONNECT_ID          handle_id       // This is the name of your connection variable for the database

#define MYSQL_HOST          "host_unknown"  // Database IP
#define MYSQL_USER          "user_unknown"  // Database user
#define MYSQL_PASS          ""  // Database password
#define MYSQL_DATA          "table_unknown" // Database name

#define MAX_GANGS           50

#define MAX_GZONES          50

#define ZONE_COLOR          0xF3F0E596

#define ZONE_LOCK_TIME      120                //NOTE:The time should be given in seconds

#define ZONE_CAPTURE_TIME   30                //Same as above note

#define MAX_SCORE           0              //Maximum score to create a gang

//-------------------------------------------------------------------------------------- 
Gallery













DOWNLOAD

MySQL Version converted by AndySedeyn (latest)
SQLite 1.2.3 version (latest)

Requirements
  1. sscanf2 - created by Y_less,Developed by Emmet and maddinator
  2. YSI - By Y_less currently maintained by Misiur
  3. ZCMD - By Zeex
  4. samp 0.3.7 - SAMP Team


How to Install?
  1. Compile the script and copy paste it in the filterscripts directory of your server file
  2. Add SS_GANGSYSTEM in filterscripts line of your server.cfg and also add sscanf and MYSQL plugin R40 (if you use the MYSQL version).
  3. Use /ghelp to view all cmds.
  4. And yeah if you find any bugs please report it in this thread.
Credits
  1. AndySedeyn - Contributing
  2. Konstantinos - Contributing
  3. Yassine (Yaa) - for his suggestions and ideas.
  4. UltraZ and Oma37 - for testing
__________________


Last edited by SyS; 24/04/2017 at 02:56 AM. Reason: New version released
SyS is offline   Reply With Quote
Old 27/04/2016, 04:21 AM   #2
Pavintharan
Banned
 
Join Date: Jun 2015
Posts: 53
Reputation: 11
Default Re: SS_Gang System [SQLITE] By Sreyas

nice
Pavintharan is offline   Reply With Quote
Old 27/04/2016, 08:07 AM   #3
SyS
High-roller
 
SyS's Avatar
 
Join Date: Oct 2015
Posts: 1,969
Reputation: 426
Default Re: SS_Gang System [SQLITE] By Sreyas

Pics Added and fixed some bugs on dialog those who downloaded pls download again
__________________

SyS is offline   Reply With Quote
Old 27/04/2016, 08:53 AM   #4
Amunra
Gangsta
 
Amunra's Avatar
 
Join Date: Nov 2015
Location: Indonesian
Posts: 526
Reputation: 12
Default Re: SS_Gang System [SQLITE] By Sreyas

Nice..
Keep up..
__________________
Legendary Criminals


Amunra is offline   Reply With Quote
Old 27/04/2016, 01:29 PM   #5
SyS
High-roller
 
SyS's Avatar
 
Join Date: Oct 2015
Posts: 1,969
Reputation: 426
Default Re: SS_Gang System [SQLITE] By Sreyas

Thanks Mate
__________________

SyS is offline   Reply With Quote
Old 27/04/2016, 02:27 PM   #6
GhostHacker
Banned
 
Join Date: Jan 2016
Location: Inside a dark cave Reputation: 3089
Posts: 162
Reputation: 28
Default Re: SS_Gang System [SQLITE] By Sreyas

Thanks bro its epic +REP
GhostHacker is offline   Reply With Quote
Old 27/04/2016, 02:46 PM   #7
oMa37
High-roller
 
oMa37's Avatar
 
Join Date: Feb 2016
Posts: 1,032
Reputation: 152
Default Re: SS_Gang System [SQLITE] By Sreyas

Amazing effort again from you!
Good job.
oMa37 is offline   Reply With Quote
Old 27/04/2016, 02:50 PM   #8
Karan007
Gangsta
 
Karan007's Avatar
 
Join Date: Feb 2015
Posts: 585
Reputation: 67
Default Re: SS_Gang System [SQLITE] By Sreyas

Why you still use DB_ESCAPE? Since the new 0.3.7 version, you can now use the '%q' specifier.
Karan007 is offline   Reply With Quote
Old 27/04/2016, 02:52 PM   #9
Marshall32
Big Clucker
 
Join Date: Jun 2011
Location: Auckland
Posts: 174
Reputation: 31
Default Re: SS_Gang System [SQLITE] By Sreyas

Good work
Marshall32 is offline   Reply With Quote
Old 27/04/2016, 02:53 PM   #10
SyS
High-roller
 
SyS's Avatar
 
Join Date: Oct 2015
Posts: 1,969
Reputation: 426
Default Re: SS_Gang System [SQLITE] By Sreyas

Quote:
Originally Posted by GhostHacker View Post
Thanks bro its epic +REP
Quote:
Originally Posted by oMa37 View Post
Amazing effort again from you!
Good job.
Quote:
Originally Posted by MrEdinLaw View Post
Good work
Thanks all

Quote:
Originally Posted by Karan007 View Post
Why you still use DB_ESCAPE? Since the new 0.3.7 version, you can now use the '%q' specifier.
Yeah its like a habit for me i will use that specfier on next update Thanks
__________________

SyS 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ban system - sqlite Rodrigo. Scripting Help 2 27/09/2012 01:45 AM
SQLite Ban System Hervest1998 Scripting Help 7 28/07/2012 03:14 PM


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


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