SA-MP Forums Archive
need some help with gangzones... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: need some help with gangzones... (/showthread.php?tid=304449)



need some help with gangzones... - niels44 - 18.12.2011

hey guys,
i am making gangzones for my server but now i have a problem:
this is the place where i want to have the green zone:


but it is coming here:


and this is my script things:
Код:
new GS;
Код:
GS = GangZoneCreate(-227.765727, -2258.13449, 527.114967, -1542.299349);
Код:
GangZoneShowForAll(GS,COLOR_GREEN);
whats wrong here? i have used this wiki page to create this:

https://sampwiki.blast.hk/wiki/GangZoneShowForPlayer

pls help me.
niels


Re: need some help with gangzones... - §с†¶e®РµРe - 18.12.2011

https://sampforum.blast.hk/showthread.php?tid=303538


Re: need some help with gangzones... - suhrab_mujeeb - 18.12.2011

Wrong coordinates. Use an ingame gangzone creator or a better tool.


Re: need some help with gangzones... - niels44 - 18.12.2011

i used the scripting machine...


Re: need some help with gangzones... - PjFord - 19.12.2011

https://sampforum.blast.hk/showthread.php?tid=303538
Go there and follow the directions. Also, i use this:
pawn Код:
GangZoneShowForPlayer(playerid,GS,COLOR_GREEN);
Yes it works the same but i use that and it works for me. also make sure that the GS = GangZoneCreate[coords here] is under OnPlayerConnect.

Try this:
pawn Код:
//includes and defines and such here
OnGameModeInit()
{
     new GS;//The Variable
//other stuff here
}

OnPlayerConnect(playerid)
{
     GangZoneShowForPlayer(playerid,GS,COLOR_GREEN);//Showing the variable to each player
     GS = GangZoneCreate(-227.765727, -2258.13449, 527.114967, -1542.299349);//Defining the variable so the server knows what to show
     return 1;
}



Re: need some help with gangzones... - niels44 - 21.12.2011

yeah i had that only the coordinates weren't right so i think the scripting machine has a bugg XD