[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


Messages In This Thread
Simple Interior with enter point - by kepa333 - 12.06.2012, 16:39
Re: Simple Interior with enter point - by Spookie98 - 15.06.2012, 11:52
Re: Simple Interior with enter point - by Stevee - 15.06.2012, 13:18
Re: Simple Interior with enter point - by Flake. - 15.06.2012, 14:03
Re: Simple Interior with enter point - by ikey07 - 15.06.2012, 14:09
Re: Simple Interior with enter point - by Pillhead2007 - 18.08.2012, 18:35
Re: Simple Interior with enter point - by im - 18.08.2012, 19:32

Forum Jump:


Users browsing this thread: 1 Guest(s)