08.11.2012, 11:00
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:
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);
}
}