Los Santos Gang Wars - Basic Team Deathmatch Script -
Jack_Leslie - 04.09.2011
Los Santos Gang Wars
A good base for Team Deathmatch
Information:
This is a very basic Gang Team Deathmatch script, it uses dFile, DCMD and strcmp for some commands. The user registration and login has dialogs, and it saves their money, score, kills, deaths and VIP level. It also has a very basic Administration system. I haven't done anything with the VIP. It's got a few basic user commands (see /help), and a very small shopping system (/shop). I'm releasing this version to the public, and continuing it into a private script.
It has 4 teams, Grove St, Ballas, Vagos and Aztecas. It also has a teamchat system, just type "!" in front of the chat, e.g. "! hello team". Also, it has a "/veh" command for Level 3 admins, and you can use the cars name, e.g. "/veh sultan".
I haven't put in any anti-cheat, but there is a system that warns an admin if a user goes over 175mph in a vehicle, in case they are speed hacking. I also haven't put any interiors in, I've put gang cars and then a few cars around Los Santos, but I mostly left it up to you. I just haven't seen many bug-free bases for gang team death-matches around.
User Commands: (see /help)
Код:
/kill
/class
/pm
/blockpm
/buylevel
/stats
/g
Admin Commands: (see /ahelp)
Код:
/gotovag
/gotogs
/gotogp
/gotola
/kick
/ban
/unban
/setmoney
/givemoney
/givegun
/gethere
/veh
/togtk
Anti-Team Killing:
I've put a very basic system that punishes a player for killing a team member, this can be toggled off by an Admin with "/togtk" - it's togged on by default. If a player kills a team mate, they'll be kicked with a warning message, and be fined $500.
Local and Global Chat:
If a user chats normally, it'll be sent locally with ProxDetector. This is because when I develop this script into a private script, it'll be half roleplay, half gang tdm, and one roleplay feature is a local chat, but there's a "/g(lobal)" command for Global Chat.
Random Messages:
There's a system that sends a random message to the server, at the moment there's 3 random messages, you can easily add your own random message, or just edit the current ones.
Rules System:
Everytime a player logs in, they'll be sent 4 rules (by default), the rules are "#define"ed, so make sure to change them in the script.
Credits go to the makers of:
DCMD
dFile
Streamer
foreach
Credits to people who helped fix bugs:
PrawkC
varthshenon
Jeffrey
Download:
v1.0 12th October MegaUpload (whole package): http://www.megaupload.com/?d=NL9NFQM7
v1.0 6th September fix (.pwn only): http://www.sendspace.com/file/6y23hc
v1.0: http://www.sendspace.com/file/dwcbrs
Bugs:
-- Users could log into anyones account by entering any random password
(fixed)
Changelog:
Major Fix:
6th September:
Код:
Fixed major exploit regarding passwords
Removed the 2 warnings
4th September:
Stop! Did you get "Unknown Gamemode"? Keep reading!
Plugins list:
Plugins Download:
Код:
plugins streamer sscanf Whirlpool Filemanager
Re: Los Santos Gang Wars - Basic Team Deathmatch Script -
Lorenc_ - 04.09.2011
Nice job, hope to see more :P
rep++;
Re: Los Santos Gang Wars - Basic Team Deathmatch Script -
DrTHE - 04.09.2011
Nice man
rep ++
Re : Los Santos Gang Wars - Basic Team Deathmatch Script -
Lhine.S - 04.09.2011
i have warning
C:\Users\Lhine\Desktop\serveur\gamemodes\DM.pwn(11 13) : warning 225: unreachable code
C:\Users\Lhine\Desktop\serveur\gamemodes\DM.pwn(15 61) : warning 225: unreachable code
Re: Los Santos Gang Wars - Basic Team Deathmatch Script -
Jack_Leslie - 04.09.2011
Yeah, those warnings don't harm the code. No idea why they are there, there's no reason for them to be there, so don't worry about them.
Re: Los Santos Gang Wars - Basic Team Deathmatch Script -
=WoR=Varth - 04.09.2011
Quote:
Originally Posted by Jack_Leslie
Yeah, those warnings don't harm the code. No idea why they are there, there's no reason for them to be there, so don't worry about them.
|
There's always a reason for error/warning.
And in your case, the reason is "unreachable code".
Re: Los Santos Gang Wars - Basic Team Deathmatch Script -
Jack_Leslie - 04.09.2011
Quote:
Originally Posted by varthshenon
There's always a reason for error/warning.
And in your case, the reason is "unreachable code".
|
In most cases "unreachable code" is because there's a return 0; before the end return 1;
In this case there is not a return 0;
at all.
Re: Los Santos Gang Wars - Basic Team Deathmatch Script -
=WoR=Varth - 04.09.2011
Quote:
Originally Posted by Jack_Leslie
In most cases "unreachable code" is because there's a return 0; before the end return 1;
In this case there is not a return 0; at all.
|
In fact you're wrong. It happen if you returning twice f.e:
pawn Код:
SetGMToAwesome(.....
return 1;
}
return 1;//Here is the warning line
}
Re: Los Santos Gang Wars - Basic Team Deathmatch Script -
Jack_Leslie - 04.09.2011
Quote:
Originally Posted by varthshenon
In fact you're wrong. It happen if you returning twice f.e:
pawn Код:
SetGMToAwesome(..... return 1; } return 1;//Here is the warning line }
|
Okay well thanks, I would of asked how to fix it if I wanted too but it doesn't effect anything else in the script and it's only twice, so I didn't worry about it. Now back on-topic.
Re: Los Santos Gang Wars - Basic Team Deathmatch Script -
Jack_Leslie - 04.09.2011
Okay :P thanks
Re: Los Santos Gang Wars - Basic Team Deathmatch Script -
Yamoo - 07.09.2011
Edit: Nevermind.
Re: Los Santos Gang Wars - Basic Team Deathmatch Script -
Detective- - 07.09.2011
Seems like a good script, thanks, I'll try it out.
Re: Los Santos Gang Wars - Basic Team Deathmatch Script -
Jack_Leslie - 07.09.2011
Quote:
Originally Posted by Detective-
Seems like a good script, thanks, I'll try it out.
|
Thanks
@Yamoo, did you say something about the password bug but then see I updated it? :P
Re: Los Santos Gang Wars - Basic Team Deathmatch Script -
Detective- - 08.09.2011
One question, can you put in depth what guns are exactly used and what is the /shop inventory for sale?
- Thanks in advance. :X
Re: Los Santos Gang Wars - Basic Team Deathmatch Script -
Jack_Leslie - 08.09.2011
Quote:
Originally Posted by Detective-
One question, can you put in depth what guns are exactly used and what is the /shop inventory for sale?
- Thanks in advance. :X
|
For guns, do you mean on claas selection, it tells you what guns you start with?
Re: Los Santos Gang Wars - Basic Team Deathmatch Script -
Yamoo - 08.09.2011
No Jack, I was to lazy to do some errors (which I mis-read on some of them).
It's completely fine now mate.
Re: Los Santos Gang Wars - Basic Team Deathmatch Script -
Jack_Leslie - 08.09.2011
Quote:
Originally Posted by Yamoo
No Jack, I was to lazy to do some errors (which I mis-read on some of them).
It's completely fine now mate.
|
Oh okay, alright
Re: Los Santos Gang Wars - Basic Team Deathmatch Script -
Detective- - 08.09.2011
Any filterscripts that should be in the server config file? Having some trouble, my provider is detecting the mode as 'Unknown'.
Re: Los Santos Gang Wars - Basic Team Deathmatch Script -
Jack_Leslie - 08.09.2011
Quote:
Originally Posted by Detective-
Any filterscripts that should be in the server config file? Having some trouble, my provider is detecting the mode as 'Unknown'.
|
Make sure you have all plugins, Whirlpool, sscanf and streamer.
EDIT:
Код:
plugins streamer sscanf Whirlpool Filemanager
Re: Los Santos Gang Wars - Basic Team Deathmatch Script -
Detective- - 09.09.2011
-- Nevermind, confused the scripts, testing it now.