SA-MP Forums Archive
[HELP] Adding a "Portal" To Teleport In A House Or A Area - 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: [HELP] Adding a "Portal" To Teleport In A House Or A Area (/showthread.php?tid=91369)



[HELP] Adding a "Portal" To Teleport In A House Or A Area - Smiths - 14.08.2009

Where do i start to create Portals or idk the name of it!


Re: [HELP] Adding a "Portal" To Teleport In A House Or A Area - GTA_Rules - 14.08.2009

Do you mean a pickup?


Re: [HELP] Adding a "Portal" To Teleport In A House Or A Area - Smiths - 14.08.2009

Yea!


Re: [HELP] Adding a "Portal" To Teleport In A House Or A Area - Correlli - 14.08.2009

https://sampwiki.blast.hk/wiki/CreatePickup

Read more about it on wiki.


Re: [HELP] Adding a "Portal" To Teleport In A House Or A Area - Smiths - 14.08.2009

Tyvm don


Re: [HELP] Adding a "Portal" To Teleport In A House Or A Area - Smiths - 14.08.2009

where do i put the codes?

Код:
new pickup;
pickup = CreatePickup ( 1242, 2, 1503.3359, 1432.3585, 10.1191 );



Re: [HELP] Adding a "Portal" To Teleport In A House Or A Area - Correlli - 14.08.2009

It's best if you add it at OnGameModeInit callback.


Re: [HELP] Adding a "Portal" To Teleport In A House Or A Area - Smiths - 14.08.2009

I don't understand.... if i want to make a pickup with the Id 1272 and i want him to teleport me what do i do?




Re: [HELP] Adding a "Portal" To Teleport In A House Or A Area - Questionable Noob - 14.08.2009

idk what your saying, heres an example from my server


else if(PlayerToPoint(1, i,953.5889,-3046.4749,8.9129))
{//DMV entrance
GameTextForPlayer(i, "~B~ DMV, type /DMV here", 5000, 1);
SetPlayerInterior(i, 3);
SetPlayerVirtualWorld(i, 0);
SetPlayerFacingAngle(i, 266.8530);
SetPlayerPos(i,387.5284,173.9172,1008.382;
}

and


AddStaticPickup(1239,2,953.5889,-3046.4749,8.9129);//i icon - dmv enter

Just create a playertopoint thing and then you can add a static pickup there.



Re: [HELP] Adding a "Portal" To Teleport In A House Or A Area - Smiths - 14.08.2009

nice ty but where did u put the code :

else if(PlayerToPoint(1, i,953.5889,-3046.4749,8.9129))
{//DMV entrance
GameTextForPlayer(i, "~B~ DMV, type /DMV here", 5000, 1);
SetPlayerInterior(i, 3);
SetPlayerVirtualWorld(i, 0);
SetPlayerFacingAngle(i, 266.8530);
SetPlayerPos(i,387.5284,173.9172,1008.382;
}