SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 27/03/2020, 04:36 AM   #1
Chonak
Little Clucker
 
Join Date: Jun 2018
Posts: 3
Reputation: 0
Default [Help] System Furniture [Spanish]

Hola, podrían ayudarme con un sistema de muebles?. Lo que pasa es que guarda los archivos en DOF2, pero al reiniciar se borran los muebles. ¿Alguien podría ayudarme su sistema de guardado a uno Sqlite?

Y tengo otro sistema de muebles en Sqlite, pero no funcionan sus diálogos. Al usar el comando aparece el diálogo, pero al escoger una opción éste se quita.
Chonak is offline   Reply With Quote
Old 27/03/2020, 08:42 AM   #2
Lynn
Gangsta
 
Lynn's Avatar
 
Join Date: Jan 2010
Location: Detroit, Michigan USA
Posts: 936
Reputation: 108
Default Re: [Help] System Furniture [Spanish]

enviar código que tiene o solicite en la sección de idioma extranjero

perdón por el mal español
__________________
Former developer at Next Generation Gaming
Lynn is offline   Reply With Quote
Old 28/03/2020, 06:09 PM   #3
Chonak
Little Clucker
 
Join Date: Jun 2018
Posts: 3
Reputation: 0
Default Re: [Help] System Furniture [Spanish]

Descuida, si logré entenderte.

Acá el código del sistema en Sqlite:

HTML Code:
/*                      FURNITURE SYSTEM v1.0 BY KIDDO
                       CREDITS: KIDDO, BLUEG, INCOGNITO, ******
					    (Do not remove this line!)
				        DO NOT (RE)RELEASE THIS SCRIPT!
																			 */
#include <a_samp>
#include <sqlitei>
#include <zcmd>
#include <sscanf2>
#include <streamer>
#include <foreach>

// Color Defines
#define COL_RED          "{FF2626}"
#define COL_GREEN        "{86C44D}"
#define COL_WHITE        "{FFFFFF}"
#define COL_GREY         "{CCCCCC}"
#define COL_BLUE         "{4373E6}"
#define COL_ORANGE       "{E6BA43}"
#define COL_PURPLE       "{CD8DD9}"
#define COL_LIGHTRED     "{FA6161}"
#define COL_LIGHTGREEN   "{56ED1A}"
#define COL_LIGHTBLUE    "{61BFFA}"
#define COL_AQUA         "{61FAFA}"
#define COL_LOGIN        "{FA9761}"
#define COL_PINK         "{FA61F7}"
#define COL_YELLOW       "{FFFB00}"
#define COL_BLACK        "{000000}"

#define MAX_FOBJECTS 200
#define DIALOG_OBJECTS   	10000
#define DIALOG_USED      	10001
#define DIALOG_NOTUSED   	10002
#define DIALOG_CHOOSETYPE   10003
#define DIALOG_TABLE        10004
#define DIALOG_BUY          10005
#define DIALOG_CHAIR        10006
#define DIALOG_BEDS         10007
#define DIALOG_SOFAS        10008
#define DIALOG_DECORATIONS  10009
#define DIALOG_APPLIANCES   10010

new DB:dbhandle;
new object[MAX_FOBJECTS];
new usingslot[10];
new preview[MAX_PLAYERS];
new objectmodel[MAX_PLAYERS];
new editingobject[MAX_PLAYERS];
new objectprice[MAX_PLAYERS];

forward f_LoadPlayer(playerid);
forward f_ObjectsLoad();

enum table
{
    tid,
    tablename[48],
    tableprice
}
new Tables[15][table] = {
{1281, "Park Table[$100]",100},
{1432, "Plain Table[$120]",120},
{1594, "Plain table + Chairs[500$]",500},
{1825, "Elegant table + Chairs[500$]",500},
{1827, "Elegant table[800$]",800},
{1433, "Living Room Table 1[[250$]",250},
{1516, "Living Room Table 2[250$]",250},
{1524, "Craps Table[3050$]",3050},
{2311, "TV Table 1[402$]",402},
{2313, "TV Table 2[450$]",450},
{2315, "TV Table 3[420$]",420},
{2346, "Hi Fi Table 1[500$]",500},
{2635, "Pizza Table[150$]",150},
{2762, "Red Table(Cluckin Bell)[402$]",402},
{2799, "Black Table + 2chairs[750$]",750}
};

enum Character_Enum
{
	ch_SKIN,
	ch_CASH //interior
};
new CHARACTER_INFO[MAX_PLAYERS][Character_Enum];

enum chair
{
    cid,
    chairname[48],
    chairprice
}
new Chairs[15][chair] = {
{1369, "Wheelchair[$1000]",1000},
{1663, "Office Chair 1[$1000]",1000},
{1704, "Chair 1[1000$]",1000},
{1705, "Chair 2[1000$]",1000},
{1708, "Chair 3[1000$]",1000},
{1711, "Chair 4[1000$]",1000},
{1714, "Elegant office chair[1000$]",1000},
{1720, "Rest Chair[220$]",1000},
{1721, "Waiting room chair[1000$]",1000},
{1735, "Chair 5[1000$]",1000},
{1739, "Dinning Chair[1000$]",1000},
{1806, "Office Chair 3[1000$]",1000},
{1811, "Low Dinning Chair[1000$]",1000},
{2079, "Dinning Chair 2[1000$]",1000},
{2120, "Medium Dinning Chair[1000$]",1000}
};
enum bed
{
    bid,
    bedname[48],
    bedprice
}
new Beds[15][bed] = {
{1700, "Sleeping Room Bed[$1000]",1000},
{1701, "Sleeping Room Bed 2[$1000]",1000},
{1745, "Sleeping Room Bed 3[$1000]",1000},
{1793, "Low Bed[$1000]",1000},
{1794, "Low Bed 2[$1000]",1000},
{1796, "Low Bed 3[$1000]",1000},
{1797, "Swank Bed[$1000]",1000},
{1798, "Swank Bed 2[$1000]",1000},
{1799, "Medium Bed[$1000]",1000},
{1800, "Low Bed[$1000]",1000},
{1802, "Medium Bed[$1000]",1000},
{1803, "Medium Bed 2[$1000]",1000},
{2299, "Elegant Bed[$1000]",1000},
{2563, "Bed Set 1[$1000]",1000},
{2566, "Bed Set 2[$1000]",1000}
};

enum sofa
{
    sid,
    sofaname[48],
    sofaprice
}
new Sofas[15][sofa] = {
{1702, "Living Room Couch[$1000]",1000},
{1703, "Living Room Couch 2[$1000]",1000},
{1706, "Living Room Couch 3[$1000]",1000},
{1707, "Living Room Couch 4[$1000]",1000},
{1712, "Living Room Couch 5[$1000]",1000},
{1713, "Living Room Couch 6[$1000]",1000},
{1753, "Swank Couch [$1000]",1000},
{1756, "Low Couch[$1000]",1000},
{1757, "Low Couch 2[$1000]",1000},
{1760, "Medium Couch[$1000]",1000},
{1761, "Swank Couch 2[$1000]",1000},
{1763, "Low Couch 3[$1000]",1000},
{1764, "Low Couch 4[$1000]",1000},
{1766, "Medium Couch 2 [$1000]",1000},
{1768, "Low Couch 5[$1000]",1000}
};

