CMD:interiores(playerid)
{
if(InfoJugador_[playerid][jStaff] < 4) return 0;
Loop(i, sizeof(Interiores@Casas_)){
new string[800];
format(string, sizeof(string), "Interior: %d | Nombre: %s\n", Interiores@Casas_[i][cInt@Interior], Interiores@Casas_[i][cInt2Nombre],i);
ShowPlayerDialog(playerid, DIALOGO_INTS, DIALOG_STYLE_LIST, "Interiores", string, ">", "");
}
return 1;
}
enum _interior@casas{
cInt2Nombre[29],
Float:cIntPosiciones[4],
Float:cIntPosiciones2[12],
cInt@Interior
}
new Interiores@Casas_[][_interior@casas] =
{
{"Hab. Elegant", {2218.402099, -1076.266723, 1050.484375, 358.2021}, {-1, 1472.6091, 1080.1875, 184.3950, /* >>>>> Posiciуn del Garaje */ 300.3056, 311.2778, 999.1484, 184.1126, 299.9744, 304.9451, 998.8754, 0.9232}, 1},
{"Depto. Celeste", {223.4143, 1273.4320, 1082.140, 358.5784}, {-1, 1472.6091, 1080.1875, 184.3950, /* >>>>> Posiciуn del Garaje */ 300.3056, 311.2778, 999.1484, 184.1126, 299.9744, 304.9451, 998.8754, 0.9232}, 1},
{"Interior Humilde", {326.3081, 1456.2114, 1084.5959, 94.1542}, {-1, 1472.6091, 1080.1875, 184.3950, /* >>>>> Posiciуn del Garaje */ 300.3056, 311.2778, 999.1484, 184.1126, 299.9744, 304.9451, 998.8754, 0.9232}, 15},
{"Casa Violet", {275.7402, 1237.7184, 1084.257812, 91.6392}, {-1, 1472.6091, 1080.1875, 184.3950, /* >>>>> Posiciуn del Garaje */ 300.3056, 311.2778, 999.1484, 184.1126, 299.9744, 304.9451, 998.8754, 0.9232}, 9},
{"Mansiуn Lujosa", {250.4457, 995.3734, 1084.726562, 0.3648}, {-1, 1472.6091, 1080.1875, 184.3950, /* >>>>> Posiciуn del Garaje */ 300.3056, 311.2778, 999.1484, 184.1126, 299.9744, 304.9451, 998.8754, 0.9232}, 7},
{"Piso(1)", {2307.4578, -1197.4063, 1049.023437, 350.1416}, {-1, 1472.6091, 1080.1875, 184.3950, /* >>>>> Posiciуn del Garaje */ 300.3056, 311.2778, 999.1484, 184.1126, 299.9744, 304.9451, 998.8754, 0.9232}, 6},
{"Casa M.", {235.558, 1127.5334, 1080.6395, 358.0143}, {-1, 1472.6091, 1080.1875, 184.3950, /* >>>>> Posiciуn del Garaje */ 300.3056, 311.2778, 999.1484, 184.1126, 299.9744, 304.9451, 998.8754, 0.9232}, 5},
{"Casa M(Azul)", {268.5388, 1063.7770, 1084.212280, 358.0143}, {-1, 1472.6091, 1080.1875, 184.3950, /* >>>>> Posiciуn del Garaje */ 300.3056, 311.2778, 999.1484, 184.1126, 299.9744, 304.9451, 998.8754, 0.9232}, 6},
{"Mansiуn(1)", {140.1829, 1396.6548, 1083.859375, 358.0143}, {-1, 1472.6091, 1080.1875, 184.3950, /* >>>>> Posiciуn del Garaje */ 300.3056, 311.2778, 999.1484, 184.1126, 299.9744, 304.9451, 998.8754, 0.9232}, 5},
{"Casa Elegant", {23.908735, 1320.530156, 1084.375000, 358.0143}, {-1, 1472.6091, 1080.1875, 184.3950, /* >>>>> Posiciуn del Garaje */ 300.3056, 311.2778, 999.1484, 184.1126, 299.9744, 304.9451, 998.8754, 0.9232}, 10},
{"Alfombra Roja(P)", {267.5699, 1186.679687, 1080.257812, 358.0143}, {-1, 1472.6091, 1080.1875, 184.3950, /* >>>>> Posiciуn del Garaje */ 300.3056, 311.2778, 999.1484, 184.1126, 299.9744, 304.9451, 998.8754, 0.9232}, 3},
{"Casa Lujosa", {2317.878173, -1026.683715, 1050.217773, 358.0143}, {-1, 1472.6091, 1080.1875, 184.3950, /* >>>>> Posiciуn del Garaje */ 300.3056, 311.2778, 999.1484, 184.1126, 299.9744, 304.9451, 998.8754, 0.9232}, 9},
{"Forma M", {2324.491455, -1149.545410, 1050.710083, 358.0143}, {-1, 1472.6091, 1080.1875, 184.3950, /* >>>>> Posiciуn del Garaje */ 300.3056, 311.2778, 999.1484, 184.1126, 299.9744, 304.9451, 998.8754, 0.9232}, 12},
{"Vinewood(1)", {2365.263916, -1134.603637, 1050.672363, 358.0143}, {-1, 1472.6091, 1080.1875, 184.3950, /* >>>>> Posiciуn del Garaje */ 300.3056, 311.2778, 999.1484, 184.1126, 299.9744, 304.9451, 998.8754, 0.9232}, 8},
{"Vinewood(2)", {2196.836181, -1204.180297, 1049.023437, 358.0143}, {-1, 1472.6091, 1080.1875, 184.3950, /* >>>>> Posiciуn del Garaje */ 300.3056, 311.2778, 999.1484, 184.1126, 299.9744, 304.9451, 998.8754, 0.9232}, 6}
};
CMD:interiores(playerid)
{
if(InfoJugador_[playerid][jStaff] < 4) return 0;
new string[66], stringfinal[66*15];
Loop(i, sizeof(Interiores@Casas_))
{
format(string, sizeof(string), "Interior: %d | Nombre: %s | ID:%d\n", Interiores@Casas_[i][cInt@Interior], Interiores@Casas_[i][cInt2Nombre],i);
strcat(stringfinal, string);
}
ShowPlayerDialog(playerid, DIALOGO_INTS, DIALOG_STYLE_LIST, "Interiores", stringfinal, ">", "");
return 1;
}
|
PHP код:
|
new data[66];
Loop(i, sizeof(Interiores@Casas_))
{
format(string, sizeof(string), "%sInterior: %d | Nombre: %s | ID:%d\n", data, Interiores@Casas_[i][cInt@Interior], Interiores@Casas_[i][cInt2Nombre],i);
}
ShowPlayerDialog(playerid, DIALOGO_INTS, DIALOG_STYLE_LIST, "Interiores", data, ">", "");
|
Код:
new data[66];
Loop(i, sizeof(Interiores@Casas_))
{
format(string, sizeof(string), "%sInterior: %d | Nombre: %s | ID:%d\n", data, Interiores@Casas_[i][cInt@Interior], Interiores@Casas_[i][cInt2Nombre],i);
}
ShowPlayerDialog(playerid, DIALOGO_INTS, DIALOG_STYLE_LIST, "Interiores", data, ">", "");
|