Spawn problem
#1

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?

Reply
#2

Up
Reply
#3

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.
Reply
#4

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

I shood modify setplayerinterior to 1?
Reply
#5

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.
Reply
#6

Код:
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;
  }
Reply
#7

looks good .. try it
Reply
#8

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

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

Z-coord; 300 is very high :O
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)