Need help with entrance FS
#1

Today, i made a entrance FS.I write the cordinates of LSPD, but when i say /enter this teleports me in DMV....
Code:
CMD:enter(playerid, params[])
{
	if(IsPlayerInRangeOfPoint(playerid,8.0,1963.1943,1342.9351,16.5465)) //BCPD
			{
				SetPlayerVirtualWorld(playerid, 0);
				SetPlayerInterior(playerid,6);
				SetPlayerPos(playerid,246.8240,62.6125,1003.6406);
			}
Reply
#2

You need change then SetPlayerPos cordinates.
Reply
#3

Maybe you have another /enter in range of the same point which sends you to the DMV. Maybe in the GM.

@Aprezt the coords are fine.
Reply
#4

Quote:
Originally Posted by Daddy Yankee
View Post
Maybe you have another /enter in range of the same point which sends you to the DMV. Maybe in the GM.

@Aprezt the coords are fine.
Sry Prolly are you sure that IsPlayerInRangeOfPoint got correct coordinates?
Reply
#5

Yes, all cordinates are right, but....I dont have another /enter command in my GM, i dont have anything in my GM
Reply
#6

I say you probably do not, but do you have an else statement on this command? It could send you to the wrong place, but im sure you was smart enough to see that... And, is there any other doors in the range of that point? (Doors that also tp you...)
Reply
#7

Yes, THAT is !Doors near, i am gonna check this tonight, thx you
Reply
#8

Well, what i was getting to... If there are also doors in the range (playerid,8.0,1963.1943,1342.9351,16.5465)... Then you need to decrease the range, ex. 8 needs to be around 4 or 5 instead...
Reply
#9

How to remove the entrances, maked be the game, my gamemode is empty and hasnt got scripts, but LSPD has door for entrance
Reply
#10

DisableInteriorEnterExits();



^Put this under OnGamemodeInit
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)