SA-MP Forums Archive
Interiors - 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)
+--- Thread: Interiors (/showthread.php?tid=361478)



Interiors - Dziugsas - 21.07.2012

Hello mates! I need some help making interiors for house system. I looked some here https://sampwiki.blast.hk/wiki/InteriorIDs but burgulary houses don't work! When I type /enter it teles me near interior in black space .... Whats wrong?


Re: Interiors - COSRP.CO.CC - 21.07.2012

You must have done something wrong in it post your enter command here check it out that coordinates works fine or no.


Re: Interiors - Captain_Mani - 21.07.2012

Make that when you type /enter, SetPlayerInterior(playerid, interiorid);
https://sampwiki.blast.hk/wiki/SetPlayerInterior


Re: Interiors - Dziugsas - 21.07.2012

it working fine im using Cali-Houses but the point is that i must wrongly paste the interior cords.But those cords are from wiki.


Re: Interiors - Dziugsas - 21.07.2012

Sample:

[PAWN][/if(listitem == 6)
{
new randvir = 2 + random(1999999);
new str[64];
SetupHouseInfo[playerid][SetupPrice] += 500000;
SetupHouseInfo[playerid][SetupTX] = 2317.8201;
SetupHouseInfo[playerid][SetupTY] = -1024.3892;
SetupHouseInfo[playerid][SetupTZ] = 1050.2109;
SetupHouseInfo[playerid][SetupTA] = 360.0000;
SetupHouseInfo[playerid][SetupInt] = 9;
SetupHouseInfo[playerid][SetupVir] = randvir;
SendClientMessage(playerid, 0xFFFF00FF, "Tavo namo vidus bus :");
SendClientMessage(playerid, 0xFFFFFFAA, "Villa");
format(str, sizeof(str), "Price: $%d", SetupHouseInfo[playerid][SetupPrice]);
SendClientMessage(playerid, 0xFFFFFFAA, str);
ShowPlayerDialog(playerid, 668, DIALOG_STYLE_LIST, "House Setup", "Entrance\nName\nDescription\nInterior\nRent\nPurc hase", "Select", "");
PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
HasAlreadySetupInterior[playerid] = true;
new file[100], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, 24);
format(file, sizeof(file), "Houses/%s.ini", pName);
dini_IntSet(file, "Price", SetupHouseInfo[playerid][SetupPrice]);
dini_FloatSet(file, "Teleport X", SetupHouseInfo[playerid][SetupTX]);
dini_FloatSet(file, "Teleport Y", SetupHouseInfo[playerid][SetupTY]);
dini_FloatSet(file, "Teleport Z", SetupHouseInfo[playerid][SetupTZ]);
dini_FloatSet(file, "Teleport Angle", SetupHouseInfo[playerid][SetupTA]);
dini_IntSet(file, "Interior", 9);
dini_IntSet(file, "Virtual", randvir);PAWN]


Re: Interiors - RedJohn - 21.07.2012

Its not [PAWN]['yourcode;PAWN]. Its [ pawn] [ /pawn] (without spaces)


Re: Interiors - COSRP.CO.CC - 21.07.2012

Quote:
Originally Posted by Dziugsas
Посмотреть сообщение
Sample:

pawn Код:
[/if(listitem == 6)
            {
                new randvir = 2 + random(1999999);
                new str[64];
                SetupHouseInfo[playerid][SetupPrice] += 500000;
                SetupHouseInfo[playerid][SetupTX] = 2317.8201;
                SetupHouseInfo[playerid][SetupTY] = -1024.3892;
                SetupHouseInfo[playerid][SetupTZ] = 1050.2109;
                SetupHouseInfo[playerid][SetupTA] = 360.0000;
                SetupHouseInfo[playerid][SetupInt] = 9;
                SetupHouseInfo[playerid][SetupVir] = randvir;
                SendClientMessage(playerid, 0xFFFF00FF, "Tavo namo vidus bus :");
                SendClientMessage(playerid, 0xFFFFFFAA, "Villa");
                format(str, sizeof(str), "Price: $%d", SetupHouseInfo[playerid][SetupPrice]);
                SendClientMessage(playerid, 0xFFFFFFAA, str);
                ShowPlayerDialog(playerid, 668, DIALOG_STYLE_LIST, "House Setup", "Entrance\nName\nDescription\nInterior\nRent\nPurchase", "Select", "");
                PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
                HasAlreadySetupInterior[playerid] = true;
                new file[100], pName[MAX_PLAYER_NAME];
                GetPlayerName(playerid, pName, 24);
                format(file, sizeof(file), "Houses/%s.ini", pName);
                dini_IntSet(file, "Price", SetupHouseInfo[playerid][SetupPrice]);
                dini_FloatSet(file, "Teleport X", SetupHouseInfo[playerid][SetupTX]);
                dini_FloatSet(file, "Teleport Y", SetupHouseInfo[playerid][SetupTY]);
                dini_FloatSet(file, "Teleport Z", SetupHouseInfo[playerid][SetupTZ]);
                dini_FloatSet(file, "Teleport Angle", SetupHouseInfo[playerid][SetupTA]);
                dini_IntSet(file, "Interior", 9);
                dini_IntSet(file, "Virtual", randvir);
You must wrap it in [pawn] Otherwise its so hard to read it out.


Re: Interiors - Devilxz97 - 21.07.2012

SetPlayerPos: https://sampwiki.blast.hk/wiki/SetPlayerPos
SetPlayerInterior: https://sampwiki.blast.hk/wiki/SetPlayerInterior
SetPlayerVirtualWorld: https://sampwiki.blast.hk/wiki/SetPlayerVirtualWorld

For the Interior ID's : http://weedarr.wikidot.com/interior

i hope u know what i means


Re: Interiors - Cjgogo - 21.07.2012

I think I might have spotted the problem,you use Cali House System,I have an other house system wich works perfectly,it's called my house system.You shoould really script one for yourself,plus I see Cali's house system uses dini,and that's slow.