Teleport - 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 (
/showthread.php?tid=74714)
Teleport -
-eXo - 25.04.2009
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;
}
Re: Teleport -
-eXo - 25.04.2009
Anyone?
Re: Teleport -
Pyrokid - 25.04.2009
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
Re: Teleport -
Danut - 25.04.2009
pawn Код:
SetPlayerVirtualWorld(playerid,world); //Set its Virtual World
Re: Teleport -
-eXo - 25.04.2009
Quote:
Originally Posted by pıʞoɹʎd
|
Im teleporting from an interior to outside is what I mean.
Re: Teleport -
Pyrokid - 25.04.2009
Then don't add the SetPlayerInterior line.
Re: Teleport -
-eXo - 25.04.2009
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.
Re: Teleport -
Pyrokid - 25.04.2009
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