DGang [Dini,SSCANF,ZCMD] -
-=Dar[K]Lord=- - 17.06.2013
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
Introduction
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 system
Gang 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 Destroyed
2nd.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"
Change The "server" accordingly to your server name
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
Re: DGang [Dini,SSCANF,ZCMD] -
dEcooR - 17.06.2013
:O nice ill use it thnx
Re: DGang [Dini,SSCANF,ZCMD] -
-=Dar[K]Lord=- - 17.06.2013
Quote:
Originally Posted by dEcooR
:O nice ill use it thnx
|
Thanks
Re: DGang [Dini,SSCANF,ZCMD] -
AldoT - 17.06.2013
wow great job man thanks for use for download
Re: DGang [Dini,SSCANF,ZCMD] -
-=Dar[K]Lord=- - 17.06.2013
Quote:
Originally Posted by AldoT
wow great job man thanks for use for download
|
Thank You . Updates might soon come too
Re: DGang [Dini,SSCANF,ZCMD] -
TheChimpJr - 17.06.2013
not bad.
Re: DGang [Dini,SSCANF,ZCMD] -
-=Dar[K]Lord=- - 17.06.2013
Quote:
Originally Posted by TheChimpJr
not bad.
|
Thanks c:
Re: DGang [Dini,SSCANF,ZCMD] -
XtremeR - 18.06.2013
Nice work there, +3 reps.
Re: DGang [Dini,SSCANF,ZCMD] -
-=Dar[K]Lord=- - 18.06.2013
Quote:
Originally Posted by XtremeR
Nice work there, +3 reps.
|
omg xD btw thanks
Re: DGang [Dini,SSCANF,ZCMD] -
M3mPHi$_S3 - 19.06.2013
Was searching 4 this .. thanks dude +1
Re: DGang [Dini,SSCANF,ZCMD] -
-=Dar[K]Lord=- - 19.06.2013
Quote:
Originally Posted by M3mPHi$_S3
Was searching 4 this .. thanks dude +1
|
Thanks ;3
Re: DGang [Dini,SSCANF,ZCMD] -
HaiderABbas - 19.06.2013
Nice Work dude .............. I m using it cool
) +Rep
Re: DGang [Dini,SSCANF,ZCMD] -
Vince - 19.06.2013
Dini ...
Come on, man! Don\'t use old super slow methods.
pawn Code:
CMD:topgangs(playerid,params[])
{
new string[1000], Slot1 = -1, Slot2 = -1, Slot3 = -1, Slot4 = -1,Slot5 = -1;
new Kills = -9999;
for(new x=0; x<2000; x++)
if(dini_Exists(gFileId(x)))
if(dini_Int(gFileId(x),"Kills") >= Kills)
{
Kills = dini_Int(gFileId(x),"Kills");
Slot1 = x;
}
Kills = -9999;
for(new x=0; x<2000; x++)
if(dini_Exists(gFileId(x)) && x != Slot1)
if(dini_Int(gFileId(x),"Kills") >= Kills)
{
Kills = dini_Int(gFileId(x),"Kills");
Slot2 = x;
}
Kills = -9999;
for(new x=0; x<2000; x++)
if(dini_Exists(gFileId(x)) && x != Slot1 && x != Slot2)
if(dini_Int(gFileId(x),"Kills") >= Kills)
{
Kills = dini_Int(gFileId(x),"Kills");
Slot3 = x;
}
Kills = -9999;
for(new x=0; x<2000; x++)
if(dini_Exists(gFileId(x)) && x != Slot1 && x != Slot2 && x != Slot3)
if(dini_Int(gFileId(x),"Kills") >= Kills)
{
Kills = dini_Int(gFileId(x),"Kills");
Slot4 = x;
}
Kills = -9999;
for(new x=0; x<2000; x++)
if(dini_Exists(gFileId(x)) && x != Slot1 && x != Slot2 && x != Slot3 && x != Slot4)
if(dini_Int(gFileId(x),"Kills") >= Kills)
{
Kills = dini_Int(gFileId(x),"Kills");
Slot5 = x;
}
A.K.A. lagging the server by opening a file 20,000 times.
Re: DGang [Dini,SSCANF,ZCMD] -
-=Dar[K]Lord=- - 20.06.2013
Quote:
Originally Posted by Vince
Dini ...
Come on, man! Don\'t use old super slow methods.
pawn Code:
CMD:topgangs(playerid,params[]) {
new string[1000], Slot1 = -1, Slot2 = -1, Slot3 = -1, Slot4 = -1,Slot5 = -1; new Kills = -9999; for(new x=0; x<2000; x++) if(dini_Exists(gFileId(x))) if(dini_Int(gFileId(x),"Kills") >= Kills) { Kills = dini_Int(gFileId(x),"Kills"); Slot1 = x; } Kills = -9999; for(new x=0; x<2000; x++) if(dini_Exists(gFileId(x)) && x != Slot1) if(dini_Int(gFileId(x),"Kills") >= Kills) { Kills = dini_Int(gFileId(x),"Kills"); Slot2 = x; } Kills = -9999; for(new x=0; x<2000; x++) if(dini_Exists(gFileId(x)) && x != Slot1 && x != Slot2) if(dini_Int(gFileId(x),"Kills") >= Kills) { Kills = dini_Int(gFileId(x),"Kills"); Slot3 = x; } Kills = -9999; for(new x=0; x<2000; x++) if(dini_Exists(gFileId(x)) && x != Slot1 && x != Slot2 && x != Slot3) if(dini_Int(gFileId(x),"Kills") >= Kills) { Kills = dini_Int(gFileId(x),"Kills"); Slot4 = x; } Kills = -9999; for(new x=0; x<2000; x++) if(dini_Exists(gFileId(x)) && x != Slot1 && x != Slot2 && x != Slot3 && x != Slot4) if(dini_Int(gFileId(x),"Kills") >= Kills) { Kills = dini_Int(gFileId(x),"Kills"); Slot5 = x; }
A.K.A. lagging the server by opening a file 20,000 times.
|
Well Yeah man i had to do with Dini cuz when i use y_ini there are some mismatches in files , Well Thanks for informing i might update it to yini in future.
Well I Have A Symbol to stop the Lag , First The System Checks If Dini Exists, And Already You Can Edit The Money And Score So That There can be less creations of gangs.
Respuesta: DGang [Dini,SSCANF,ZCMD] -
RycherserK - 20.06.2013
Good work dude
Re: DGang [Dini,SSCANF,ZCMD] -
-=Dar[K]Lord=- - 20.06.2013
Quote:
Originally Posted by HaiderABbas
Nice Work dude .............. I m using it cool ) +Rep
|
Quote:
Originally Posted by RycherserK
Good work dude
|
Thanks Guys
Re: DGang [Dini,SSCANF,ZCMD] -
travel - 25.06.2013
its nice good job
Re: DGang [Dini,SSCANF,ZCMD] -
-=Dar[K]Lord=- - 25.06.2013
Quote:
Originally Posted by travel
its nice good job
|
Thanks
Re: DGang [Dini,SSCANF,ZCMD] -
-=Dar[K]Lord=- - 30.06.2013
Updated Gang System To 1.1v
Added New Features
Re: DGang [Dini,SSCANF,ZCMD] -
Salsa - 30.06.2013
Epic one i will use it 10/10