How To Make enterable building?
#2

if(!strcmp(cmdtext, "/enter", true))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, FLOAT:X,FLOAT:Y,FLOAT:Z))
{
SetPlayerPos(playerid, FLOAT:X,FLOAT:Y,FLOAT:Z);
SetPlayerInterior(playerid, [Add Your Interior Here!]);
}
}
if(!strcmp(cmdtext, "/exit", true))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, FLOAT:X,FLOAT:Y,FLOAT:Z))
{
SetPlayerPos(playerid, FLOAT:X,FLOAT:Y,FLOAT:Z);
SetPlayerInterior(playerid, [Add Your Interior Here]);
}
}

Go In-Game Do /save Where You Want To Make Limit When They Do /Enter Then They Will Enter And Same To The Exit. And Don't Forget To Add Your Interior!And Add It Under The Callback OnPlayerCommandText.
Reply


Messages In This Thread
How To Make enterable building? - by NayanIndia - 04.02.2015, 15:00
Re: How To Make enterable building? - by Karan007 - 04.02.2015, 15:14
Re: How To Make enterable building? - by MBilal - 04.02.2015, 15:42

Forum Jump:


Users browsing this thread: 1 Guest(s)