SA-MP Forums Archive
Teleport into Room Problem & /exit help - 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: Teleport into Room Problem & /exit help (/showthread.php?tid=74100)



Teleport into Room Problem & /exit help - nickbugun - 19.04.2009

I made it that when a player goes near a door he gets teleported into a room, and the problem is that he gets teleported into the sky, not in the room, I used SetPlayerPos, any help?

Also, I want that when a player is inside a room and types /exit he goes out of the room... Help?


Re: Teleport into Room Problem & /exit help - Backwardsman97 - 19.04.2009

Can we see some code?


Re: Teleport into Room Problem & /exit help - nickbugun - 19.04.2009

Код:
adminhq = CreatePickup(1239, 1, -308.3938,1538.3638,75.5625);
Код:
  	else if (pickupid == adminhq)
  {
  	SetPlayerPos(playerid, 2309.9058,-1643.7791,14.8270);
  	GameTextForPlayer(playerid, "~r~Admin Bar", 5000, 1);
  }



Re: Teleport into Room Problem & /exit help - member - 19.04.2009

Your coordinates might be wrong. Or, if your 'room' is in an interior, then you need the interior id.