17.06.2013, 07:58
(
Last edited by -=Dar[K]Lord=-; 09/11/2014 at 03:13 AM.
)
DGang System
Code:
ChangeLogs 1.0:- The Gang System Was Created. Commands:- /gangcreate - Creates A Gang /ganginvite - Invites A Player To Your gang /gangleave - Player Will Leave his gang /gangmakeadmin - Gang Owner Can Make A Player Gang Admin /gangremoveadmin - Gang Owner Can Remove A Gang Admin /gangstats - Checks a Gangs Stats ChangeLogs 1.1v:- Manager Security [ Gang Manager ] Increased by almost 30% As i added a dynamic gang manager pass which can be changed by rcon admins only Commands Were added and some were updated /gangstats - Advanced now , wont compare files as it might take time so it compares variables /addgangbase - adds a base to gang so gang members can tele to /base /base - default command for teleproting to their gang base. /removegangbase - Ofcouse the opposite happens,i.e. it removes the base of gang /changegangmanagerpass - Changes the manager pass For Gang Members Were Added Main Commands like:- /gangmanagerlogin - Password can be changed in game now /removegang - removes a gang you need the id! /gangstatus - will check the gang is valid or not so that gang manager feels it easy The /topgangs comparision has been changed to variables because dini opening files and reading it will take time
DGang System Made By -=Dar[K]Lord=- Is A Script In Which You Can Create Gangs.Often In Death-matching Servers Players Love To Make Their Own Gang In Game,but sometimes they cannot.Here I Introduce The DGang 1.0v Script Which Can Create Gangs , Create Players Profiles etc.
Features
This Gang System Contains 3 Things Players accounts,Gang-Ids,GangNames,GangManagers.
Player Accounts
The Basic Concept behind making Players Accounts is so they can have their own gang saved in their account so when they relog , they wont have any fear of losing that gang.Gang Ids
The Idea Behind making Gang-Ids Was So That We Can Compare 5 gangs together to make a top gang list,other than the GangManagers Can Find It Easier To Remove Gangs From the Game Itself,And one more plus point is that a player can see a players gang stats ingame.Gang Names
They are Nothing But Gang Names Saved, But It Has Some use in some commands of the gang systemGang Managers
Rcon Manager, The Main Owner Of Server Who Controls Everything is the same as Gang Managers Because GangManagers Have a Login Structure , which is a predefined pass in the script which CAN be Changed as per as the player / owner of server wants.Frames Per Second Ping NEW!
Frames Per Second Count Has Been Added As A TextDraw. Which Updates It Self in every 100 seconds [0.1 second!]Ping Also Added So that player comes to know ping easily with out pressing [TAB] Button.
But The ping goes lighter red if it is more than 200 and lightred if it goes to 300 and very high red when ping is 500.
Commands
Here Comes And Important part of script and gang system the commands.
First of all there are requirements to create gang such as:-
1st. 2000+ score as players will be in dm server.
2nd. 2000,000 money as they need to sacrifice something [just a thing to make them thing twice before creating a gang]
Now The Commands Are:-
/Gangcreate
This Command is for creating gangs which will be created from a random set of 2000 numbers.
This command will need 2000 score and 2000,000 money.
As You Have Created a Gang You will get auto loggedin.
/Leavegang
This Command Will make a player who is in gang leave the existing / current gang.
Possibilities:-
1st.If The Player Is Gang Owner The Gangs Get Auto Destroyed2nd.If Player Is Gang Admin [In Any of slots] Gets Reseted
/Gangmakeadmin
The Gang Has 4 Slots Of Admin, You Can Make the player admin of your gang by getting players id and putting in the correct slots.
Gang Admins Can Invite a player into gang.
/GangRemoveAdmin
Will Remove The Gang Admin from a particular slot.
/GangManageLogin
Will Login You As A gang Manager but , it has a special password which is defined and can be changed in the script.
Changelogs:- Now You Can Change The Manager Pass In The Game By Being A RCON Admin
/removegang
Will Remove A Gang from The Gang Accounts.
/gangstatus
Will Check If There is a gang existing so that you can remove gangs.IT Shows Gang ID , Kills , Deaths, GangOwner.
/topgangs
Shows Us The top 5 gangs [It Compares top 5 gangs by Kills]
/pgang
Shows A Players[ whos online ],gang.
/gangstats
Shows The Stats Of Gangs A Gang You Have To Input The Gang Id, it will show Gang Deaths , Gang Kills , Gang Name
/changegangmanagerpassword NEW!
I know this command is a big command i have reduced it to /cgmp.
This is a rcon manager command.
You Can Have A Dynamic Pass for gang managers which can be changed in case.
/addgangbase NEW!
This Command is used for adding a gang base. Players Can Teleport there by doing /base
/removegangbase NEW!
This Command is used for removing a gang base. Players Cannot Teleport there by doing /base
Gang Bank[Money Manager]
This is a new function added by me for gang members to invest money in their gang.
This Can Be Done By Gang Owners / Gang Admins ONLY!.
/investgangcash NEW!
This Command is for Gang Owners And Gang admins who can Deposit money in their gang!.
/withdrawgangcash NEW!
This Command is for Gang Owners And Gang admins who can Withdraw money in their gang!.
Definations
GangChat:-
For Chatting With The Gang Members I have made a special Sign To Chat [Its The Same As admin Chat].
You Can Chat With your gang members with the sign ' $ '
Server Name:-
For Saying The Gangs Are Of Your Server I have Made A Defination Named:-
pawn Code:
#define SERVER_NAME "Server"
Folders/Files
This Is A Very Important Part Of The Script And If You Dont Look/Read This Part Carefully , You might get your server crashed.
First Folder Will Be Named:- DGang
DGang Will Be The Main Folder In Which There Will Be 3 SubFolders Namely:-
1st. Accounts
2nd. Gangs
3rd. GangsID
The Accounts Folder Will Have Player Accounts Auto Created as He Connects ,If The Account Exist ,then the player will get autologged.
Credits
ScriptOwner/Maker:- -=Dar[K]Lord=-
Testers:- Cam,Jake_Hero,Me
Special Thanks To:- DarcoBlue,Zeex,******[For Their File Saving,Command processor,Error Provdier Respectively]
You Can Edit The Script As Per As Your Wish But Please Keep The Credits
The Files Are In The Attachment Part. Its My Humble Request To All If you have any type of quires or doubts Or any kinds of bugs Please Post It Here or pm me
Thank you