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: Possible? (
/showthread.php?tid=170580)
Possible? -
AndriusZ* - 23.08.2010
hi all, i have a question. is this possible: if i die in LV, i will spawn in LV, if in SF, i will spawn in SF hospital and .............
Re: Possible? -
boelie - 23.08.2010
yes it is if you make every city into an area..then after death it can check the area the player is in and then sets is position to the nearest hospital
Re: Possible? -
tony_fitto - 23.08.2010
It' possible, in all kind of different ways.
Re: Possible? -
Sergei - 23.08.2010
You can either do it with areas like boelie, but I would make it with distance. Get player distance to SF, LV and LS hospital. Then see which one is the nearest and spawn player there.