PDA

View Full Version : [GameMode] [GM] Los Santos Gang War by LethaL (Working gang areas /turfs!)


LethaL
24/11/2007, 02:05 PM
This Is my Los Santos gang war gamemode.

This was my first gamemode release so the scripting is very basic. I would recommend using my TurfWar script instead. However this gamemode is very stable and has been run on an official server with 100 players and works fine.

This gamemode has working gang zone/turf areas that can be taken by any team (i.e the area on the map will change colour to the killing teams colour)

There are11 gangs including 1 admin class (admin class can currently be accessed by any player atm, you will have to change this in your admin filterscript or make it rcon admin only.

The gangs are: grove, ballas, aztec, nang, army, cops, vagos, mafia, biker, triad and admin.

Features

Registration system
Login System
Gangzone Areas
Automatic Jail System (which is configurable)
Stats Saving for players


There are a number of gates which certain gangs can open and close using /opengate commands (admins can open all gates)

Admins get a /getinfo [playerid] command which tells an admin a players kills,deaths,in jail / not injail, money health etc

The Stats system saves money, kills, deaths and teamkills. and only saves for registered players

Any player can see there stats or another players stats by typing /stats ID

Teamchat is also included type: ! for team chat

I have not included other admin commands as i use an admin filterscript

All the gang areas and jail and Teamkill variable are easy to edit to your needs
Look for these at top of script to configure #define

credits
DracoBlue - registation/login (dutils & dudb)

DO NOT CLAIM THIS AS YOUR OWN

DO NOT REMOVE MY NAME

Downloads.

Version 1.0
http://files-upload.com/files/638629/Gangwar_LethaL.amx (http://files-upload.com/files/638629/Gangwar_LethaL.amx)
Below PWN
http://pastebin.com/m702f77e1

Version 2.0
This version stops /kill and teamkills from sending gangzone message and flashing gang turf
http://www.sendspace.com/file/7czmty
http://upl.vs-hs.com/d/23b8

BY LethaL

shitbird
24/11/2007, 02:30 PM
it gives hell alot of erros when trying to re-compile, anyways of that sounds great.

Alejandro
24/11/2007, 02:36 PM
very nice.

asteroid
24/11/2007, 04:29 PM
Nice but wheres your dutils and other files.. u havent included them

Maikel
24/11/2007, 05:34 PM
I have some errors, maybe forgot some define's?
Errors : http://pastebin.com/m22f181f9

LethaL
24/11/2007, 06:11 PM
Thanks for pointing that out on the .pwn
The defines are incorrect (i have updated many times so the names are wrong). You will have to rename them to what they are called further on in the script.

As for the dutils and dudb just include them at the top of the script e.g. #include <dutils>.
This must be an old version of the gamemode i will update the pastebin link asap.

Feedback Please
Have u found any bugs?
Do you like the gamemode?
Will you be using it on your server?

Maikel
24/11/2007, 06:14 PM
Please update now, i want to look.
I cant fix it i need the good defines.
If you give that, i'm happy ;)

Spik3
24/11/2007, 06:16 PM
Thanks for pointing that out on the .pwn
The defines are incorrect (i have updated many times so the names are wrong). You will have to rename them to what they are called further on in the script.

As for the dutils and dudb just include them at the top of the script e.g. #include <dutils>.
This must be an old version of the gamemode i will update the pastebin link asap.

Feedback Please
Have u found any bugs?
Do you like the gamemode?
Will you be using it on your server?


I recon you should update and fix everything yourself and then update , as some of new people to sa-mp cannot know what to fix , and people wont download it because of things like that.

LethaL
24/11/2007, 06:27 PM
As i have said i will update asap.

put this at the top of the game (replace what is currently there) and it should work fine
#include <a_samp>
#include <dutils>
#include <dudb>
#include <core>
#include <float>
/*================================================= =============================
Gamemode by LethaL
<> This gamemode has working gang turf areas that can be taken by any team (i.e the area on the map will change colour by killing team)
<> Also register system and stats saving
<> Admin class is XtremeAdmin only (need to configure in your admin filterscript)
================================================== ============================== */
#define MAX_TEAMKILLS 3 //this is number of times b4 player is kicked
#define MAX_TEAMKILLS_FORJAIL 2 //this is number of times b4 player is jailed
#define JAIL_TIME_LENGTH 300000 //5 mins = 300000
#define REOWN_TURF 4 //this the number of kills necessry before the gang area/turf is reowned by a gang e.g. for grove to get ganton back from ballas
#define GANGAREA_TAKE 4 //number of kills b4 a gang takes another gangs turf
#define GANGAREA_WARNINGS 2 //number of kills before a warning message

XetaQuake
24/11/2007, 08:30 PM
REALY NICE!!!
can you make a filterscript version? pleas

nate660
24/11/2007, 08:33 PM
[FS]??,

Do you want the working gangzone filterscript if so i have one made but never use

XetaQuake
24/11/2007, 08:38 PM
you have make a FS with WORKING gang zones? pleas link ^^

snipe69
24/11/2007, 11:13 PM
C:\Documents and Settings\home\Desktop\wtf.pwn(407) : error 017: undefined symbol "udb_Exists"
C:\Documents and Settings\home\Desktop\wtf.pwn(418) : warning 225: unreachable code
C:\Documents and Settings\home\Desktop\wtf.pwn(432) : error 017: undefined symbol "udb_Exists"
C:\Documents and Settings\home\Desktop\wtf.pwn(434) : error 017: undefined symbol "udb_Create"
C:\Documents and Settings\home\Desktop\wtf.pwn(441) : error 017: undefined symbol "udb_Exists"
C:\Documents and Settings\home\Desktop\wtf.pwn(443) : error 017: undefined symbol "udb_CheckLogin"
C:\Documents and Settings\home\Desktop\wtf.pwn(445) : error 017: undefined symbol "dUserINT"
C:\Documents and Settings\home\Desktop\wtf.pwn(445) : error 029: invalid expression, assumed zero
C:\Documents and Settings\home\Desktop\wtf.pwn(445) : error 033: array must be indexed (variable "-unknown-")
C:\Documents and Settings\home\Desktop\wtf.pwn(445) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


9 Errors.

How to fix?

Grove
25/11/2007, 12:47 AM
C:\Documents and Settings\home\Desktop\wtf.pwn(407) : error 017: undefined symbol "udb_Exists"
C:\Documents and Settings\home\Desktop\wtf.pwn(418) : warning 225: unreachable code
C:\Documents and Settings\home\Desktop\wtf.pwn(432) : error 017: undefined symbol "udb_Exists"
C:\Documents and Settings\home\Desktop\wtf.pwn(434) : error 017: undefined symbol "udb_Create"
C:\Documents and Settings\home\Desktop\wtf.pwn(441) : error 017: undefined symbol "udb_Exists"
C:\Documents and Settings\home\Desktop\wtf.pwn(443) : error 017: undefined symbol "udb_CheckLogin"
C:\Documents and Settings\home\Desktop\wtf.pwn(445) : error 017: undefined symbol "dUserINT"
C:\Documents and Settings\home\Desktop\wtf.pwn(445) : error 029: invalid expression, assumed zero
C:\Documents and Settings\home\Desktop\wtf.pwn(445) : error 033: array must be indexed (variable "-unknown-")
C:\Documents and Settings\home\Desktop\wtf.pwn(445) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


9 Errors.

How to fix?


He Clearly said in his last two posts that he was going to fix it, Bare with him...

Nice script Lethal ;)

