#9

pawn Код:
enum posInfo
{
     Float: X,
     Float: Y,
     Float: Z,
}

new JailZones[][posInfo] = {
     {X, Y, Z}, // change X, Y, Z to the cordinates of jail 1
     {X, Y, Z}, // change X, Y, Z to the cordinates of jail 2
     {X, Y, Z}, // change X, Y, Z to the cordinates of jail 3
     {X, Y, Z}, // change X, Y, Z to the cordinates of jail 4
     {X, Y, Z}, // change X, Y, Z to the cordinates of jail 5
     {X, Y, Z}, // change X, Y, Z to the cordinates of jail 6
     {X, Y, Z} // change X, Y, Z to the cordinates of jail 7
};

// Now to choose a random cordinate just do:

new RandomJail = random(sizeof(JailZones));

// Then :

SetPlayerPos(playerid, JailZones[RandomJail][X], JailZones[RandomJail][Y], JailZones[RandomJail][Z]);
Reply


Messages In This Thread
Jail - by davve95 - 16.03.2012, 07:57
Re: Jail - by T0pAz - 16.03.2012, 08:31
Re: Jail - by Ronaldo_raul™ - 16.03.2012, 09:13
Re: Jail - by Outlaaw - 16.03.2012, 09:22
Re: Jail - by davve95 - 16.03.2012, 10:33
Re: Jail - by Cameltoe - 16.03.2012, 11:08
Re: Jail - by davve95 - 16.03.2012, 15:09
Re: Jail - by davve95 - 16.03.2012, 19:43
Re: Jail - by Cameltoe - 17.03.2012, 11:15
Re: Jail - by davve95 - 17.03.2012, 15:42

Forum Jump:


Users browsing this thread: 2 Guest(s)