Teleport
#1

This code doesn't work and I'm not sure why. You teleport but you only see blue.
Could someone help?

Код:
if(strcmp(cmd, "/sasdexit", true) == 0)
 	{
		if(IsPlayerConnected(playerid))
		{
		  if(GetPlayerState(playerid) == 1)
		  {
     if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 )
		    {
		      if(PlayerToPoint(playerid, 322.197998,302.497985,999.148437))
		      {
		      	SetPlayerPos(3,playerid, 610.7316,-583.9091,18.0198);
		      	GameTextForPlayer(playerid, "~w~Sheriffs Department",5000,1);
					}
		    }
		  }
		}
		return 1;
 	}
Reply
#2

Anyone?
Reply
#3

What the hell is this?
pawn Код:
SetPlayerPos(3,playerid, 610.7316,-583.9091,18.0198);
https://sampwiki.blast.hk/wiki/SetPlayerPos
https://sampwiki.blast.hk/wiki/SetPlayerInterior

pawn Код:
SetPlayerPos(playerid, 610.7316,-583.9091,18.0198); //Teleport
SetPlayerInterior(playerid, 5); //Set his interior
Reply
#4

pawn Код:
SetPlayerVirtualWorld(playerid,world); //Set its Virtual World
Reply
#5

Quote:
Originally Posted by pıʞoɹʎd
What the hell is this?
pawn Код:
SetPlayerPos(3,playerid, 610.7316,-583.9091,18.0198);
https://sampwiki.blast.hk/wiki/SetPlayerPos
https://sampwiki.blast.hk/wiki/SetPlayerInterior

pawn Код:
SetPlayerPos(playerid, 610.7316,-583.9091,18.0198); //Teleport
SetPlayerInterior(playerid, 5); //Set his interior
Im teleporting from an interior to outside is what I mean.
Reply
#6

Then don't add the SetPlayerInterior line.
Reply
#7

Quote:
Originally Posted by pıʞoɹʎd
Then don't add the SetPlayerInterior line.
I don't have it added, but when I do the command it teleports me but the background is all blue.
Reply
#8

Quote:
Originally Posted by -eXo
Quote:
Originally Posted by pıʞoɹʎd
Then don't add the SetPlayerInterior line.
I don't have it added, but when I do the command it teleports me but the background is all blue.
Sorry about that. Add SetPlayerInterior(playerid, 0);



Or use SetPlayerPosInt.
http://forum.sa-mp.com/index.php?top...1524#msg631524
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)