30.01.2015, 19:04
You could use a switch. Also note that random(12) will generate a random number from 0 to 11. Not 1 to 12. If that's what you want, you should use: debug = random(12)+1;
pawn Код:
new debug = random(12);
switch(debug)
{
case 0..4:
{
//Do whatever you want
}
case 5..11:
{
//Color black
}
}