[SIMPLE] GangZoneCreate
#1

Greetings,


Hello, I have a question. I don`t understeand how to createa a gang zone...I mean I have this code for example
Код:
AddPlayerClass(281,2441.3367,-1722.2761,15.7118,88.8184,0,0,0,0,0,0); // 
AddPlayerClass(281,2443.4976,-1629.8881,13.3922,98.1546,0,0,0,0,0,0); // 
AddPlayerClass(281,2540.0388,-1628.9197,13.4244,36.3849,0,0,0,0,0,0); // 
AddPlayerClass(281,2540.1575,-1720.3130,13.5431,197.4644,0,0,0,0,0,0); //
And what I need to take of this to make the gangzone?

P.S: I already saw THIS

Regards,
Pablo.
Reply
#2

You need to save two coordinates; North-East (top-right) corner and South-West (bottom-left) corner. Use the 'comments' parameter of /save to know which is your min and which is your max:

At the bottom-left: /save min
At the top-right: /save max

AddPlayerClass(281,2441.3367,-1722.2761,15.7118,88.8184,0,0,0,0,0,0); // min
AddPlayerClass(281,2443.4976,-1629.8881,13.3922,98.1546,0,0,0,0,0,0); // max

The highlighted numbers are the X and Y coordinates. You need minx, maxx, miny and maxy to make a gangzone/area etc. Should be easy to work out.
Reply
#3

So... I need to use the numbers in black only?
Reply
#4

Bump
Reply
#5

yeah, from this:
AddPlayerClass(281,2441.3367,-1722.2761,15.7118,88.8184,0,0,0,0,0,0); // min
AddPlayerClass(281,2443.4976,-1629.8881,13.3922,98.1546,0,0,0,0,0,0); // max
you would put like this:
AddPlayerClass(281,2441.3367,-1722.2761,2443.4976,-1629.8881,0,0,0,0,0,0); //
Reply
#6

Here you go, Easier one made by iPLEO.

Advanced GangZone Creator.
Reply
#7

Okay. I made a GangZone with that program but how can I fix this?
Код:
C:\Documents and Settings\Administrador\Escritorio\Gang Wars\filterscripts\GangZones.pwn(27) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Escritorio\Gang Wars\filterscripts\GangZones.pwn(27) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Escritorio\Gang Wars\filterscripts\GangZones.pwn(27) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Escritorio\Gang Wars\filterscripts\GangZones.pwn(27) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Escritorio\Gang Wars\filterscripts\GangZones.pwn(31) : error 030: compound statement not closed at the end of file (started at line 27)
And I have this
pawn Код:
new GROVE_ZONE;
public OnGameModeInit()
{
    GROVE_ZONE = GangZoneCreate(2444,53125,-1624,21875,2538,28125,-1717,96875);
    GangZoneShowForAll(GROVE_ZONE, 0x00FF0064);
Reply
#8

Okay,

I fixed that error, but the GangZone still doesen`t apear. I mean I can`t see it
Reply
#9

Bump

Guys, I can`t continue without the gang zones, please help me.

Quote:
Originally Posted by PabloDiCostanzo
Посмотреть сообщение
Okay,

I fixed that error, but the GangZone still doesen`t apear. I mean I can`t see it

This is all what I have:
pawn Код:
#include <a_samp>

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" GANG ZONES");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}


main()
{
    print("\n----------------------------------");
    print(" GANG ZONES");
    print("----------------------------------\n");
}


public OnGameModeInit()
{
    new GROVE_ZONE;
    GROVE_ZONE = GangZoneCreate(2441,40625,-1628,90625,2542,96875,-1720,703125);
    GangZoneShowForAll(GROVE_ZONE, 0x00FF0064);
    return 1;
}
And the Gang Zone, doesen`t show for the player
Reply
#10

Ill show u a picture of an idea of gangzones of. Max X min y



Go to the wiki for more info...

Check this https://sampwiki.blast.hk/wiki/GangZoneShowForAll

That will show gangzone for all.

Also you can use GangZoneShowForPlayer

That will show gangzone for a player...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)