SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 04/07/2019, 07:43 PM   #1
SiaReyes
Huge Clucker
 
SiaReyes's Avatar
 
Join Date: Mar 2019
Location: Coordinates X,Y,Z
Posts: 328
Reputation: 22
Default Oblivion Gang System [New Release]

Oblivion Gang System


Gang System by Oblivion
Version : 1
Scripter: Oblivion



Version 1 Features:
  • Zone War System
  • Owner Zone color will be green and Enemy Zone will be red and Free Zone will be white.
  • Fixed minor bugs which I spotted!
  • Added /zonewar, /removezone and Captured Zones list
  • GameText is being used instead of Textdraws
    (See Images for more)

Beta Version Features:
  • Login and Disconnect gang messages
  • Each kill will earn a gang score
  • Gang tag along with chat
  • Basic Gang Commands
    (See Images for more)

Images:
Version Beta:
https://imgur.com/a/UbIknCr

Version 1:
https://imgur.com/a/RaHOpqQ

Download: [HOT FIX | Thanks to Calisthenics]

Version Beta:
Click Here

Version 1:
Click Here
[NOTE]: Ideas for zone war are gathered from various sources.

Note:
  • No support given to this script until the next version release! Enjoy <3
  • if you found any bugs, please report it in the comment section. This script has lack of optimizations.
  • If there is any mistake or issues in code please reply in down in comments if possible also post the fix if you know!

Special Thanks:
Credits: a_samp // Credits to SA-MP Team
streamer // Credits to Incognito
mysql // Credits to BlueG
sscanf2 // Credits to maddinat0r
foreach // Credits to Kar
zcmd // Credits to Zeex
YSI // Credits to ******
__________________
Offshowtime Fuck It!

Quote:
Originally Posted by Toroi View Post
blackmail people that join your server using their ip address as hostage

or get a job and play sa-mp for fun

Last edited by SiaReyes; 09/07/2019 at 09:07 PM.
SiaReyes is offline   Reply With Quote
Old 04/07/2019, 08:06 PM   #2
Symon
Gangsta
 
Symon's Avatar
 
Join Date: Apr 2019
Location: Italy
Posts: 515
Reputation: 18
Default Re: Gang System [Version : Beta] [Mysql r41+]

I'll not need this since i already scripted a gang system but please for the sake of other people, put a pastebin link because GitHub ruins all the source code with that ^M^ stupid marks.
__________________


Discord | Play Now | Website

Add your server to favourites and join our Discord.
Symon is offline   Reply With Quote
Old 04/07/2019, 08:33 PM   #3
1sbedx
Huge Clucker
 
Join Date: Dec 2015
Posts: 283
Reputation: 39
Default Re: Gang System [Version : Beta] [Mysql r41+]

Quote:
Originally Posted by KeyOfKey View Post
I'll not need this since i already scripted a gang system but please for the sake of other people, put a pastebin link because GitHub ruins all the source code with that ^M^ stupid marks.
Do not blame GitHub, blame those who do not know how to use it properly.

@SiaReyes

https://help.github.com/en/articles/...e-line-endings
Or in your editor, change the line endings to "Unix".
__________________
Estou desenvolvendo por dinheiro, qualquer dúvida entre em contato para negociação.
1sbedx is offline   Reply With Quote
Old 04/07/2019, 09:36 PM   #4
Calisthenics
Gangsta
 
Join Date: May 2018
Posts: 729
Reputation: 131
Default Re: Gang System [Version : Beta] [Mysql r41+]

1) You do not escape strings.
2) You do not delete cache in all parts.
3) You do not use the length parameter in cache function (here and here)
4) You create an iterator `ObliPlayers` when y_iterate does that already (internally).
5) Logon message should be inside `LoadPlayerGangData`
6) You do not check gang name or gang tag length in /gcreate and /grename command.
7) This is not how you should copy strings:
pawn Code:
CreateGangName[playerid] = gname;
CreateGangTag[playerid] = gtag;

format(GangInfo[i][GangName], 40, "%s", CreateGangName[playerid]);
format(GangInfo[i][GangTag], 5, "%s", CreateGangTag[playerid]);
Use `strcpy` macro instead.
8 ) Do not create variables inside loops.
9) Use `COUNT(*)` to find out how many members exist in the gang instead of this.
10) Instead of all this:
pawn Code:
foreach(new i : ObliPlayers)
{
    new checkname[MAX_PLAYER_NAME];
    GetPlayerName(i, checkname, sizeof(checkname));
    if(strcmp(checkname, kname, true, strlen(kname)) == 0)
    {
        pInfo[i][pGangRank] = GANG_RANK_NONE;
        pInfo[i][pGangID] = -1;
    }
}
You can just do it this way:
pawn Code:
new search_id;
if (!sscanf(kname, "r", search_id) && search_id != INVALID_PLAYER_ID)
{
     pInfo[search_id][pGangRank] = GANG_RANK_NONE;
     pInfo[search_id][pGangID] = -1;
}
Calisthenics is offline   Reply With Quote
Old 05/07/2019, 08:40 AM   #5
SiaReyes
Huge Clucker
 