Don Giovanni
25/11/2007, 06:32 AM
I would also like to have a filterscript for gangwars :!: :!:

please email me a copy or post link.

LethaL
25/11/2007, 03:08 PM
Link updated

Alejandro
25/11/2007, 03:14 PM
nice.

-Sneaky-
25/11/2007, 03:23 PM
Nice, did you toke /getinfo from me? :>

LethaL
25/11/2007, 03:40 PM
Yes, it was from sadmin and i have added InJail[0 / 1] to the command. Do you want me to credit you or to remove it from the script?

-Sneaky-
25/11/2007, 05:56 PM
Nono lol no credits and dont remove it :!: im not like that D:

Maikel
25/11/2007, 06:26 PM
BUG : when you is some gangzone and you typ /kill, and than the typ /kill agian, that gangzone flash.
And when you shot your one team, that gangzone flash.

LethaL
25/11/2007, 06:52 PM
Yes this does happen. You could change the gangzone code from
if(gTeam[playerid] == TEAM_GROVE) {

to

if((gTeam[playerid] == TEAM_GROVE) && (gTeam[killerid] != TEAM_GROVE)) {

for each gang

I also can no longer compile xadmin filterscript it says its undefined when it is defined undefined symbol "Kills"

Also i can no longer compile this gamemode either as it gives this error list error 021: symbol already defined: "dini_Exists" etc which is odd as i havent changed any of the include files.

Can some1 help ?

Spilot
25/11/2007, 09:49 PM
could someone upload dutils file...when i tried to download it from Darciblue site...it says 'Unknow or Damaged File"....:S


-Regards,
Spilot

Alejandro
25/11/2007, 11:45 PM
Here (http://bwskilla.x10hosting.com/dutils.inc)

if you need it in a zip or rar tell me. ;)

LethaL
26/11/2007, 11:52 AM
[UvH]Spilot what you have to do is rename that "Unknow or Damaged File" to filename.txt (filename can b anything). Open the txt file and look for a url (search for http) there are two in this txt file you need the url of the second one. Copy this url into your download manager or web browser and you have a Perfect file.

Or you could just click the url below (i have done all this above 4 u)
http://www.dracoblue.net/Downloads/DUtils_1_10.zip

Spilot
26/11/2007, 12:21 PM
Thanks Guys.

SmartyPants
04/12/2007, 08:50 PM
Very nice Lethal,

i edited the RE-OWN & GANGAREA_TAKE to 2, so my me & my friends could try it, we noticed that if your not in the turf and get killed twice, the zone still flashes, could i/we use something like IsPlayerInArea and float the cords of the zone so that the kill must take place in the zone, then i could add more turfs i hope?

Overall very nice work thou

Also i added "SetPlayerTeam(playerid,TEAM_XXXXX);" so you cant kill ur team mates :)

Hope ok

LethaL
06/12/2007, 01:36 PM
I have now updated the gamemode, so that teamkills and /kill does not cause the message to show or the gang zone to be lost

[MoD]Carlos_H the IsPlayerInArea script would be good to add to the gamemode, but i havent had much success with it b4. If you could help i will add it to the gamemode.

teddyman
22/12/2007, 02:41 PM
can sum1 post up the amx of the xadmin script with the admin class thing done or post the pawn code or summin

Spik3
22/12/2007, 03:19 PM
can sum1 post up the amx of the xadmin script with the admin class thing done or post the pawn code or summin

wrong topic newb.

Project
28/12/2007, 11:26 AM
Can someone help me fix that thing with the admin char? i wan´t it so only admins can use it!

ERPJosh
29/12/2007, 06:55 PM
ye i want the same as project

LethaL
29/12/2007, 07:43 PM
I configured the admin only skin with xtremeadmin2 as i wanted xadmins to access it. You can either do this or put this code in the gamemode.

if(gTeam[playerid] == TEAM_ADMIN) {
if(IsPlayerAdmin(playerid)) {
GameTextForPlayer(playerid,"~b~Welcome~n~~w~Admin",4000,1);
} else {
GameTextForPlayer(playerid,"~r~This Skin Is For~n~Administrators~n~Only",4000,1);
ForceClassSelection(playerid);
SetPlayerHealth(playerid,0.0);
}
}

For xadmin change isplayeradmin to IsPlayerXAdmin

ERPJosh
29/12/2007, 09:32 PM
I configured the admin only skin with xtremeadmin2 as i wanted xadmins to access it. You can either do this or put this code in the gamemode.

if(gTeam[playerid] == TEAM_ADMIN) {
if(IsPlayerAdmin(playerid)) {
GameTextForPlayer(playerid,"~b~Welcome~n~~w~Admin",4000,1);
} else {
GameTextForPlayer(playerid,"~r~This Skin Is For~n~Administrators~n~Only",4000,1);
ForceClassSelection(playerid);
SetPlayerHealth(playerid,0.0);
}
}



iv got xadmin with admins and others can still use that skin

exodius
21/01/2008, 04:07 PM
Hey, just tried this script, it says :

warning 225: unreachable code

How to fix that?

Mafia_Boy
09/06/2008, 06:04 PM
Hi, mirror OFF? "Version 2.0" (http://www.sendspace.com/file/7czmty) :| :'( :'(

LethaL
10/06/2008, 02:42 PM
http://upl.vs-hs.com/d/23b8

GORE
22/12/2008, 08:29 AM
for me dosent save the kills/the stats
:s

ranielle
03/01/2009, 05:48 AM
How Can I Delete Your Name?

Nimphious
03/01/2009, 06:19 AM
How Can I Delete Your Name?


1. as in credits? im sure his credits are to say, im not sure.

Manny165
03/01/2009, 08:18 AM
How Can I Delete Your Name?

You sir, are a noob.

DMSOrg
24/01/2009, 11:24 PM
TRC ]

How Can I Delete Your Name?

You sir, are a noob.


how very true


DO NOT CLAIM THIS AS YOUR OWN

DO NOT REMOVE MY NAME

however, if you are smart enough to create a /credits command, thereby still including his name, you would remove the line "by LethaL" from the textdraw, and create this code under OnPlayerCommandText:


if(cmdtext, "/credits", true) == 0)
{
SendClientMessage(playerid, 0xFFAAFFAA, "1. LethaL- scripting this gamemode thanks you i luv u so much kisses and hugs lol lmao :mrgreen: ");
return 1;
}

