SA-MP Forums Archive
Would this be possible - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Would this be possible (/showthread.php?tid=196822)



Would this be possible - Haydz - 06.12.2010

So i have an idea for my server, what it does is creates a red line on the minimap going from your pickup destination to your unload destination, On a server i play i saw that they created there islands on the minimap with gangzones, showing bridges and a fair idea of the island area. So i was wonder if it would be possible when a player starts a missions, it sets a little red gangzone from checkpoint to checkpoint. then when the player finishs the mission the checkpoint gets disabled.

Heres a photo of it.



Re: Would this be possible - scripter1 - 06.12.2010

You could use SetPlayerCheckpoint, and OnPlayerEnterCheckpoint. And DisablePlayerCheckpoint to disable them.


Re: Would this be possible - Haydz - 06.12.2010

Quote:
Originally Posted by scripter1
Посмотреть сообщение
Yeh, i am aware of being able to disable/show gang zones, but would it be possible to set one from a checkpoint to checkpoint?

I use a trucking include for my missions, so i'm not sure if it would editable to add a gangzone

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


Re: Would this be possible - XePloiT - 06.12.2010

you mean a line of gangzone? as far as i know no only if they at the same X or Y...
maybe with a lot of gangzones but not one


Re: Would this be possible - The_Moddler - 07.12.2010

Just make a thin and large gangzone.


Re: Would this be possible - Haydz - 07.12.2010

Thanks for the replies guys, but what kind of functions would i use to set it, i know theres creategangzone etc, but what would i use to check the players pos and set it to the checkpoint, e.g

use like GetPlayerPos(playerid, x,y,z);

then what kind of functions would i use here to find the checkpoint and set a thin gangzone to go there.


Re: Would this be possible - XePloiT - 07.12.2010

you can't make a thin gangzone... only if its at the same X or Y...
or you can make a lot of little gangzones.. :S


Re: Would this be possible - Haydz - 07.12.2010

Quote:
Originally Posted by XePloiT
Посмотреть сообщение
you can't make a thin gangzone... only if its at the same X or Y...
or you can make a lot of little gangzones.. :S
As my server is a pilot server it wont need to be like a GPS, it would just have to be straight to the checkpoint

And you can make a thin gangzone as i'v showed in the picture.


Re: Would this be possible - XePloiT - 07.12.2010

Quote:
Originally Posted by Hayden_Bruin
Посмотреть сообщение
As my server is a pilot server it wont need to be like a GPS, it would just have to be straight to the checkpoint

And you can make a thin gangzone as i'v showed in the picture.
you don't get me.. they did gangzones but some of them have the same X or Y...
Код HTML:
you can make ----- or  | but not   \  .
                       |            \
                       |             \
my point is that you can't make a slope thin gangzone line only straight


Re: Would this be possible - Haydz - 07.12.2010

Quote:
Originally Posted by XePloiT
Посмотреть сообщение
you don't get me.. they did gangzones but some of them have the same X or Y...
Код HTML:
you can make ----- or  | but not   \  .
                       |            \
                       |             \
ah, i get you now, so pretty much impossible as long as i wanted to do this?

pawn Код:
_________
               |
               |
               |
ignore the space