17.11.2010, 16:20
No idea. But instead of what you have try this.
In this code, NUMBER_OF_TELEPORTS, should be 5, because there are 5 cases. 0 is counted too.
NUMBER_OF_TELEPORTS = Number of coordination you have.
At SetPlayerPos add your positions.
In this code, NUMBER_OF_TELEPORTS, should be 5, because there are 5 cases. 0 is counted too.
pawn Код:
switch( random( NUMBER_OF_TELEPORTS ) )
{
case 0: SetPlayerPos(...);
case 1: SetPlayerPos(...);
case 2: SetPlayerPos(...);
case 3: SetPlayerPos(...);
case 4: SetPlayerPos(...);
//...
}
At SetPlayerPos add your positions.