Random Spawn?
#2

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:
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]);
}
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...

Reply


Messages In This Thread
Random Spawn? - by Christopher. - 24.11.2009, 00:01
Re: Random Spawn? - by Babul - 24.11.2009, 04:57
Re : Random Spawn? - by timaoux - 07.08.2011, 03:03
Re: Random Spawn? - by Kingunit - 07.08.2011, 03:07
Re: Random Spawn? - by SmileyForCheat - 07.08.2011, 03:08
Re: Re : Random Spawn? - by Grim_ - 07.08.2011, 03:12
Re : Random Spawn? - by timaoux - 07.08.2011, 03:20
Re: Random Spawn? - by Grim_ - 07.08.2011, 03:23
Re : Random Spawn? - by timaoux - 07.08.2011, 03:24
Re: Random Spawn? - by Grim_ - 07.08.2011, 03:28

Forum Jump:


Users browsing this thread: 1 Guest(s)