[HELP] Adding a "Portal" To Teleport In A House Or A Area
#1

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

Do you mean a pickup?
Reply
#3

Yea!
Reply
#4

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

Read more about it on wiki.
Reply
#5

Tyvm don
Reply
#6

where do i put the codes?

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

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

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?

Reply
#9

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.
Reply
#10

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)