I see, but do you still want support for more players than 10? Then the script has to be reworked slightly:
Code: Select all
#include "zcommon.acs"
#define basetele 10
script 1 enter
{
Teleport((PlayerNumber()%10) + basetele, 0, 0);
}
script 2 respawn
{
Teleport((PlayerNumber()%10) + basetele, 0, 0);
}
The % is the modulo operator, it gives the remainer of a division of whole numbers or something like that, I don't remember the exact definition. Just set it to the number after it to your desired number of spawns.
The reason it has to be reworked like this if you want 11+ player support for your map with ten spawns is because the 11th player would try to teleport to a teleport location that does not exist on the map.
I don't know if you will need this, but it's here in case you do. ;)