--end explination--
--end comedy--

Naz1S
26/01/2009, 12:59 PM
one problem i dont see there login/register options : /

SuperS0nic
26/01/2009, 02:34 PM
I deleted your credits and made a clientmessage with credits to you sent on playerconnect.. is that ok?
SendClientMessage(playerid, COLOR_ORANGE,"Gamemode scripted by LethaL");

GORE
27/01/2009, 05:07 AM
TRC ]

How Can I Delete Your Name?

You sir, are a noob.


lol wath a noob XD

Dinero
27/01/2009, 06:27 AM
Cool GM :-)

Cubano.
27/01/2009, 09:39 AM
Fantastic gm :D ;)

SuperS0nic
27/01/2009, 10:14 AM
Add HQ?s and HQ Commands?

DDaGxXx
27/01/2009, 10:29 AM
Nice!

Ex-Mosted
15/02/2009, 10:59 AM
Plese add a new link :s

myandyou
14/03/2009, 02:17 PM
This Is my Los Santos gang war gamemode.

This was my first gamemode release so the scripting is very basic. I would recommend using my TurfWar script instead. However this gamemode is very stable and has been run on an official server with 100 players and works fine.

This gamemode has working gang zone/turf areas that can be taken by any team (i.e the area on the map will change colour to the killing teams colour)

