Enterable house script help
#1

Hey, i'm trying to get it so that the tennis courts mansion in LS is an enterable building with this interior: http://weedarr.wdfiles.com/local--fi...ouseunused.jpg

I have got the 'info' icon at the entrance to the house and i want it so if you do /enter at the icon you enter the interior.

the only problem im having really is getting is getting is getting it so that if you do /enter at ONLY the position of the 'info' icon will you enter. at the moment its if i do /enter anywhere you get moved.

Код:
	if (strcmp("/enter", cmdtext, true, 10) ==0)
	{
	new Float:x, Float:y, Float:z;
	if GetPlayerPos(playerid, x, y, z) == itahouse*then
	SetPlayerPos(playerid, 2324.419921,-1145.568359,1050.710083);
	SetPlayerInterior(playerid,12);
	return 1;
	}
itahouse is the name of the pickup, which is the 'info' icon.

I await your replys.

thank you.
Reply


Messages In This Thread
Enterable house script help - by mongo11 - 16.07.2009, 12:45
Re: Enterable house script help - by Abernethy - 16.07.2009, 12:49
Re: Enterable house script help - by mongo11 - 16.07.2009, 12:55

Forum Jump:


Users browsing this thread: 6 Guest(s)