need some help with gangzones...
#1

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
Reply
#2

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

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

i used the scripting machine...
Reply
#5

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;
}
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)