There are11 gangs including 1 admin class (admin class can currently be accessed by any player atm, you will have to change this in your admin filterscript or make it rcon admin only.

The gangs are: grove, ballas, aztec, nang, army, cops, vagos, mafia, biker, triad and admin.

Features

Registration system
Login System
Gangzone Areas
Automatic Jail System (which is configurable)
Stats Saving for players


There are a number of gates which certain gangs can open and close using /opengate commands (admins can open all gates)

Admins get a /getinfo [playerid] command which tells an admin a players kills,deaths,in jail / not injail, money health etc

The Stats system saves money, kills, deaths and teamkills. and only saves for registered players

Any player can see there stats or another players stats by typing /stats ID

Teamchat is also included type: ! for team chat

I have not included other admin commands as i use an admin filterscript

All the gang areas and jail and Teamkill variable are easy to edit to your needs
Look for these at top of script to configure #define

credits
DracoBlue - registation/login (dutils & dudb)

DO NOT CLAIM THIS AS YOUR OWN

DO NOT REMOVE MY NAME

Downloads.

Version 1.0
http://files-upload.com/files/638629/Gangwar_LethaL.amx (http://files-upload.com/files/638629/Gangwar_LethaL.amx)
Below PWN
http://pastebin.com/m702f77e1

Version 2.0
This version stops /kill and teamkills from sending gangzone message and flashing gang turf
http://www.sendspace.com/file/7czmty
http://upl.vs-hs.com/d/23b8

BY LethaL


i have version 1.1 but i got a error:
---------------------------------------------------------------------------------------------------------
C:\Documents and Settings\Administrator\Bureaublad\TurfWar_(no_ladm in)\TurfWar\TurfWar\gamemodes\TW.pwn(2) : fatal error 100: cannot read from file: "dini"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
---------------------------------------------------------------------------------------------------------------
how to fix?

matko.basket
31/05/2009, 08:21 PM
you must have a include dini ...download dini filen a put in the pawni into the include folder ;)