SiaReyes's Avatar
 
Join Date: Mar 2019
Location: Coordinates X,Y,Z
Posts: 328
Reputation: 22
Default Re: Gang System [Version : Beta] [Mysql r41+]

Quote:
Originally Posted by 1sbedx View Post
Do not blame GitHub, blame those who do not know how to use it properly.

@SiaReyes

https://help.github.com/en/articles/...e-line-endings
Or in your editor, change the line endings to "Unix".
I'm new to github, once i got time, I'll learn and fix it!

Quote:
Originally Posted by Calisthenics View Post
1- 10
Thanks for your help, fixed those!
__________________
Offshowtime Fuck It!

Quote:
Originally Posted by Toroi View Post
blackmail people that join your server using their ip address as hostage

or get a job and play sa-mp for fun
SiaReyes is offline   Reply With Quote
Old 05/07/2019, 03:38 PM   #6
AzaMx
Huge Clucker
 
Join Date: Aug 2014
Location: Home.
Posts: 335
Reputation: 63
Default Re: Gang System [Version : Beta] [Mysql r41+]

it's not too bad.
AzaMx is offline   Reply With Quote
Old 05/07/2019, 03:46 PM   #7
SiaReyes
Huge Clucker
 
SiaReyes's Avatar
 
Join Date: Mar 2019
Location: Coordinates X,Y,Z
Posts: 328
Reputation: 22
Default Re: Gang System [Version : Beta] [Mysql r41+]

Quote:
Originally Posted by LARC View Post
Good job! Nice script
Quote:
Originally Posted by AzaMx View Post
it's not too bad.
Thanks
__________________
Offshowtime Fuck It!

Quote:
Originally Posted by Toroi View Post
blackmail people that join your server using their ip address as hostage

or get a job and play sa-mp for fun
SiaReyes is offline   Reply With Quote
Old 09/07/2019, 09:02 PM   #8
SiaReyes
Huge Clucker
 
SiaReyes's Avatar
 
Join Date: Mar 2019
Location: Coordinates X,Y,Z
Posts: 328
Reputation: 22
Default Re: Gang System [Version : Beta] [Mysql r41+]

New Verison 1:

Version 1 Features:
  • Zone War System
  • Owner Zone color will be green and Enemy Zone will be red and Free Zone will be white.
  • Fixed minor bugs which I spotted!
  • Added /zonewar, /removezone and Captured Zones list
  • GameText is being used instead of Textdraws
    (See Images for more)

Images: https://imgur.com/a/RaHOpqQ

Download : Click Here
__________________
Offshowtime Fuck It!

Quote:
Originally Posted by Toroi View Post
blackmail people that join your server using their ip address as hostage

or get a job and play sa-mp for fun
SiaReyes is offline   Reply With Quote
Old 07/09/2019, 12:19 AM   #9
PemburuHantu
Big Clucker
 
PemburuHantu's Avatar
 
Join Date: May 2019
Location: Indonesia ( Gorontalo )
Posts: 71
Reputation: 0
Default Re: Gang System [Version : Beta] [Mysql r41+]

Can you make the version in Y_INI ?
PemburuHantu is offline   Reply With Quote
Old 10/09/2019, 01:10 PM   #10
josh
Little Clucker
 
Join Date: Jul 2019
Posts: 28
Reputation: 0
Default Re: Gang System [Version : Beta] [Mysql r41+]

Good job! Nice script
josh 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
[FilterScript] Attachements System [MySQL Version] Shinja Filterscripts 31 12/08/2019 04:09 PM
[FilterScript] Neon System BETA Version ahmad95 Filterscripts 20 01/09/2013 03:36 PM
[FilterScript] WazzUp's Admin System. WazAdmin (BETA VERSION) xganyx Filterscripts 22 25/08/2013 10:11 AM
[FilterScript] J_Admin System [BETA][Over 50 commands][MySQL, ZCMD, ..] Jarnu Filterscripts 16 24/11/2012 07:20 PM
Gang System MySQL StrickenKid to MySQL GStylezzz nGen.SoNNy Scripting Help 2 02/05/2012 04:37 PM


All times are GMT. The time now is 10:47 PM.


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