Player per Cell - 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: Player per Cell (
/showthread.php?tid=665531)
Player per Cell -
MichiCZ - 07.04.2019
Hello,
I am trying to make prison gamemode, and need help with sorting prisoner to cells (1 cell = 1 prisoner).
I got coords in middle in all 48 cells.
Absolutely dont know how to continue, thanks for help
Re: Player per Cell -
MSC - 07.04.2019
Check if there is a person in the cell before putting another person in it. Try using Variables. Global variables.
Re: Player per Cell -
MichiCZ - 07.04.2019
Still nothing, any WIKI links pls?
Re: Player per Cell -
MSC - 07.04.2019
Show me the code where you put the players in Prison, i will try to create it for ya.
Re: Player per Cell -
MichiCZ - 07.04.2019
I have no code, just want to know which function use to do that
Re: Player per Cell -
MSC - 07.04.2019
Create a variable like " new prison1 = first prison's coords " then check if anyone is in range of that coords & if there is someone just go to the next prison. Make sure to check all prisons.