04.06.2015, 11:26
I don't wanna dig into your code but I'll show you how to do what you want to do and you can simply implement it where you want.
or you could do something like this:
pawn Код:
new chance = random(1); //can be 0, or 1
switch(chance)
{
case 0:
{
//50% chance
}
case 1:
{
//50% chance
}
}
pawn Код:
new chance = random(3); //0, 1, 2, 3
switch(chance)
{
case 0:
{
//25% chance
}
default:
{
//75% chance
}
}