random jail spawn
#1

hey i made when player enter jail he enters randomly one of the 3 jail rooms

1st and 2nd and 3rd


but its only letting him enter 1 jail room and always the same room (no random -_-)
check for me my mistake, this code in the arrest command

code:

pawn Code:
new rand = random( 3 );
switch(rand)
{
    case 0:
    {
        SetPlayerInterior(ID, 10);
        SetPlayerPos(ID,223.6557,111.3819,999.0156);
             }
    case 1:
    {
        SetPlayerInterior(ID, 10);
        SetPlayerPos(ID,219.7776,111.4767,999.0156);
    }
    case 3:
    {
        SetPlayerInterior(ID, 10);
        SetPlayerPos(ID,215.5770,111.1958,999.0156);
    }
}
Reply


Messages In This Thread
random jail spawn - by HardBoy - 08.11.2012, 11:00
Re: random jail spawn - by Vince - 08.11.2012, 11:03
Re: random jail spawn - by HardBoy - 08.11.2012, 11:07

Forum Jump:


Users browsing this thread: 2 Guest(s)