Interiors
#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


Messages In This Thread
Interiors - by Dziugsas - 21.07.2012, 07:32
Re: Interiors - by COSRP.CO.CC - 21.07.2012, 07:45
Re: Interiors - by Captain_Mani - 21.07.2012, 07:47
Re: Interiors - by Dziugsas - 21.07.2012, 07:48
Re: Interiors - by Dziugsas - 21.07.2012, 07:51
Re: Interiors - by RedJohn - 21.07.2012, 07:54
Re: Interiors - by COSRP.CO.CC - 21.07.2012, 08:57
Re: Interiors - by Devilxz97 - 21.07.2012, 09:18
Re: Interiors - by Cjgogo - 21.07.2012, 09:26

Forum Jump:


Users browsing this thread: 1 Guest(s)