enum decoration
{
    did,
    decname[48],
    decprice
}
new Decorations[15][decoration] = {
{2833, "Living Grug[$1000]",1000},
{1834, "Living Grug 2[$1000]",1000},
{1835, "Living Grug 3[$1000]",1000},
{1836, "Living Grug 4[$1000]",1000},
{1811, "Flower Pot 1[$1000]",1000},
{1834, "Burger Shot bag[$1000]",1000},
{2510, "Plane Model[$1000]",1000},
{2502, "Hobby Shelf[$1000]",1000},
{2353, "Meal object[$1000]",1000},
{2284, "Frame 1[$1000]",1000},
{2285, "Frame 2[$1000]",1000},
{2286, "Frame 3[$1000]",1000},
{2267, "Frame 4[$1000]",1000},
{2274, "Frame 5[$1000]",1000},
{2251, "Plant Pot 1[$1000]",1000}
};

enum appl
{
    appid,
    appname[48],
    appprice
}
new Appliances[15][appl] = {
{1429, "Broken TV[$1000]",1000},
{1518, "TV[$1000]",1000},
{2297, "TV Unit[$1000]",1000},
{1429, "Broken TV [$1000]",1000},
{16377, "TV Stand[$1000]",1000},
{2131, "Kitchen Fridge[$1000]",1000},
{2132, "Kitchen Sink[$1000]",1000},
{2170, "Kitchen Cooker[$1000]",1000},
{2340, "Kitchen Washer[$1000]",1000},
{2131, "Cooker + Cabinet[$1000]",1000},
{2421, "Microwave[$1000]",1000},
{2528, "Toilet[$1000]",1000},
{2526, "Bath[$1000]",1000},
{1514, "Till[$1000]",1000},
{1515, "Slot Machine[$1000]",1000}
};

enum fInfo
{
	id,
	Name[MAX_PLAYER_NAME],
	Slot[30]
};
new FurnitureInfo[MAX_PLAYERS][fInfo];

enum oInfo
{
	id,
	modelid,
	Float:x,
	Float:y,
	Float:z,
	Float:rx,
	Float:ry,
	Float:rz,
	worldid,
	interiorid
};
new ObjectInfo[MAX_FOBJECTS][oInfo];
// -----------------------------------------------------//
public OnFilterScriptInit()
{
    dbhandle = db_open("Muebles.db");
    if(dbhandle)
    {    // Declaramos un array del tipo char con 800 índices.
		db_query(dbhandle, "CREATE TABLE IF NOT EXISTS object(id INTEGER, modelid INTEGER, x FLOAT, y FLOAT, z FLOAT, rx FLOAT, ry FLOAT, rz FLOAT, worldid INTEGER, interiorid INTEGER)");
		db_query(dbhandle,"CREATE TABLE IF NOT EXISTS players(name VARCHAR, slot1 INTEGER, slot2 INTEGER, slot3 INTEGER, slot4 INTEGER, slot5 INTEGER, slot6 INTEGER, slot7 INTEGER, slot8 INTEGER, slot9 INTEGER, slot10 INTEGER \
		slot11 INTEGER, slot12 INTEGER, slot13 INTEGER, slot14 INTEGER, slot15 INTEGER, slot16 INTEGER, slot17 INTEGER, slot18 INTEGER, slot19 INTEGER, slot20 INTEGER \
		slot21 INTEGER, slot22 INTEGER, slot23 INTEGER, slot24 INTEGER, slot25 INTEGER, slot26 INTEGER, slot27 INTEGER, slot28 INTEGER, slot29 INTEGER, slot30 INTEGER)"); //Preparamos la sentencia SQL para crear la 				tabla usuarios en caso de que no exista.
    }
    return 1;
}

public OnFilterScriptExit()
{
	new counto;
	for(new i = 0; i < MAX_FOBJECTS; i++)
	{
		if(ObjectInfo[i][id] != 0)
		{
			f_ObjectSave(i);
			counto++;
		}
	}
	foreach(new p : Player) f_SavePlayer(p);
	printf("Saving Objects: Saved %d objects!",counto);
    db_close(dbhandle);
	return 1;
}
public OnPlayerConnect(playerid)
{
	new name[MAX_PLAYER_NAME];
	GetPlayerName(playerid,name,sizeof(name));
	//SendClientMessage(playerid,-1,""COL_LIGHTBLUE"»"COL_WHITE" This server is using "COL_LIGHTBLUE"Furniture System V1"COL_WHITE" by"COL_LIGHTBLUE" Kiddo"COL_WHITE"!"); // You can remove this line
	new query[256];
	format(query, sizeof(query), "SELECT * FROM players WHERE name = '%q' ",name);
    db_query(dbhandle, query);
	usingslot[playerid] = 999;
	editingobject[playerid] = 999;
	return 1;
}
public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ)
{
	new Float:oldX, Float:oldY, Float:oldZ,Float:oldRotX, Float:oldRotY, Float:oldRotZ;
	GetDynamicObjectPos(objectid, oldX, oldY, oldZ);
	GetDynamicObjectRot(objectid, oldRotX, oldRotY, oldRotZ);
	if(response == EDIT_RESPONSE_FINAL)
	{
    	SetDynamicObjectPos(objectid, fX, fY, fZ);
	    SetDynamicObjectRot(objectid, fRotX, fRotY, fRotZ);
		ObjectInfo[editingobject[playerid]][x] = fX;
		ObjectInfo[editingobject[playerid]][y] = fY;
		ObjectInfo[editingobject[playerid]][z] = fZ;
		ObjectInfo[editingobject[playerid]][rx] = fRotX;
		ObjectInfo[editingobject[playerid]][ry] = fRotY;
		ObjectInfo[editingobject[playerid]][rz] = fRotZ;
		SendClientMessage(playerid,-1,""COL_YELLOW"Muebles:"COL_WHITE" ¡Has terminado de editar el objeto!");
		f_ObjectSave(editingobject[playerid]);
		editingobject[playerid] = 999;
	}
	if(response == EDIT_RESPONSE_CANCEL)
	{
    	SetDynamicObjectPos(editingobject[playerid], oldX, oldY, oldZ);
	    SetDynamicObjectRot(editingobject[playerid], oldRotX, oldRotY, oldRotZ);
		SendClientMessage(playerid,-1,""COL_YELLOW"Muebles:"COL_WHITE" Has cancelado la edición de objetos!");
		editingobject[playerid] = 999;
	}
}
public OnPlayerDisconnect(playerid, reason)
{
	f_SavePlayer(playerid);
	return 1;
}

