SA-MP Forums Archive
Spawn problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Spawn problem (/showthread.php?tid=138548)



Spawn problem - RainingBlood - 02.04.2010

I wana to modiffi LCN's spawn in another location, so i go at location where I wana be my spawn, I do /save.
Than I go on plyer pos saved and copy this: AddPlayerClass(19,2002.7013,1024.2695,10.8203,356. 4052,0,0,0,0,0,0); //
Now I go in powno and search LCN's spawn and delete that coordonates to put mein, but it don;t work, it spawn me in air....

How do I set mi spawn at that location?

Код:
}
		if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//TheMafia spawn
		{
		  SetPlayerToTeamColor(playerid);
		  SetPlayerInterior(playerid, 3);
		  SetPlayerPos(playerid, 1024.2695,10.8203,356.4052);
		  PlayerInfo[playerid][pInt] = 3;
		  return 1;
That is The Mafia's (LCN's) spawn..... SetPlayerPos(playerid, 1024.2695,10.8203,356.4052); Like that I was think it shood be, but is not!

Can you edit and post exactli how it shood be with spawn on location posted by me pls?




Re: Spawn problem - RainingBlood - 04.04.2010

Up


Re: Spawn problem - Beaver07 - 04.04.2010

well it all seems right but if your spawning the player inside an interior make sure the interior id is correct and that you've changed it from the previous one.


Re: Spawn problem - RainingBlood - 04.04.2010

But I dont wana be spawn in a interior, my new spawn is outside.

I shood modify setplayerinterior to 1?


Re: Spawn problem - Beaver07 - 04.04.2010

no it would have to be 0 as that's the outside interior and if you say he's falling from the sky it means that the Z co-ord might not be correct.


Re: Spawn problem - iLcke - 04.04.2010

Код:
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//TheMafia spawn
  {
  SetPlayerToTeamColor(playerid);
  SetPlayerInterior(playerid, 0);
  SetPlayerPos(playerid, 2002.7013,1024.2695,10.8203);
  PlayerInfo[playerid][pInt] = 0;
  return 1;
  }



Re: Spawn problem - Beaver07 - 04.04.2010

looks good .. try it


Re: Spawn problem - RainingBlood - 04.04.2010

It spawn my in air again, in map I am in LS not in LV at 4 dragons (my new spawn)....


Re: Spawn problem - Last_Stand_Guardian - 04.04.2010

Hmmmmm are you sure that it is AT the 4 Dragon not IN the 4 Dragon?

Z-coord; 300 is very high :O