Interior help
#1

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!
Reply
#2

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;
}

Reply
#3

Thanks guy, but where i put that code? OnGameModeInt ?
Reply
#4

OnPlayerCommandText is where you put it under.
Reply
#5

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

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

Reply
#7

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.
Reply
#8

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

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

... :/ how i fix.. ?
Reply
#10

// 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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)