CMD:muebles(playerid, params[])
{
	new string[1250];
	new otext[128];
	for(new i = 0; i < 30; i++)
	{
	    if(FurnitureInfo[playerid][Slot][i] != 0) format(otext,sizeof(otext),""COL_WHITE"Slot ID %d "COL_RED"(Usado)",i);
	    else format(otext,sizeof(otext),""COL_WHITE"Slot ID %d "COL_GREEN"(Disponbile)",i);
		format(string,sizeof(string),"%s%s\n",string,otext);
        ShowPlayerDialog(playerid, DIALOG_OBJECTS, DIALOG_STYLE_LIST,""COL_YELLOW"Tus Muebles",string, "Aceptar", "Salir");
	}
	return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	switch(dialogid)
	{
     case DIALOG_OBJECTS:
        {
            if(!response) return 1;
            else if(response)
            {
                usingslot[playerid] = listitem;
                new caption[48];
                if(FurnitureInfo[playerid][Slot][listitem] != 0)
                {
                    format(caption,sizeof(caption),""COL_YELLOW"Slot ID %d "COL_RED"(Usado)",listitem);
                    ShowPlayerDialog(playerid,DIALOG_USED,DIALOG_STYLE_LIST,caption,""COL_WHITE"Borrar Objeto\nEditar Objecto","Aceptar","Salir");
                }
                else
                {
                    format(caption,sizeof(caption),""COL_YELLOW"Slot ID %d "COL_LIGHTGREEN"(Disponible)",listitem);
                    ShowPlayerDialog(playerid,DIALOG_NOTUSED,DIALOG_STYLE_LIST,caption,""COL_WHITE"Crear objecto","Aceptar","Salir");
                }
            }
        }
		case DIALOG_NOTUSED:
		{
			new string[128];
			if(!response)
         	{
                usingslot[playerid] = 999;
                return 1;
			}
			else if(response)
			{
				format(string,sizeof(string),""COL_YELLOW"Muebles:"COL_WHITE" Estás en proceso de colocar un objeto en el espacio "COL_LIGHTGREEN"%d!",usingslot[playerid]);
				SendClientMessage(playerid,-1,string);
				SendClientMessage(playerid,-1,"Selecciona de la lista qué tipo de objeto deseas colocar.");
				ShowPlayerDialog(playerid,DIALOG_CHOOSETYPE,DIALOG_STYLE_LIST,""COL_YELLOW"Creando Objeto",""COL_WHITE"Mesas\nSilas\nCamas\nSillones\nDecoraciones\nAccesorios","Aceptar","Salir");
			}
		}
		case DIALOG_USED:
		{
			new string[128];
			if(!response)
			{
			    usingslot[playerid] = 999;
                return 1;
			}
			else if(response)
			{
				switch(listitem)
				{
				    case 0:
				    {
			    		DestroyDynamicObject(FurnitureInfo[playerid][Slot][usingslot[playerid]]);
                		ObjectInfo[FurnitureInfo[playerid][Slot][usingslot[playerid]]][id] = 0;
               		 	ObjectInfo[FurnitureInfo[playerid][Slot][usingslot[playerid]]][modelid] = 0;
                		ObjectInfo[FurnitureInfo[playerid][Slot][usingslot[playerid]]][x] = 0.0;
                		ObjectInfo[FurnitureInfo[playerid][Slot][usingslot[playerid]]][y] = 0.0;
                		ObjectInfo[FurnitureInfo[playerid][Slot][usingslot[playerid]]][z] = 0.0;
               		    ObjectInfo[FurnitureInfo[playerid][Slot][usingslot[playerid]]][rx] = 0.0;
                		ObjectInfo[FurnitureInfo[playerid][Slot][usingslot[playerid]]][ry] = 0.0;
               			ObjectInfo[FurnitureInfo[playerid][Slot][usingslot[playerid]]][rz] = 0.0;
               		    ObjectInfo[FurnitureInfo[playerid][Slot][usingslot[playerid]]][worldid] = 0;
                		ObjectInfo[FurnitureInfo[playerid][Slot][usingslot[playerid]]][interiorid] = 0;
                		new query[256];
	                    format(query, sizeof(query),"DELETE FROM objects WHERE id = %d",FurnitureInfo[playerid][Slot][usingslot[playerid]]);
						db_query(dbhandle, query);
						FurnitureInfo[playerid][Slot][usingslot[playerid]] = 0;
						format(string,sizeof(string),""COL_YELLOW"Tus muebles:"COL_WHITE" Eliminaste un objeto del espacio "COL_LIGHTGREEN"%d"COL_WHITE"!",usingslot[playerid]);
				        SendClientMessage(playerid,-1,string);
						usingslot[playerid] = 999;
				    }
					case 1:
					{
                        EditDynamicObject(playerid,FurnitureInfo[playerid][Slot][usingslot[playerid]]);
                        format(string,sizeof(string),""COL_YELLOW"Tus muebles:"COL_WHITE" Estás editando un objeto del espacio "COL_LIGHTGREEN"%d"COL_WHITE"!",usingslot[playerid]);
                        SendClientMessage(playerid,-1,string);
                        editingobject[playerid] = FurnitureInfo[playerid][Slot][usingslot[playerid]];
						usingslot[playerid] = 999;
					}
				}
			}
		}
		case DIALOG_CHOOSETYPE:
		{
			if(!response)
			{
				usingslot[playerid] = 999;
				return 1;
			}
			else if(response)
			{
				new string[1024];
				switch(listitem)
				{
					case 0:
					{
       					for(new i; i < sizeof(Tables); i++)
          		        {
                        	format(string, sizeof(string), "%s%s\n", string,Tables[i][tablename]);
                            ShowPlayerDialog(playerid, DIALOG_TABLE, DIALOG_STYLE_LIST,""COL_YELLOW"Modelos de Mesas..",string, "Aceptar", "Cancelar");
						}
					}
					case 1:
					{
       					for(new i; i < sizeof(Chairs); i++)
          		        {
                        	format(string, sizeof(string), "%s%s\n", string,Chairs[i][chairname]);
                            ShowPlayerDialog(playerid, DIALOG_CHAIR, DIALOG_STYLE_LIST,""COL_YELLOW"Modelos de Sillas..",string, "Aceptar", "Cancelar");
						}
					}
					case 2:
					{
       					for(new i; i < sizeof(Beds); i++)
          		        {
                        	format(string, sizeof(string), "%s%s\n", string,Beds[i][bedname]);
                            ShowPlayerDialog(playerid, DIALOG_BEDS, DIALOG_STYLE_LIST,""COL_YELLOW"Modelos de Camas..",string, "Aceptar", "Cancelar");
						}
					}
					case 3:
					{
       					for(new i; i < sizeof(Sofas); i++)
          		        {
                        	format(string, sizeof(string), "%s%s\n", string,Sofas[i][sofaname]);
                            ShowPlayerDialog(playerid, DIALOG_SOFAS, DIALOG_STYLE_LIST,""COL_YELLOW"Modelo de Sillones..",string, "Aceptar", "Cancelar");
						}
					}
					case 4:
					{
       					for(new i; i < sizeof(Decorations); i++)
          		        {
                        	format(string, sizeof(string), "%s%s\n", string,Decorations[i][decname]);
                            ShowPlayerDialog(playerid, DIALOG_DECORATIONS, DIALOG_STYLE_LIST,""COL_YELLOW"Modelo de Decoraciones",string, "Aceptar", "Cancelar");
						}
					}
					case 5:
					{
       					for(new i; i < sizeof(Appliances); i++)
          		        {
                        	format(string, sizeof(string), "%s%s\n", string,Appliances[i][appname]);
                            ShowPlayerDialog(playerid, DIALOG_APPLIANCES, DIALOG_STYLE_LIST,""COL_YELLOW"Modelo de Accesorios..",string, "Aceptar", "Cancelar");
						}
					}
				}
			}
		}
		case DIALOG_TABLE:
		{
			new string[128];
			new Float:fx,Float:fy,Float:fz;
			if(!response)
			{
				usingslot[playerid] = 999;
				return 1;
			}
			else if(response)
			{
				GetPlayerPos(playerid,fx,fy,fz);
                preview[playerid] = CreateDynamicObject(Tables[listitem][tid],fx,fy+2,fz,0,0,0,0,-1,-1,15);
				objectmodel[playerid] = Tables[listitem][tid];
				objectprice[playerid] = Tables[listitem][tableprice];
			    format(string,sizeof(string),""COL_WHITE"¿Estás seguro de que quieres comprar un "COL_YELLOW"%s"COL_WHITE" por"COL_YELLOW" $%d?",Tables[listitem][tablename],Tables[listitem][tableprice]);
				ShowPlayerDialog(playerid,DIALOG_BUY,DIALOG_STYLE_MSGBOX,""COL_YELLOW"Comprando Mueble...",string,"Si","No");
			}
		}
		case DIALOG_CHAIR:
		{
			new string[128];
			new Float:fx,Float:fy,Float:fz;
			if(!response)
			{
				usingslot[playerid] = 999;
				return 1;
			}
			else if(response)
			{
				GetPlayerPos(playerid,fx,fy,fz);
			    preview[playerid] = CreateDynamicObject(Tables[listitem][tid],fx,fy+2,fz,0,0,0,0,-1,-1,15);
				objectmodel[playerid] = Chairs[listitem][cid];
				objectprice[playerid] = Chairs[listitem][chairprice];
			    format(string,sizeof(string),""COL_WHITE"¿Estás seguro de que quieres comprar un "COL_YELLOW"%s"COL_WHITE" por"COL_YELLOW" $%d?",Chairs[listitem][chairname],Chairs[listitem][chairprice]);
				ShowPlayerDialog(playerid,DIALOG_BUY,DIALOG_STYLE_MSGBOX,""COL_YELLOW"Comprando Mueble...",string,"Si","No");
			}
		}
		case DIALOG_BEDS:
		{
			new string[128];
			new Float:fx,Float:fy,Float:fz;
			if(!response)
			{
				usingslot[playerid] = 999;
				return 1;
			}
			else if(response)
			{
				GetPlayerPos(playerid,fx,fy,fz);
                preview[playerid] = CreateDynamicObject(Beds[listitem][bid],fx,fy+2,fz,0,0,0,0,-1,-1,15);
				objectmodel[playerid] = Beds[listitem][bid];
				objectprice[playerid] = Beds[listitem][bedprice];
			    format(string,sizeof(string),""COL_WHITE"¿Estás seguro de que quieres comprar un "COL_YELLOW"%s"COL_WHITE" por"COL_YELLOW" $%d?",Beds[listitem][bedname],Beds[listitem][bedprice]);
				ShowPlayerDialog(playerid,DIALOG_BUY,DIALOG_STYLE_MSGBOX,""COL_YELLOW"Comprando Mueble...",string,"Si","No");
			}
		}
		case DIALOG_SOFAS:
		{
			new string[128];
			new Float:fx,Float:fy,Float:fz;
			if(!response)
			{
				usingslot[playerid] = 999;
				return 1;
			}
			else if(response)
			{
				GetPlayerPos(playerid,fx,fy,fz);
                preview[playerid] = CreateDynamicObject(Sofas[listitem][sid],fx,fy+2,fz,0,0,0,0,-1,-1,15);
				objectmodel[playerid] = Sofas[listitem][sid];
				objectprice[playerid] = Sofas[listitem][sofaprice];
			    format(string,sizeof(string),""COL_WHITE"¿Estás seguro de que quieres comprar un "COL_YELLOW"%s"COL_WHITE" por"COL_YELLOW" $%d?",Sofas[listitem][sofaname],Sofas[listitem][sofaprice]);
				ShowPlayerDialog(playerid,DIALOG_BUY,DIALOG_STYLE_MSGBOX,""COL_YELLOW"Comprando Mueble...",string,"Si","No");
			}
		}
	    case DIALOG_DECORATIONS:
		{
			new string[128];
			new Float:fx,Float:fy,Float:fz;
			if(!response)
			{
				usingslot[playerid] = 999;
				return 1;
			}
			else if(response)
			{
				GetPlayerPos(playerid,fx,fy,fz);
                preview[playerid] = CreateDynamicObject(Decorations[listitem][did],fx,fy+2,fz,0,0,0,0,-1,-1,15);
				objectmodel[playerid] = Decorations[listitem][did];
				objectprice[playerid] = Decorations[listitem][decprice];
			    format(string,sizeof(string),""COL_WHITE"¿Estás seguro de que quieres comprar un "COL_YELLOW"%s"COL_WHITE" por"COL_YELLOW" $%d?",Decorations[listitem][decname],Decorations[listitem][decprice]);
				ShowPlayerDialog(playerid,DIALOG_BUY,DIALOG_STYLE_MSGBOX,""COL_YELLOW"Comprando Mueble...",string,"Si","No");
			}
		}
        case DIALOG_APPLIANCES:
		{
			new string[128];
			new Float:fx,Float:fy,Float:fz;
			if(!response)
			{
				usingslot[playerid] = 999;
				return 1;
			}
			else if(response)
			{
				GetPlayerPos(playerid,fx,fy,fz);
                preview[playerid] = CreateDynamicObject(Appliances[listitem][appid],fx,fy+2,fz,0,0,0,0,-1,-1,15);
				objectmodel[playerid] = Appliances[listitem][appid];
				objectprice[playerid] = Appliances[listitem][appprice];
			    format(string,sizeof(string),""COL_WHITE"¿Estás seguro de que quieres comprar un "COL_YELLOW"%s"COL_WHITE" por"COL_YELLOW" $%d?",Appliances[listitem][appname],Appliances[listitem][appprice]);
				ShowPlayerDialog(playerid,DIALOG_BUY,DIALOG_STYLE_MSGBOX,""COL_YELLOW"Comprando Mueble...",string,"Si","No");
			}
		}
		case DIALOG_BUY:
		{
		    if(!response)
			{
				usingslot[playerid] = 999;
                DestroyDynamicObject(preview[playerid]);
				preview[playerid] = 0;
				objectmodel[playerid] = 0;
				objectprice[playerid] = 0;
				return 1;
			}
			else if(response)
			{
				if(GetPlayerMoney(playerid) < objectprice[playerid])
				{
					SendClientMessage(playerid,-1,""COL_RED"!No tienes dinero para comprar esto!");
					usingslot[playerid] = 999;
                	DestroyDynamicObject(preview[playerid]);
					preview[playerid] = 0;
					objectmodel[playerid] = 0;
					objectprice[playerid] = 0;
					return 1;
				}
				new Float:oX,Float:oY,Float:oZ;
				new Float:rX,Float:rY,Float:rZ;
				GetDynamicObjectRot(preview[playerid],rX,rY,rZ);
				new wid = GetPlayerVirtualWorld(playerid);
				new pint = GetPlayerInterior(playerid);
				GetDynamicObjectPos(preview[playerid],oX,oY,oZ);
				FurnitureInfo[playerid][Slot][usingslot[playerid]] = preview[playerid];
				ObjectInfo[preview[playerid]][id] = preview[playerid];
				ObjectInfo[preview[playerid]][modelid] = objectmodel[playerid];
				ObjectInfo[preview[playerid]][x] = oX;
				ObjectInfo[preview[playerid]][y] = oY;
				ObjectInfo[preview[playerid]][z] = oZ;
				ObjectInfo[preview[playerid]][rx] = rX;
				ObjectInfo[preview[playerid]][ry] = rY;
				ObjectInfo[preview[playerid]][rz] = rZ;
			    ObjectInfo[preview[playerid]][worldid] = wid;
			    ObjectInfo[preview[playerid]][interiorid] = pint;
			    new query[256];
	            format(query, sizeof(query),"INSERT INTO objects (id,modelid,x,y,z,rx,ry,rz,worldid,interiorid) VALUES (%d,%d,'%f','%f','%f','%f','%f','%f',%d,%d)",preview[playerid],objectmodel[playerid],oX,oY,oZ,rX,rY,rZ,wid,pint);
				db_query(dbhandle, query);
                DestroyDynamicObject(preview[playerid]);
          	    object[preview[playerid]] = CreateDynamicObject(ObjectInfo[preview[playerid]][modelid],ObjectInfo[preview[playerid]][x],ObjectInfo[preview[playerid]][y],ObjectInfo[preview[playerid]][z],ObjectInfo[preview[playerid]][rx],ObjectInfo[preview[playerid]][ry],ObjectInfo[preview[playerid]][rz],ObjectInfo[preview[playerid]][worldid],ObjectInfo[preview[playerid]][interiorid],-1,50.0);
				preview[playerid] = 0;
				objectmodel[playerid] = 0;
				objectprice[playerid] = 0;
			    GivePlayerMoney(playerid, -1000);
                CHARACTER_INFO[playerid][ch_CASH] -= 1000;
				SendClientMessage(playerid,-1,""COL_YELLOW"Muebles:"COL_WHITE" Has comprado un Mueble!");
			}
		}
	}
    return 0;
}
//----------------------------------------------------------------------------//
public f_LoadPlayer(playerid)
{
	new name[MAX_PLAYER_NAME];
	GetPlayerName(playerid,name,sizeof(name));

	new query[256];
	format(query, sizeof(query),"INSERT INTO players (name,slot1,slot2,slot3,slot4,slot5,slot6,slot7,slot8,slot9,slot10) VALUES ('%q',0,0,0,0,0,0,0,0,0,0)",name);
	db_query(dbhandle, query);
	printf("MySQL: Player %s agregó un mueble a la base de datos!",name);

    new countused;
	for(new i = 0; i < 10; i++)
	{
		if(FurnitureInfo[playerid][Slot][i] != 0) countused++;
	}
	printf("MySQL: Player %s loaded from furniture database. Objects used: %d!",name,countused);
	return 1;
}
stock f_SavePlayer(playerid)
{
		new query[256];
	    format(query, sizeof(query),"UPDATE players SET name = '%q', slot1 = %d, slot2 = %d, slot3 = %d,slot4 = %d,slot5 = %d,slot6 = %d,slot7 = %d,slot8 = %d,slot9 = %d,slot10 = %d WHERE id = %d",
		FurnitureInfo[playerid][Name],
	    FurnitureInfo[playerid][Slot][0],
	    FurnitureInfo[playerid][Slot][1],
	    FurnitureInfo[playerid][Slot][2],
	    FurnitureInfo[playerid][Slot][3],
	    FurnitureInfo[playerid][Slot][4],
	    FurnitureInfo[playerid][Slot][5],
	    FurnitureInfo[playerid][Slot][6],
	    FurnitureInfo[playerid][Slot][7],
	    FurnitureInfo[playerid][Slot][8],
	    FurnitureInfo[playerid][Slot][9],
	    FurnitureInfo[playerid][id]);
	    db_query(dbhandle, query);

        new query2[256];
	    format(query2, sizeof(query2),"UPDATE players SET slot11 = %d,slot12 = %d,slot13 = %d,slot14 = %d,slot15 = %d,slot16 = %d,slot17 = %d,slot18 = %d,slot19 = %d,slot20 = %d WHERE id = %d",
	    FurnitureInfo[playerid][Slot][10],
	    FurnitureInfo[playerid][Slot][11],
	    FurnitureInfo[playerid][Slot][12],
	    FurnitureInfo[playerid][Slot][13],
	    FurnitureInfo[playerid][Slot][14],
	    FurnitureInfo[playerid][Slot][15],
	    FurnitureInfo[playerid][Slot][16],
	    FurnitureInfo[playerid][Slot][17],
	    FurnitureInfo[playerid][Slot][18],
	    FurnitureInfo[playerid][Slot][19],
	    FurnitureInfo[playerid][id]);
	    db_query(dbhandle, query2);
	    
        new query3[256];
	    format(query3, sizeof(query3),"UPDATE players SET slot21 = %d,slot22 = %d,slot23 = %d,slot24 = %d,slot25 = %d,slot26 = %d,slot27 = %d,slot28 = %d,slot29 = %d,slot30 = %d WHERE id = %d ",
	    FurnitureInfo[playerid][Slot][20],
	    FurnitureInfo[playerid][Slot][21],
	    FurnitureInfo[playerid][Slot][22],
	    FurnitureInfo[playerid][Slot][23],
	    FurnitureInfo[playerid][Slot][24],
	    FurnitureInfo[playerid][Slot][25],
	    FurnitureInfo[playerid][Slot][26],
	    FurnitureInfo[playerid][Slot][27],
	    FurnitureInfo[playerid][Slot][28],
	    FurnitureInfo[playerid][Slot][29],
	    FurnitureInfo[playerid][id]);
	    db_query(dbhandle, query3);
	    return 1;
}
public f_ObjectsLoad()
{
	new DBResult:Result, DB_Query[90], playerid;
	format(DB_Query, sizeof(DB_Query), "SELECT * FROM objects WHERE id = %d;", ObjectInfo[playerid][id]);
	Result = db_query(dbhandle, DB_Query);

    for(new i; i < db_num_rows(Result); i++ )
	{
	    ObjectInfo[i][id] = db_get_field_assoc_int(Result, "id");
	    ObjectInfo[i][modelid] = db_get_field_assoc_int(Result, "modelid");
		ObjectInfo[i][x] = db_get_field_assoc_int(Result, "x");
		ObjectInfo[i][y] = db_get_field_assoc_int(Result, "y");
		ObjectInfo[i][z] = db_get_field_assoc_int(Result, "z");
		ObjectInfo[i][rx] = db_get_field_assoc_int(Result, "rx");
		ObjectInfo[i][ry] = db_get_field_assoc_int(Result, "ry");
		ObjectInfo[i][rz] = db_get_field_assoc_int(Result, "rz");
		ObjectInfo[i][worldid] = db_get_field_assoc_int(Result, "worldid");
		ObjectInfo[i][interiorid] = db_get_field_assoc_int(Result, "interiorid");
		object[i] = CreateDynamicObject(ObjectInfo[i][modelid],ObjectInfo[i][x],ObjectInfo[i][y],ObjectInfo[i][z],ObjectInfo[i][rx],ObjectInfo[i][ry],ObjectInfo[i][rz],ObjectInfo[i][worldid],ObjectInfo[i][interiorid],-1,50);
	}
	return 1;
}
stock f_ObjectSave(aid)
{
	new DB_Query[90];
    format(DB_Query, sizeof(DB_Query),"UPDATE objects SET x = '%f',y = '%f',z = '%f',rx = '%f',ry = '%f',rz = '%f' WHERE id = %d",
		ObjectInfo[aid][x],
		ObjectInfo[aid][y],
		ObjectInfo[aid][z],
		ObjectInfo[aid][rx],
		ObjectInfo[aid][ry],
		ObjectInfo[aid][rz],
		aid);
	db_query(dbhandle, DB_Query);
	return 1;
}
// End of script
Código en DOF2. Funciona pero al reiniciar el server se borran