NitroSWA
08/07/2009, 05:29 PM
Eyy, i tryed to script new turfs in the same team
do i need to do this?
Bikers = GangZoneCreate(1547.446,-1432.222,1869.935,-1044.718),GangZoneCreate(2685.10, 1055.90, 2749.90, 2626.50);
or
Bikers = GangZoneCreate(1547.446,-1432.222,1869.935,-1044.718) || GangZoneCreate(2685.10, 1055.90, 2749.90, 2626.50);
Or something else??
idk, i tryed so much but nothing helped.. :S :s

jlane9909
20/07/2009, 04:41 PM
how do u increase the number of players allowed on a team?

mila1094
01/09/2009, 06:50 PM
Lethal can you update link with .amx version 2.0?

juanrivas
10/10/2009, 12:14 PM
HELP Its Saids ACCESS IS Denied Im Trying To Updated Because i Get An Error
"D:\Server\gamemodes\gangwars.pwn(2) : fatal error 100: cannot read from file: "dutils""

Napule123
22/01/2010, 08:52 PM
idiot, all this noob don't make all file, stupid!

zorro628
03/02/2010, 07:55 PM
I use this for the first time, How do i need to put that file? Because i put it by gamemodes and by filterscrips But it doesnt work

Please help me :(

GangMember211
03/02/2010, 08:18 PM
At it to your server.txt ore look at Tuturials

zorro628
04/02/2010, 01:16 PM
I get an error ?

Script [gamemodes]gangwars .amx]run time error 17: "Ivalid/unsupported p-code file format"
Faile to load 'Gamemodes /gangwars.amx script

What to do?

GangMember211
06/02/2010, 07:09 PM
If you compile it Gives it any warnings ore errors?

Greetz, Gang

Hamas
09/02/2010, 12:25 PM
the links dont work and i really need this mod please give me new link for both files Amx and Pwn.

Deat_Itself
09/02/2010, 12:54 PM
the links dont work and i really need this mod please give me new link for both files Amx and Pwn.
http://upl.vs-hs.com/d/23b8

Hamas
09/02/2010, 01:40 PM
the links dont work and i really need this mod please give me new link for both files Amx and Pwn.
http://upl.vs-hs.com/d/23b8

its only the pwn file i need the amx to

YmOn
13/02/2010, 02:49 AM
OLOLOLOLO , compile it :lol: :lol: :lol: :lol:

Igdirli 76
06/03/2010, 01:31 PM
Hello my friends,
I have a question can i edit this script that tha GAng War over all the City is?
And can anyone saymi how i join in a other team?

Igdirli 76
08/03/2010, 10:32 AM
I have one question.
How i can join in a team?

KotoK
08/03/2010, 10:39 AM
My friend listen me please. Fix all bugs and then public this gamemode.

Igdirli 76
08/03/2010, 11:34 AM
I have a problem with samp server 0.3a:
[13:21:38] Warning: EnableZoneNames() is removed since 0.3

Arsham7
08/03/2010, 11:42 AM
great gang war script, i just fixed most bugs + edited it to my own likings!
It seems that i could make a great server with this :D hehe

