SA-MP Forums Archive
Interior help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Interior help (/showthread.php?tid=70695)



Interior help - Martinike - 26.03.2009

How i can add La Cosa Nostra interior ?
Id interior 9
spawn: 1893.369,-2020.453,13.54688 (a /enter will go house)

Thanks, if anyone make code!


Re: Interior help - Snyper18 - 26.03.2009

For godfather :
Quote:

if(strcmp(cmd,"/enter",true)==0)
{
SetPlayerInterior(playerid,9);
PlayerInfo[playerid][pInt] = 9;
SetPlayerPos(playerid,1893.369,-2020.453,13.5468;
return 1;
}

For a normal script :
Quote:

if(strcmp(cmd,"/enter",true)==0)
{
SetPlayerInterior(playerid,9);
SetPlayerPos(playerid,1893.369,-2020.453,13.5468;
return 1;
}




Re: Interior help - Martinike - 26.03.2009

Thanks guy, but where i put that code? OnGameModeInt ?


Re: Interior help - Snyper18 - 26.03.2009

OnPlayerCommandText is where you put it under.


Re: Interior help - Martinike - 26.03.2009

Worked, but, if /enter
and ... (look picture)
http://www.upload.ee/image/36713/sa-mp-011.png


Re: Interior help - Snyper18 - 26.03.2009

Did you use the godfather version one? I see you use GF..

Use this :
Quote:

if(strcmp(cmd,"/enter",true)==0)
{
SetPlayerInterior(playerid,9);
PlayerInfo[playerid][pInt] = 9;
SetPlayerPos(playerid,1893.369,-2020.453,13.5468;
return 1;
}
And when you exit Set the Interior to 0 and Set the Position of where they /entered




Re: Interior help - Martinike - 26.03.2009

I could not understand... ?

SetPlayerPos(playerid,1893.369,-2020.453,13.5468; (This is where /enter to go interior)

And interior id is 9
Like that house a interior: Picture url: http://www.upload.ee/image/36723/sa-mp-012.png

Thanks.


Re: Interior help - Snyper18 - 26.03.2009

Well if you used what I gave you, it should work.


Re: Interior help - Martinike - 26.03.2009

i typed /enter and http://www.upload.ee/image/36713/sa-mp-011.png

... :/ how i fix.. ?


Re: Interior help - Snyper18 - 26.03.2009

// 1893.369,-2020.453,13.54688
Quote:

Quote
if(strcmp(cmd,"/enter",true)==0)
{
SetPlayerInterior(playerid,9);
PlayerInfo[playerid][pInt] = 9;
SetPlayerPos(playerid,1893.369,-2020.453,13.5468;
return 1;
}

That should Work... To /enter the place...
You sure you got the right Interior?