[Tutorial] Simple Interior with enter point
#1

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
Reply
#2

Very unexplained tutorial, try to improve it.
Reply
#3

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

am I missing something?
Reply
#4

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

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

Not Very Explained Someone Else Delete This And Explain Thanks
Reply
#7

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


Forum Jump:


Users browsing this thread: 1 Guest(s)