Interiors
#1

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

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

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

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

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]
Reply
#6

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

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

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
Reply
#9

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


Forum Jump:


Users browsing this thread: 1 Guest(s)