szileni
15/04/2010, 04:22 PM
wrong the link :(

[TGS]FLUPPY
16/04/2010, 06:37 AM
update the downloadlink pls, all links are down >:(

zappafly196
20/04/2010, 03:47 AM
:( dead links i only download gangwar.pwn no amx script :s

andershh
20/04/2010, 10:47 AM
Thanks

Spik3
15/05/2010, 08:13 PM
My friend listen me please. Fix all bugs and then public this gamemode.

This gamemode is 3 years old. If it doesn't work, its obvious why! ;]

willsuckformoney
10/06/2010, 01:23 AM
i go to compile it and this happens

C:\Users\******\Desktop\SAMP Server\gamemodes\gangwars.pwn(2) : fatal error 100: cannot read from file: "dutils"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Spik3
10/06/2010, 07:01 AM
Download This (http://dracoblue.net/download/dutils-110/30/) .inc file and put it in your pawno includes folder. Simple ******/forum search would of fixed your problem ;)

Fresh9884
13/06/2010, 11:01 PM
Update the links there broken.

Shadow_
15/06/2010, 05:07 PM
By the looks of this, the gang turf wont save when a player logs off... or rather when someone new connects the gang turf will be reset on their screen.

Spik3
18/06/2010, 11:50 PM
This is also an old game-mode, it may not be fully compatible with 0.3a or whatsoever is the problem.

Fresh9884
19/06/2010, 01:46 AM
This is also an old game-mode, it may not be fully compatible with 0.3a or whatsoever is the problem.


Officially not 0.3a compatible or much friendly.

Niko_boy
03/08/2010, 11:28 AM
E:\GTA SA\samp02Xserver.win32\gamemodes\Script.pwn(85) : error 017: undefined symbol "udb_Exists"
E:\GTA SA\samp02Xserver.win32\gamemodes\Script.pwn(89) : error 017: undefined symbol "udb_Create"
E:\GTA SA\samp02Xserver.win32\gamemodes\Script.pwn(90) : error 017: undefined symbol "dUserSetINT"
E:\GTA SA\samp02Xserver.win32\gamemodes\Script.pwn(90) : error 029: invalid expression, assumed zero
E:\GTA SA\samp02Xserver.win32\gamemodes\Script.pwn(90) : warning 215: expression has no effect
E:\GTA SA\samp02Xserver.win32\gamemodes\Script.pwn(91) : error 017: undefined symbol "dUserSetINT"
E:\GTA SA\samp02Xserver.win32\gamemodes\Script.pwn(91) : error 029: invalid expression, assumed zero
E:\GTA SA\samp02Xserver.win32\gamemodes\Script.pwn(91) : warning 215: expression has no effect
E:\GTA SA\samp02Xserver.win32\gamemodes\Script.pwn(100) : error 017: undefined symbol "udb_Exists"
E:\GTA SA\samp02Xserver.win32\gamemodes\Script.pwn(103) : error 017: undefined symbol "udb_CheckLogin"
E:\GTA SA\samp02Xserver.win32\gamemodes\Script.pwn(105) : error 017: undefined symbol "dUserINT"
E:\GTA SA\samp02Xserver.win32\gamemodes\Script.pwn(105) : error 029: invalid expression, assumed zero
E:\GTA SA\samp02Xserver.win32\gamemodes\Script.pwn(105) : error 033: array must be indexed (variable "-unknown-")
E:\GTA SA\samp02Xserver.win32\gamemodes\Script.pwn(105) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


12 Errors.





how to fix this please please help

Niko_boy
24/10/2010, 05:03 PM
link expired give new links

AzAdA
02/01/2011, 08:48 PM
Can someone re-upload the second version ... Thx

berlingo21
11/01/2011, 03:40 PM
pleaase in filterscript.

lukas98912
13/01/2011, 12:28 PM
is this for samp 0.3c ??

Darez
24/04/2011, 06:20 PM
Download link not working :(

Kerlan
01/11/2011, 03:13 PM
Broken link!

$$inSane
09/04/2012, 12:49 PM
very nice 8\10