Automatically enter interior
#1

Okay I need some help on how to put a icon at a random place and then when a player goes on that icon he is automatically enterd into the interior without typing /enter etc.

Ive got this for an example:
Код:
			if (PlayerToPoint(3.0, playerid,-1494.3143,920.1636,7.1875))
			{
			       SetPlayerInterior(playerid,3);
			       SetPlayerPos(playerid,387.7978,173.8582,1008.3828);
			       GameTextForPlayer(playerid, "~w~Welcome to City Hall", 5000, 1);
				PlayerInfo[playerid][pInt] = 3;
				PlayerInfo[playerid][pLocal] = 241;
			}
All i need to know is where to put this code.

THanks
Reply
#2

In a timer.
Reply
#3

Quote:
Originally Posted by Don Correlli
In a timer.
Did not help one bit.
Reply
#4

OnPlayerPickUpPickup?
Reply
#5

Quote:
Originally Posted by Abernethy♥
OnPlayerPickUpPickup?
Ill give this a try thanks.

Okay works good but when i enter the interior it enters where the exit point is so it automatically exits me when i walk in. i cant really walk it just goes enter, exit, enter, exit.

Help thanks
Reply
#6

Move the entrance point away from the exit.
Reply
#7

Quote:
Originally Posted by Giacomand
Move the entrance point away from the exit.
that wouldnt make a difference, im going into the interior and either way its going to land on the exit of the interior
Reply
#8

I've nearly worked out how to do it but if i have 2 cluckin bells and enter one then exit it spawns me at the exit of the second one. Then if go into the second one and exit it spawns me at the first one. Whats the problem here?

Thanks
Reply
#9

You have the wrong coords in a SetPlayerPos in OnPlayerPickUpPickup
Reply
#10

Quote:
Originally Posted by dice7
You have the wrong coords in a SetPlayerPos in OnPlayerPickUpPickup
it happens with burgershot, cluckin bell and pizza because the same interior is used.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)