HTML Code:
#define HouseFurniture 20
#define TeleportMenu 12
#define BlankTeleport 53
#define INTERIORMENU 1337

#define MAX_FURNITURE 60

//furniture catalog
new furnmenu = mS_INVALID_LISTID;
new walls = mS_INVALID_LISTID;
new doors = mS_INVALID_LISTID;
new chairs = mS_INVALID_LISTID;
new tables = mS_INVALID_LISTID;
new fitness = mS_INVALID_LISTID;
new lights = mS_INVALID_LISTID;
new eletronic = mS_INVALID_LISTID;
new bathroom = mS_INVALID_LISTID;
new kitchen = mS_INVALID_LISTID;
new beds = mS_INVALID_LISTID;

#define MAX_PROPERTIES	2000
new PlayerEditSlot[MAX_PLAYERS];

new FurnObject[MAX_PLAYERS];
new FurnID[MAX_PLAYERS];
new HouseObject[MAX_PROPERTIES][MAX_FURNITURE];

//Furniture
//Acá van los enums:

	hInt,
	hVw,
	Float:HouseEnterPos[3],
	Float:HouseIntPos[3],
	ObjectID[60],
	Float:ObjectPosX[60],
	Float:ObjectPosZ[60],
	Float:ObjectPosY[60],
	Float:ObjectPosRX[60],
	Float:ObjectPosRY[60],
	Float:ObjectPosRZ[60],
	ObjectVW[60],
	ObjectInt[60],
	
	property_PRICE_BASE
};
new PROPERTY_INFO[MAX_PROPERTIES][Property_Info_Enum];

