[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

;
}