Help cells. -
So i am making a /arrest command and i have jail and 25 cells. I have coordinates of every cell and now i want when i type /arrest it puts them in a RANDOM cell.
I have the command all i need is to put playeer in a RANDOM cell.
Re: Help cells. -
I First think this should be about cells, bits and binary. But it's about jailing, arrest, etc.
..
Make an array of jail cell spawn points, use random() to get a random position.
Re: Help cells. -
PHP код:
new Float:RandomCell[][] =
{
{x, y, z, rotation}, // Cell 1
{x, y, z, rotation}, // Cell 2
{x, y, z, rotation}, // Cell 3
{x, y, z, rotation}, // Cell 4
{x, y, z, rotation}, // Cell 5
{x, y, z, rotation}, // Cell 6
{x, y, z, rotation}, // Cell 7
{x, y, z, rotation}, // Cell 8
{x, y, z, rotation}, // Cell 9
{x, y, z, rotation} // Cell 10
{x, y, z, rotation}, // Cell 11
{x, y, z, rotation}, // Cell 12
{x, y, z, rotation}, // Cell 13
{x, y, z, rotation}, // Cell 14
{x, y, z, rotation}, // Cell 15
{x, y, z, rotation}, // Cell 16
{x, y, z, rotation}, // Cell 17
{x, y, z, rotation}, // Cell 18
{x, y, z, rotation}, // Cell 19
{x, y, z, rotation} // Cell 20
{x, y, z, rotation} // Cell 21
{x, y, z, rotation} // Cell 22
{x, y, z, rotation} // Cell 23
{x, y, z, rotation} // Cell 24
{x, y, z, rotation} // Cell 25
};
Then put the code which is below in either the stock Arrest or the Arrest system, However you have done it.