public OnPlayerModelSelection(playerid, response, listid, modelid)
{
	/*if(listid == furnlist)
	{
		if(response)
		{
			SendClientMessage(playerid, 0xFF0000FF, "Furniture spawned");
			new Float:pos[3];
			GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
			FurnObject[playerid] = CreatePlayerObject(playerid, modelid, pos[0], pos[1], pos[2], 0, 0, 0, 0.0);
			SetPVarInt(playerid, "EditorMode", 1);
			FurnID[playerid] = modelid;
			EditPlayerObject(playerid, FurnObject[playerid]);
		}
		else SendClientMessage(playerid, 0xFF0000FF, "Canceled furniture selection");
		return 1;
	}*/
	if(listid == furnmenu)
	{
        if(response)
		{
		    if(modelid == 1491)
		    {
		        ShowModelSelectionMenu(playerid, doors, "Catálogo de Muebles - Puertas");
		    }
		    if(modelid == 19355)
		    {
		        ShowModelSelectionMenu(playerid, walls, "Catálogo de Muebles - Murallas");
		    }
		    if(modelid == 1704)
		    {
		        ShowModelSelectionMenu(playerid, chairs, "Catálogo de Muebles - Sillas");
		    }
		    if(modelid == 2566)
		    {
		        ShowModelSelectionMenu(playerid, beds, "Catálogo de Muebles - Camas");
		    }
		    if(modelid == 2311)
		    {
		        ShowModelSelectionMenu(playerid, tables, "Catálogo de Muebles - Mesas");
		    }
		    if(modelid == 2069)
		    {
		        ShowModelSelectionMenu(playerid, lights, "Catálogo de Muebles - Luces");
		    }
		    if(modelid == 1985)
		    {
		        ShowModelSelectionMenu(playerid, fitness, "Catálogo de Muebles - Sport");
		    }
		    if(modelid == 1792)
		    {
		        ShowModelSelectionMenu(playerid, eletronic, "Catálogo de Muebles - Electrónica");
		    }
		    if(modelid == 2867)
		    {
		        ShowModelSelectionMenu(playerid, kitchen, "Catálogo de Muebles - Cocina");
		    }
		    if(modelid == 2526)
		    {
		        ShowModelSelectionMenu(playerid, bathroom, "Catálogo de Muebles - Baño");
		    }
		}
	}
	if(listid == doors)
	{
		if(response)
		{
			SendClientMessage(playerid, 0xFF0000FF, "Mueble Creado.");
			new Float:pos[3];
			GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
			FurnObject[playerid] = CreatePlayerObject(playerid, modelid, pos[0]+4, pos[1], pos[2], 0, 0, 0, 0.0);
			SetPVarInt(playerid, "EditorMode", 1);
			FurnID[playerid] = modelid;
			EditPlayerObject(playerid, FurnObject[playerid]);
		}
	}
	if(listid == walls)
	{
		if(response)
		{
			SendClientMessage(playerid, 0xFF0000FF, "Mueble Creado");
			new Float:pos[3];
			GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
			FurnObject[playerid] = CreatePlayerObject(playerid, modelid, pos[0]+4, pos[1], pos[2], 0, 0, 0, 0.0);
			SetPVarInt(playerid, "EditorMode", 1);
			FurnID[playerid] = modelid;
			EditPlayerObject(playerid, FurnObject[playerid]);
		}
	}
	if(listid == chairs)
	{
		if(response)
		{
			SendClientMessage(playerid, 0xFF0000FF, "Mueble Creado");
			new Float:pos[3];
			GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
			FurnObject[playerid] = CreatePlayerObject(playerid, modelid, pos[0]+4, pos[1], pos[2], 0, 0, 0, 0.0);
			SetPVarInt(playerid, "EditorMode", 1);
			FurnID[playerid] = modelid;
			EditPlayerObject(playerid, FurnObject[playerid]);
		}
	}
	if(listid == beds)
	{
		if(response)
		{
			SendClientMessage(playerid, 0xFF0000FF, "Mueble Creado");
			new Float:pos[3];
			GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
			FurnObject[playerid] = CreatePlayerObject(playerid, modelid, pos[0]+4, pos[1], pos[2], 0, 0, 0, 0.0);
			SetPVarInt(playerid, "EditorMode", 1);
			FurnID[playerid] = modelid;
			EditPlayerObject(playerid, FurnObject[playerid]);
		}
	}
	if(listid == tables)
	{
		if(response)
		{
			SendClientMessage(playerid, 0xFF0000FF, "Mueble Creado");
			new Float:pos[3];
			GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
			FurnObject[playerid] = CreatePlayerObject(playerid, modelid, pos[0]+4, pos[1], pos[2], 0, 0, 0, 0.0);
			SetPVarInt(playerid, "EditorMode", 1);
			FurnID[playerid] = modelid;
			EditPlayerObject(playerid, FurnObject[playerid]);
		}
	}
	if(listid == lights)
	{
		if(response)
		{
			SendClientMessage(playerid, 0xFF0000FF, "Mueble Creado");
			new Float:pos[3];
			GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
			FurnObject[playerid] = CreatePlayerObject(playerid, modelid, pos[0]+4, pos[1], pos[2], 0, 0, 0, 0.0);
			SetPVarInt(playerid, "EditorMode", 1);
			FurnID[playerid] = modelid;
			EditPlayerObject(playerid, FurnObject[playerid]);
		}
	}
	if(listid == fitness)
	{
		if(response)
		{
			SendClientMessage(playerid, 0xFF0000FF, "Mueble Creado");
			new Float:pos[3];
			GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
			FurnObject[playerid] = CreatePlayerObject(playerid, modelid, pos[0]+4, pos[1], pos[2], 0, 0, 0, 0.0);
			SetPVarInt(playerid, "EditorMode", 1);
			FurnID[playerid] = modelid;
			EditPlayerObject(playerid, FurnObject[playerid]);
		}
	}
	if(listid == eletronic)
	{
		if(response)
		{
			SendClientMessage(playerid, 0xFF0000FF, "Mueble Creado");
			new Float:pos[3];
			GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
			FurnObject[playerid] = CreatePlayerObject(playerid, modelid, pos[0]+4, pos[1], pos[2], 0, 0, 0, 0.0);
			SetPVarInt(playerid, "EditorMode", 1);
			FurnID[playerid] = modelid;
			EditPlayerObject(playerid, FurnObject[playerid]);
		}
	}
	if(listid == kitchen)
	{
		if(response)
		{
			SendClientMessage(playerid, 0xFF0000FF, "Mueble Creado");
			new Float:pos[3];
			GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
			FurnObject[playerid] = CreatePlayerObject(playerid, modelid, pos[0]+4, pos[1], pos[2], 0, 0, 0, 0.0);
			SetPVarInt(playerid, "EditorMode", 1);
			FurnID[playerid] = modelid;
			EditPlayerObject(playerid, FurnObject[playerid]);
		}
	}
	if(listid == bathroom)
	{
		if(response)
		{
			SendClientMessage(playerid, 0xFF0000FF, "Mueble Creado");
			new Float:pos[3];
			GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
			FurnObject[playerid] = CreatePlayerObject(playerid, modelid, pos[0]+4, pos[1], pos[2], 0, 0, 0, 0.0);
			SetPVarInt(playerid, "EditorMode", 1);
			FurnID[playerid] = modelid;
			EditPlayerObject(playerid, FurnObject[playerid]);
		}
	}
	return 1;
}

