SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 04/07/2019, 06:43 PM   #1
SiaReyes
Huge Clucker
 
SiaReyes's Avatar
 
Join Date: Mar 2019
Location: Coordinates X,Y,Z
Posts: 273
Reputation: 19
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 ******
__________________
Hey guys,
We've just started up our own hosting company and we are offering cheap game hosting. Our SAMP servers start at only $0.50 cents for 32 slots per month, or $1.50 for 64. We have ONE FREE spot left for a first month free subscription for any game host of your choice. We host most many major games such as SAMP, Call of Duty, 7 Days to Die, Minecraft, CounterStrike, ARK: Survival Evolved, and many more!

Cheapest hosting company official site : http://main-hosts.com/

Cheap Hosting Company is looking for an experience staff.

Sign up to our forums and Control Panel and order one of our cheap game servers. First to sign up will receive a free SA:MP server! Join on discord https://discord.gg/J82JgQJ for more information!

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 08:07 PM.
SiaReyes is offline   Reply With Quote
Old 04/07/2019, 07:06 PM   #2
KeyOfKey
Huge Clucker
 
KeyOfKey's Avatar
 
Join Date: Apr 2019
Posts: 348
Reputation: 12
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.
KeyOfKey is online now   Reply With Quote
Old 04/07/2019, 07:33 PM   #3
1sbedx
Huge Clucker
 
Join Date: Dec 2015
Posts: 268
Reputation: 38
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 online now   Reply With Quote
Old 04/07/2019, 08:36 PM   #4
Calisthenics
Gangsta
 
Join Date: May 2018
Posts: 638
Reputation: 96
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, 07:40 AM   #5
SiaReyes
Huge Clucker
 
SiaReyes's Avatar
 
Join Date: Mar 2019
Location: Coordinates X,Y,Z
Posts: 273
Reputation: 19
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!
__________________
Hey guys,
We've just started up our own hosting company and we are offering cheap game hosting. Our SAMP servers start at only $0.50 cents for 32 slots per month, or $1.50 for 64. We have ONE FREE spot left for a first month free subscription for any game host of your choice. We host most many major games such as SAMP, Call of Duty, 7 Days to Die, Minecraft, CounterStrike, ARK: Survival Evolved, and many more!

Cheapest hosting company official site : http://main-hosts.com/

Cheap Hosting Company is looking for an experience staff.

Sign up to our forums and Control Panel and order one of our cheap game servers. First to sign up will receive a free SA:MP server! Join on discord https://discord.gg/J82JgQJ for more information!

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, 02:38 PM   #6
AzaMx
Huge Clucker
 
Join Date: Aug 2014
Location: Home.
Posts: 328
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, 02:46 PM   #7
SiaReyes
Huge Clucker
 
SiaReyes's Avatar
 
Join Date: Mar 2019
Location: Coordinates X,Y,Z
Posts: 273
Reputation: 19
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
__________________
Hey guys,
We've just started up our own hosting company and we are offering cheap game hosting. Our SAMP servers start at only $0.50 cents for 32 slots per month, or $1.50 for 64. We have ONE FREE spot left for a first month free subscription for any game host of your choice. We host most many major games such as SAMP, Call of Duty, 7 Days to Die, Minecraft, CounterStrike, ARK: Survival Evolved, and many more!

Cheapest hosting company official site : http://main-hosts.com/

Cheap Hosting Company is looking for an experience staff.

Sign up to our forums and Control Panel and order one of our cheap game servers. First to sign up will receive a free SA:MP server! Join on discord https://discord.gg/J82JgQJ for more information!

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, 08:02 PM   #8
SiaReyes
Huge Clucker
 
SiaReyes's Avatar
 
Join Date: Mar 2019
Location: Coordinates X,Y,Z
Posts: 273
Reputation: 19
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
__________________
Hey guys,
We've just started up our own hosting company and we are offering cheap game hosting. Our SAMP servers start at only $0.50 cents for 32 slots per month, or $1.50 for 64. We have ONE FREE spot left for a first month free subscription for any game host of your choice. We host most many major games such as SAMP, Call of Duty, 7 Days to Die, Minecraft, CounterStrike, ARK: Survival Evolved, and many more!

Cheapest hosting company official site : http://main-hosts.com/

Cheap Hosting Company is looking for an experience staff.

Sign up to our forums and Control Panel and order one of our cheap game servers. First to sign up will receive a free SA:MP server! Join on discord https://discord.gg/J82JgQJ for more information!

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


All times are GMT. The time now is 06:22 PM.


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