Make Player Spawns more Perfect
#5

Quote:
Originally Posted by Sreyas
Посмотреть сообщение
What about second one?(Also i dont have any problem with first one)
They both login to the server then spawn then the server stop working. and the spawn won't show



Код:
new rand = random(sizeof(TruckerSpawn));
static last[MAX_PLAYERS],current[MAX_PLAYERS]; 
while( last[playerid] == current[playerid]) 
{ 
  current[playerid] = random(sizeof(TruckerSpawn)); 
} 
SetPlayerPos(playerid, TruckerSpawn[current[playerid]][SpawnX], TruckerSpawn[current[playerid]][SpawnY], TruckerSpawn[current[playerid]][SpawnZ]); 
SetPlayerFacingAngle(playerid, TruckerSpawn[current[playerid]][SpawnAngle]); 
SetCameraBehindPlayer(playerid); 
last[playerid] = current[playerid];
Reply


Messages In This Thread
Make Player Spawns more Perfect - by DerickClark - 26.01.2017, 11:39
Re: Make Player Spawns more Perfect - by SyS - 26.01.2017, 11:50
Re: Make Player Spawns more Perfect - by DerickClark - 26.01.2017, 11:58
Re: Make Player Spawns more Perfect - by SyS - 26.01.2017, 12:01
Re: Make Player Spawns more Perfect - by DerickClark - 26.01.2017, 12:11
Re: Make Player Spawns more Perfect - by SyS - 26.01.2017, 12:40
Re: Make Player Spawns more Perfect - by SyS - 27.01.2017, 00:47
Re: Make Player Spawns more Perfect - by DerickClark - 27.01.2017, 01:48
Re: Make Player Spawns more Perfect - by SyS - 27.01.2017, 02:25
Re: Make Player Spawns more Perfect - by DerickClark - 27.01.2017, 02:30

Forum Jump:


Users browsing this thread: 1 Guest(s)