12.06.2012, 16:39
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:
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[])
If u like it rep+
CREDITS:
Kepa333
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 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; }
CREDITS:
Kepa333