SA-MP Forums Archive
Need help with entrance FS - 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)
+--- Thread: Need help with entrance FS (/showthread.php?tid=459195)



Need help with entrance FS - bustern - 21.08.2013

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



Re: Need help with entrance FS - Aprezt - 21.08.2013

You need change then SetPlayerPos cordinates.


Re: Need help with entrance FS - Daddy Yankee - 21.08.2013

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.


Re: Need help with entrance FS - Aprezt - 21.08.2013

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?


Re: Need help with entrance FS - bustern - 21.08.2013

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


Re: Need help with entrance FS - cray1100 - 21.08.2013

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...)


Re: Need help with entrance FS - bustern - 21.08.2013

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


Re: Need help with entrance FS - cray1100 - 21.08.2013

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...


Re: Need help with entrance FS - bustern - 21.08.2013

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


Re: Need help with entrance FS - cray1100 - 21.08.2013

DisableInteriorEnterExits();



^Put this under OnGamemodeInit