case DIALOG_HouseFurniture:
		{
		    if(response)
			{
				switch(listitem)
				{
					case 0: ShowDialog(playerid, DIALOG_AGREGAR_23);
	                case 1: ShowDialog(playerid, DIALOG_QUITAR_27);
					case 2: ShowDialog(playerid, DIALOG_REMOVEALL);
				}
			}
			return 1;
		}
		case DIALOG_REMOVEALL:
		{
		    for(new h = 0; h < MAX_FURNITURE;h++)
		    {
    		    new ModelFile[124];
    		    new String[124];
    		    format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
    		    format(String,sizeof(String),"ObjectID%i",h);
       			PROPERTY_INFO[playerid][ObjectID][h] = 0;
		        DOF2_SetInt(ModelFile,String,0);
		        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][h]);
		     }
		}
		case DIALOG_AGREGAR_23:
		{
		    if(response)
			{
				switch(listitem)
				{
			        case 0:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 1:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 2:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 3:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 4:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 5:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 6:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 7:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 8:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 9:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 10:
		  	        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 11:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 12:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 13:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 14:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 15: ShowDialog(playerid, DIALOG_AGREGAR_24);
		        }
            }
            return 1;
        }
  		case DIALOG_AGREGAR_24:
		{
		    if(response)
			{
				switch(listitem)
				{
			        case 0:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 1:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 2:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 3:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 4:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 5:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 6:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 7:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 8:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 9:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 10:
		  	        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 11:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 12:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 13:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 14:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 15: ShowDialog(playerid, DIALOG_AGREGAR_25);
		        }
            }
            else ShowDialog(playerid, DIALOG_AGREGAR_24);
            return 1;
        }
  		case DIALOG_AGREGAR_25:
		{
		    if(response)
			{
				switch(listitem)
				{
			        case 0:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 1:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 2:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 3:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 4:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 5:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 6:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 7:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 8:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 9:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 10:
		  	        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 11:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 12:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 13:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 14:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 15: ShowDialog(playerid, DIALOG_AGREGAR_26);
		        }
            }
            else ShowDialog(playerid, DIALOG_AGREGAR_25);
            return 1;
        }
  		case DIALOG_AGREGAR_26:
		{
		    if(response)
			{
				switch(listitem)
				{
			        case 0:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 1:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 2:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 3:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 4:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 5:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 6:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 7:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 8:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 9:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 10:
		  	        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 11:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 12:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 13:
			        {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
                    case 14:
                    {
		                PlayerEditSlot[playerid] = listitem;
			            ShowModelSelectionMenu(playerid, furnmenu, "Catálogo - Apreta una imagen");
                    }
		        }
            }
            else ShowDialog(playerid, DIALOG_AGREGAR_25);
            return 1;
        }
        case DIALOG_QUITAR_27:
		{
		    if(response)
			{
				switch(listitem)
				{
			        case 0:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 1:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 2:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 3:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 4:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 5:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 6:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 7:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 8:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 9:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 10:
		  	        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 11:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 12:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 13:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 14:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 15: ShowDialog(playerid, DIALOG_QUITAR_28);
		        }
            }
            return 1;
        }
        case DIALOG_QUITAR_28:
		{
		    if(response)
			{
				switch(listitem)
				{
			        case 0:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 1:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 2:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 3:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 4:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 5:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 6:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 7:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 8:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 9:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 10:
		  	        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 11:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 12:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 13:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 14:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 15: ShowDialog(playerid, DIALOG_QUITAR_29);
		        }
            }
            else ShowDialog(playerid, DIALOG_QUITAR_27);
            return 1;
        }
        case DIALOG_QUITAR_29:
		{
		    if(response)
			{
				switch(listitem)
				{
			        case 0:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 1:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 2:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 3:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 4:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 5:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 6:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 7:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 8:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 9:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 10:
		  	        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 11:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 12:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 13:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 14:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 15: ShowDialog(playerid, DIALOG_QUITAR_30);
		        }
            }
            else ShowDialog(playerid, DIALOG_QUITAR_28);
            return 1;
        }
        case DIALOG_QUITAR_30:
		{
		    if(response)
			{
				switch(listitem)
				{
			        case 0:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 1:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 2:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 3:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 4:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 5:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 6:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 7:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 8:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 9:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 10:
		  	        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 11:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 12:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 13:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
                    case 14:
			        {
				        new ModelFile[124];
    			        new String[124];
	    		        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	    		        format(String,sizeof(String),"ObjectID%i",listitem);
    			        PROPERTY_INFO[playerid][ObjectID][listitem] = 0;
			            DOF2_SetInt(ModelFile,String,0);
				        DestroyDynamicObject(HouseObject[PROPERTY_INFO[playerid][property_ID]][listitem]);
                    }
		        }
            }
            else ShowDialog(playerid, DIALOG_QUITAR_29);
            return 1;
        }

stock LoadHouses()
{
	for(new i = 0; i < MAX_PROPERTIES;i++)
	{
	    new house[256];
		format(house, sizeof(house), "Houses/house%i.ini",i);
		if(DOF2_FileExists(house))
		{
		    //strings
			//Int's
			PROPERTY_INFO[i][hInt] = DOF2_GetInt(house, "Int");
			PROPERTY_INFO[i][hVw] = DOF2_GetInt(house, "VW");
			PROPERTY_INFO[i][property_ID_INTERIOR] = DOF2_GetInt(house, "Type");

            for(new h = 0; h < MAX_FURNITURE;h++)
			{
			    new ModelFile[124];
				new XFile[124];
		 		new YFile[124];
		 		new ZFile[124];
			    new String[124];
			    format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",i);
     			format(XFile,sizeof(XFile),"Houses/furnXhouse%i.ini",i);
	        	format(YFile,sizeof(YFile),"Houses/furnYhouse%i.ini",i);
	        	format(ZFile,sizeof(ZFile),"Houses/furnZhouse%i.ini",i);
				//Load part
			    format(String,sizeof(String),"ObjectID%i",h);
	        	PROPERTY_INFO[i][ObjectID][h] = DOF2_GetInt(ModelFile,String);
	        	format(String,sizeof(String),"ObjectInt%i",h);
	        	PROPERTY_INFO[i][ObjectInt][h] = DOF2_GetInt(ModelFile,String);
	        	format(String,sizeof(String),"ObjectVw%i",h);
	        	PROPERTY_INFO[i][ObjectVW][h] = DOF2_GetInt(ModelFile,String);
	        	format(String,sizeof(String),"ObjectX%i",h);
	        	PROPERTY_INFO[i][ObjectPosX][h] = DOF2_GetFloat(XFile,String);
	        	format(String,sizeof(String),"ObjectRX%i",h);
	        	PROPERTY_INFO[i][ObjectPosRX][h] = DOF2_GetFloat(XFile,String);
	        	format(String,sizeof(String),"ObjectY%i",h);
	        	PROPERTY_INFO[i][ObjectPosY][h] = DOF2_GetFloat(YFile,String);
	        	format(String,sizeof(String),"ObjectRY%i",h);
	        	PROPERTY_INFO[i][ObjectPosRY][h] = DOF2_GetFloat(YFile,String);
       		 	format(String,sizeof(String),"ObjectZ%i",h);
	        	PROPERTY_INFO[i][ObjectPosZ][h] = DOF2_GetFloat(ZFile,String);
	        	format(String,sizeof(String),"ObjectRZ%i",h);
	        	PROPERTY_INFO[i][ObjectPosRZ][h] = DOF2_GetFloat(ZFile,String);
	        	if(PROPERTY_INFO[i][ObjectID][h] > 0)
				{
				    HouseObject[i][h] = CreateDynamicObject(PROPERTY_INFO[i][ObjectID][h], PROPERTY_INFO[i][ObjectPosX][h], PROPERTY_INFO[i][ObjectPosY][h], PROPERTY_INFO[i][ObjectPosZ][h], PROPERTY_INFO[i][ObjectPosRX][h], PROPERTY_INFO[i][ObjectPosRY][h], PROPERTY_INFO[i][ObjectPosRZ][h], PROPERTY_INFO[i][ObjectVW][h], PROPERTY_INFO[i][ObjectInt][h], -1, 200.0);
				}
			}
		}
	}
	printf("Houses created");
	return 1;
}

public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ)
{
	if(playerobject)
	{
        if(objectid == PLAYER_TEMP[playerid][pt_PIVOT_OBJECT])
		{
			switch(response)
			{
    if(response != 1) return 1;
	switch(GetPVarInt(playerid, "EditorMode"))
	{
	    case 1: // Jueix's House system plant furniture
	    {
	        SendClientMessage(playerid, COLOR_YELLOW, "Gracias por comprar tu mueble en Inmobiliarias Chonak.");
	        SendClientMessage(playerid, COLOR_ORANGE, "(( Recuerda el slot de tu mueble, y puedes borrarlo en /muebles ))");
	        new ModelFile[124];
			new XFile[124];
		 	new YFile[124];
		 	new ZFile[124];
		 	new String[124];
	        format(ModelFile,sizeof(ModelFile),"Houses/furnhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	        format(XFile,sizeof(XFile),"Houses/furnXhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	        format(YFile,sizeof(YFile),"Houses/furnYhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	        format(ZFile,sizeof(ZFile),"Houses/furnZhouse%i.ini",PROPERTY_INFO[playerid][property_ID]);
	        format(String,sizeof(String),"ObjectID%i",PlayerEditSlot[playerid]);
	        DOF2_SetInt(ModelFile,String,FurnID[playerid]);
	        format(String,sizeof(String),"ObjectInt%i",PlayerEditSlot[playerid]);
	        DOF2_SetInt(ModelFile,String,GetPlayerInterior(playerid));
	        format(String,sizeof(String),"ObjectVw%i",PlayerEditSlot[playerid]);
	        DOF2_SetInt(ModelFile,String,GetPlayerVirtualWorld(playerid));
	        format(String,sizeof(String),"ObjectX%i",PlayerEditSlot[playerid]);
	        DOF2_SetFloat(XFile,String,fX);
	        format(String,sizeof(String),"ObjectRX%i",PlayerEditSlot[playerid]);
	        DOF2_SetFloat(XFile,String,fRotX);
	        format(String,sizeof(String),"ObjectY%i",PlayerEditSlot[playerid]);
	        DOF2_SetFloat(YFile,String,fY);
	        format(String,sizeof(String),"ObjectRY%i",PlayerEditSlot[playerid]);
	        DOF2_SetFloat(YFile,String,fRotY);
	        format(String,sizeof(String),"ObjectZ%i",PlayerEditSlot[playerid]);
	        DOF2_SetFloat(ZFile,String,fZ);
	        format(String,sizeof(String),"ObjectRZ%i",PlayerEditSlot[playerid]);
	        DOF2_SetFloat(ZFile,String,fRotZ);
	        HouseObject[PROPERTY_INFO[playerid][property_ID]][PlayerEditSlot[playerid]] = CreateDynamicObject(FurnID[playerid], fX, fY, fZ, fRotX, fRotY, fRotZ, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid), -1, 200.0);
			DOF2_WriteFile();
			DestroyPlayerObject(playerid,FurnObject[playerid]);
			PROPERTY_INFO[PROPERTY_INFO[playerid][property_ID]][ObjectID][PlayerEditSlot[playerid]] = FurnID[playerid];
			DeletePVar(playerid,"EditorMode");
			GivePlayerCash(playerid, -2000);
		}
	}
	return 1;
}

public ongamemodeinit(playerid)
{
        LoadHouses();
	furnmenu = LoadModelSelectionMenu("furnmenu.txt");
	doors = LoadModelSelectionMenu("doors.txt");
	walls = LoadModelSelectionMenu("walls.txt");
	bathroom = LoadModelSelectionMenu("bathroom.txt");
	beds = LoadModelSelectionMenu("beds.txt");
	chairs = LoadModelSelectionMenu("chairs.txt");
	eletronic = LoadModelSelectionMenu("eletronics.txt");
	fitness = LoadModelSelectionMenu("fitness.txt");
	kitchen = LoadModelSelectionMenu("kitchen.txt");
	lights = LoadModelSelectionMenu("lights.txt");
	tables = LoadModelSelectionMenu("tables.txt");
        return 1;
}
Chonak is offline   Reply With Quote
Old 29/03/2020, 09:34 PM   #4
Chonak
Little Clucker
 
Join Date: Jun 2018
Posts: 3
Reputation: 0
Default Re: [Help] System Furniture [Spanish]

Pls... help
Chonak is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Jueixs House System V2 (Furniture System) Updates to happen. jueix Filterscripts 45 13/01/2019 05:59 AM
furniture system Karolukas123 Scripting Help 1 13/12/2016 08:19 AM
Help on creating a furniture on furniture system barbarbar1 Scripting Help 1 09/08/2016 09:07 PM
[FilterScript] Furniture System-Carring the furniture and place it to your house,garden and everywhere chencong Filterscripts 18 13/05/2014 12:09 PM
I need furniture system !! Sercan Scripting Help 1 30/12/2012 03:15 PM


All times are GMT. The time now is 08:30 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.