24.11.2009, 04:57
yes: you are assigning a "random" spawn point to each skin, so for each skin a different spawn position will be chosen. i bet u placed it in OnGameModeInit(), so the random coordinates will be set to a skin once only - when the gamemode starts.
i guess, u want to let all players spawn at a new chosen position when they die, try:
instead of your old "AddPlayerClass".
this way u make sure a new position will be chosen for all players and all skins at after spawn...
i guess, u want to let all players spawn at a new chosen position when they die, try:
pawn Код:
public OnPlayerSpawn(playerid)
{
new rand = random(sizeof RandomSpawns);
SetPlayerPos(playerid,RandomSpawns[rand][0],RandomSpawns[rand][1],RandomSpawns[rand][2],RandomSpawns[rand][3]);
SetPlayerFacingAngle(playerid, RandomSpawn[rand][3]);
}
this way u make sure a new position will be chosen for all players and all skins at after spawn...