Spawn HELP -
bennyisme - 02.10.2010
Код:
1470.0388,1184.3776,10.5273,359.7852
1470.1096,1203.8386,10.5274,359.9203
1470.1520,1232.9044,10.5287,359.8957
1470.1882,1252.6526,10.5274,359.8952
1484.7389,1182.9471,10.5267,359.3900
1484.9564,1203.3167,10.5270,359.4024
So on player spawn the player spawn from the first spawn point (1470.0388,1184.3776,10.5273,359.7852) with a car (turisumo). Then when another player joins and it goes to the second spawn point(1470.1096,1203.8386,10.5274,359.9203) with a turisumo then third player to third spawn etc.. Then after these all six spawn points are taken then the virtual world will go to 1. After all 6 spawn points are taken in 1 then it will go to 2 etc...
Example:
Player 1 Joins - Spawns at 1470.0388,1184.3776,10.5273,359.7852 with a turisumo
Player 2 Joins - Spawns at 1470.1096,1203.8386,10.5274,359.9203 with a turisumo
Player 3 Joins - Spawns at 1470.1520,1232.9044,10.5287,359.8957 with a turisumo
Player 4 Joins - Spawns at 1470.1882,1252.6526,10.5274,359.8952 with a turisumo
Player 5 Joins - Spawns at 1484.7389,1182.9471,10.5267,359.3900 with a turisumo
Player 6 Joins - Spawns at 1484.9564,1203.3167,10.5270,359.4024 with a turisumo
Then when the next person spawn it will be in virtual 1
Player 7 Joins - Spawns at 1470.0388,1184.3776,10.5273,359.7852 with a turisumo (Virtual World 1)
Player 8 Joins - Spawns at 1470.1096,1203.8386,10.5274,359.9203 with a turisumo (Virtual World 1)
Player 9 Joins - Spawns at 1470.1520,1232.9044,10.5287,359.8957 with a turisumo (Virtual World 1)
Player 10 Joins - Spawns at 1470.1882,1252.6526,10.5274,359.8952 with a turisumo (Virtual World 1)
Player 11 Joins - Spawns at 1484.7389,1182.9471,10.5267,359.3900 with a turisumo (Virtual World 1)
Player 12 Joins - Spawns at 1484.9564,1203.3167,10.5270,359.4024 with a turisumo (Virtual World 1)
Then 2
Player 13 Joins - Spawns at 1470.0388,1184.3776,10.5273,359.7852 with a turisumo (Virtual World 2)
Player 14 Joins - Spawns at 1470.1096,1203.8386,10.5274,359.9203 with a turisumo (Virtual World 2)
Player 15 Joins - Spawns at 1470.1520,1232.9044,10.5287,359.8957 with a turisumo (Virtual World 2)
Player 16 Joins - Spawns at 1470.1882,1252.6526,10.5274,359.8952 with a turisumo (Virtual World 2)
Player 17 Joins - Spawns at 1484.7389,1182.9471,10.5267,359.3900 with a turisumo (Virtual World 2)
Player 18 Joins - Spawns at 1484.9564,1203.3167,10.5270,359.4024 with a turisumo (Virtual World 2)
etc...
Re: Spawn HELP -
zSuYaNw - 02.10.2010
pawn Код:
new spasaw = 0;//top
public OnPlayerSpawn(playerid)
{
if(spanaw == 0) SetPlayerPos(playerid,X,Y,Z);
if(spanaw == 1) SetPlayerPos(playerid,X,Y,Z);
if(spanaw == 2) SetPlayerPos(playerid,X,Y,Z);
if(spanaw == 3) SetPlayerPos(playerid,X,Y,Z);
if(spanaw == 4) SetPlayerPos(playerid,X,Y,Z);
if(spanaw == 5) SetPlayerPos(playerid,X,Y,Z);
return ++;
}
Re: Spawn HELP -
bennyisme - 03.10.2010
it doesnt set the virtual world though
Re: Spawn HELP -
Kitten - 03.10.2010
Quote:
Originally Posted by bennyisme
it doesnt set the virtual world though
|
Example
pawn Код:
if(spanaw == 2) SetPlayerVirtualWorld(playerid, 0);
Re: Spawn HELP -
bennyisme - 03.10.2010
so if the server had 50 players max i would have to do that 50 times? D:
Re: Spawn HELP -
Kitten - 03.10.2010
yes but if u figure a shorter way its possible