SA-MP Forums Archive
[Tutorial] Simple Interior with enter point - 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)
+---- Forum: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] Simple Interior with enter point (/showthread.php?tid=350459)



Simple Interior with enter point - kepa333 - 12.06.2012

MAKING A SIMPLE INTERIOR ENTER WITH WELCOME MESSAGE AND TELEPORT

Today I will tell you how to make a simple Interior With Enter point.

-1. First u need to find your interior.
Interiors:https://sampwiki.blast.hk/wiki/InteriorIDs
There u can find x,y,z wich 1 u will need for enter point.

-2. We will create 3DTextLabel and pickup on the exit and enter:
add it under public OnGameModeInit()
Example:
Code:
CreateDynamicPickup(1314, 1, 1481.0206,-1771.1138,18.7958,0); 
Create3DTextLabel("[your interior] \n Press \"ENTER VEHICLE\" to enter the Place.",0xFFFF00AA, 1481.0206,-1771.1138,18.7958, 20,0,1);
U can find more infos about 3DTextLabel:Here
U can find more infos about Pickups: Here

-3. we gonna make interior with teleport and message when enter:

Example:
Add it under: public OnPlayerCommandText(playerid, cmdtext[])

Code:
if (strcmp("/entermyint", cmdtext, true, 5) == 0)
{
	if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
	{
		SetPlayerPos(playerid, 235.7598, 142.4089, 1003.0300);
		GameTextForPlayer(playerid, "~w~Your interior", 5000, 1);
		SetPlayerInterior(playerid, interiorid);
	}
	return 1;
}
If u like it rep+

CREDITS:
Kepa333


Re: Simple Interior with enter point - Spookie98 - 15.06.2012

Very unexplained tutorial, try to improve it.


Re: Simple Interior with enter point - Stevee - 15.06.2012

Your 3D label says "Press ENTER VEHICLE to enter", but you have to use the command /entermyint

am I missing something?


Re: Simple Interior with enter point - Flake. - 15.06.2012

i can tell you have just took this straight from a roleplay script...


Re: Simple Interior with enter point - ikey07 - 15.06.2012

This whole tut is one big mess up and should be removed so newbies mind doesnt get fucked up

1st Its not explained enough
2nd That press ENTER VEHICLE and later cmd to enter
3rd Coordinates from 3D labels and cmd is different
4th CMD itself wont work as lenght doesnt match: if (strcmp("/entermyint", cmdtext, true, 5) == 0)
5th If someone want test it, it wont work in no way at all.
6th Isnt defined interiorid in the cmd: SetPlayerInterior(playerid, interiorid);
7th rep+ at the end made me puke...


Re: Simple Interior with enter point - Pillhead2007 - 18.08.2012

Not Very Explained Someone Else Delete This And Explain Thanks


Re: Simple Interior with enter point - im - 18.08.2012

There should be a number of posts / reputation points required to post a tutorial.
There are a ton of tutorials like this one posted in here that are usefull to no one..