SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Tutorials

Reply
 
Thread Tools Display Modes
Old 26/06/2016, 03:06 AM   #1
SireElite
Little Clucker
 
SireElite's Avatar
 
Join Date: May 2015
Location: United Kingdom, England.
Posts: 1
Reputation: 0
Default How to create Gang-Zones!

This is my first Tutorial and post ever on the forum's, just so you know.

How to create Gang-Zones!


Description:
This tutorial will show you how to create gang-zones in your server!
This can be useful if you're making a Roleplay server which has Gang's, or a TDM Server. (THIS ISN'T A TAKE OVER A GANGZONE).

You obviously need pawno aswell.

Step 1)
You'll first need to download something called "X-Treme Vehicle Plotter".
You can quickly search this online or on *******, that's how I got it.
Once you have it installed, run the .exe.
It is completely safe, incase you're worried about a virus or something.

Step 2)
Now launch it up, you'll get this.



You can feel free to mess around with it.
Once you have that opened, proceed to "PAWN OUTPUT".
You can click on map's and go on a island of San-Andreas, for this, I'll use Los Santos.

Step 3)
Now hold left click on the place where you want the turf, a red-box appear's. Now, release it once you think you got your turf.

Now a different window will pop up.

Step 4)
This window will pop up.

Click "Gang Zones & World Boundaries"
Click the circle on "Use Gang Zones".

Step 4)
Write a Variable name, for mine, I put "test."
Feel free to use the colors and transparency.
Once you are done, proceed by clicking "Okay".
Something will come up on PAWN OUTPUT.

Step 5)
This'll appear in the PAWN OUTPUT.

Now all the instruction's are really on there, but because I'm so nice I'll continue and tell you what to do.
When you open your pawno script, you put the "new test;" above OnGameModeInIt. The "test" will be different, of-course.

Step 6)
Now, Inside OnGameModeInIt add the following...
Code:
public OnGameModeInit() {
    test = GangZoneCreate(2185.784, -1784.503, 2554.659, -1606.855);
    return 1;
Coord's and the test will be different, again.

Step 7)
This is the same as Step 6, instead we use OnPlayerSpawn
Add the following...
Code:
public OnPlayerSpawn(playerid) {
    GangZoneShowForPlayer(playerid, test, 0x00000096);
    return 1;
You should get something like this, in-game.


And that's it! That's all you have to do.
You can repeat this process and add more if you wish!
Thank's for reading this tutorial.

Go enjoy life.
Seriously

Last edited by SireElite; 26/06/2016 at 01:43 PM.
SireElite is offline   Reply With Quote
Old 02/09/2016, 03:32 PM   #2
BlackbirdXd
Big Clucker
 
BlackbirdXd's Avatar
 
Join Date: May 2016
Location: Home
Posts: 130
Reputation: 12
Default Re: How to create Gang-Zones!

Damn Man, I looking for this But I found some tutorial in Which There Gang Zone can Be captured, But I wonder How I found this I really Need this for My server +Rep for You!
BlackbirdXd is offline   Reply With Quote
Old 03/09/2016, 12:13 PM   #3
TheOneShooT
Banned
 
Join Date: Aug 2016
Posts: 5
Reputation: 0
Default Re: How to create Gang-Zones!

good
TheOneShooT is offline   Reply With Quote
Old 03/09/2016, 12:41 PM   #4
Spmn
Gangsta
 
Join Date: Jun 2015
Location: Romania
Posts: 543
Reputation: 131
Default Re: How to create Gang-Zones!

I find this tool more useful since you can create 'sticked' gang zones without overlapping.
Spmn is offline   Reply With Quote
Old 11/02/2017, 08:52 AM   #5
faxxe
Big Clucker
 
faxxe's Avatar
 
Join Date: Nov 2009
Location: Brasilia
Posts: 99
Reputation: 14
Default Re: How to create Gang-Zones!

Can't find any download.
Can someone reupload that?
__________________
[B]Hardware & software knowledge base
PAWN & C Developing inquires below, using contact form


faxxe is offline   Reply With Quote
Old 08/05/2018, 06:31 PM   #6
BanSilog
Big Clucker
 
BanSilog's Avatar
 
Join Date: Nov 2017
Location: Random House
Posts: 91
Reputation: 16
Default Re: How to create Gang-Zones!

D:\ROOT FOLDER WAG DELETE\gamemodes\PPC_Trucking.pwn(148 : error 029: invalid expression, assumed zero
D:\ROOT FOLDER WAG DELETE\gamemodes\PPC_Trucking.pwn(148 : error 001: expected token: ";", but found "{"
D:\ROOT FOLDER WAG DELETE\gamemodes\PPC_Trucking.pwn(1493) : warning 225: unreachable code
D:\ROOT FOLDER WAG DELETE\gamemodes\PPC_Trucking.pwn(1493) : error 029: invalid expression, assumed zero
D:\ROOT FOLDER WAG DELETE\gamemodes\PPC_Trucking.pwn(1493) : error 001: expected token: ";", but found "{"
D:\ROOT FOLDER WAG DELETE\gamemodes\PPC_Trucking.pwn(1499) : warning 225: unreachable code

I got that error anyone help me?
BanSilog is offline   Reply With Quote
Old 08/05/2018, 09:45 PM   #7
Sew_Sumi
Banned
 
Join Date: Jun 2008
Location: Azerbaijan
Posts: 6,479
Reputation: 525
Default Re: How to create Gang-Zones!

Quote:
Originally Posted by BanSilog View Post
I got that error anyone help me?
Post the code then and mind how old threads are when you bump them... This is YEARS old.
Sew_Sumi is offline   Reply With Quote
Old 08/05/2018, 11:59 PM   #8
BanSilog
Big Clucker
 
BanSilog's Avatar
 
Join Date: Nov 2017
Location: Random House
Posts: 91
Reputation: 16
Default Re: How to create Gang-Zones!

LETS PM NOT HERE OK THANKS
BanSilog is offline   Reply With Quote
Old 09/05/2018, 12:05 AM   #9
BanSilog
Big Clucker
 
BanSilog's Avatar
 
Join Date: Nov 2017
Location: Random House
Posts: 91
Reputation: 16
Default Re: How to create Gang-Zones!

LETS PM NOT HERE OK THANKS
BanSilog 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] [FS] IntroZones - The Easiest way to create gang zones. Version 1.0 introzen Filterscripts 68 18/07/2015 02:07 AM
[Ajuda] gang zones Lucas_HenryK PortuguÍs/Portuguese 11 01/11/2014 12:04 PM
[Tutorial] How to create Gang Zones captainjohn Tutorials 24 28/07/2013 07:24 PM
gang zones Fernado Samuel Scripting Help 1 17/04/2013 09:33 AM
A little problem with gang zones (only create gang zones) CTCCoco Help Archive 4 20/02/2009 10:59 AM


All times are GMT. The time now is 09:08 PM.


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