SA-MP Forums Archive
How can i do a parking system like this ? - 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: How can i do a parking system like this ? (/showthread.php?tid=578460)



How can i do a parking system like this ? - Metharon - 19.06.2015

Well , i want all new players to get a free faggio , until level 3.

I know how to do that , but my problem is


How to detect what parking slot is free , because i don't want

Player 1 faggio to be spawned on the same point like player 2 faggio's .




Re: How can i do a parking system like this ? - Abagail - 19.06.2015

You can use zones(see dynamic zones in the streamer plugin). You can then check if the zone the player is in belongs to them, or whatever you want to do.


Re: How can i do a parking system like this ? - Metharon - 19.06.2015

How can i use that system in a dynamic way? i mean i want to get the player pos and get the min , max x y z

How ?

CreateDynamicCuboid(Float:minx, Float:miny, Float:minz, Float:maxx, Float:maxy, Float:maxz, worldid = -1, interiorid = -1, playerid = -1);

For example if i want the player pos to be the position , how i get the max and min from his position x , y ,z ?