← Scripts y librerías
imshooter/pawn-plus-model-dialog
Model selection dialog built with PawnPlus, featuring enhanced object preview options.
Librería★ 2actualizado feb 2026Sin licenciaPawn
Abrir en GitHubEste repositorio no tiene archivo de licencia. Se puede leer, pero eso por sí solo no da permiso para reutilizarlo.
Probar en el compilador de Pawn →
Añade sus archivos include, con las librerías de las que depende, al compilador de Pawn de tu navegador, listos para incluirlos en un script.
README.md
Installation
#include <pp-model-dialog>
Menu Skins
void:ShowSkinsModelDialog(playerid) {
yield 1;
new
List:list = list_new(),
response[E_MODEL_DIALOG_DATA]
;
for (new i; i <= 311; i++) {
AddModelDialogMenuItem(list, i);
}
await_arr(response) ShowAsyncModelDialogMenu(playerid, list, "SKINS", "SELECT", "CANCEL");
if (response[E_MODEL_DIALOG_RESPONSE] == MODEL_DIALOG_RESPONSE_SELECT) {
SetPlayerSkin(playerid, response[E_MODEL_DIALOG_MODEL_ID]);
}
}
public OnPlayerCommandText(playerid, cmdtext[]) {
if (strequal(cmdtext, "/skins")) {
ShowSkinsModelDialog(playerid);
return 1;
}
return 0;
}
Menu Items
void:ShowItemsModelDialog(playerid) {
yield 1;
new
List:list = list_new(),
response[E_MODEL_DIALOG_DATA]
;
new const
models[] = {2891, 1271, 19054, 19055, 19056, 19057, 19058, 355, 356}
;
new const desc[][] = {
"~w~Clothing Package~n~~y~X~w~1",
"~w~Wooden Box~n~~y~X~w~1",
"~w~Common Box~n~~y~X~w~1",
"~w~Uncommon Box~n~~y~X~w~1",
"~w~Rare Box~n~~y~X~w~1",
"~w~Epic Box~n~~y~X~w~1",
"~w~Legendary Box~n~~y~X~w~1",
"~w~AK47~n~~y~X~w~200",
"~w~M4~n~~y~X~w~200"
};
new const Float:arr[][] = {
{53.0, 53.0, -20.0, 00.0, -45.0, 1.0, 01.0, 0.0},
{53.0, 53.0, -20.0, 00.0, 045.0, 1.0, 00.0, 0.0},
{53.0, 53.0, -20.0, 00.0, 045.0, 1.0, 00.0, 0.0},
{53.0, 53.0, -20.0, 00.0, 045.0, 1.0, 00.0, 0.0},
{53.0, 53.0, -20.0, 00.0, 045.0, 1.0, 00.0, 0.0},
{53.0, 53.0, -20.0, 00.0, 045.0, 1.0, 00.0, 0.0},
{53.0, 53.0, -20.0, 00.0, 045.0, 1.0, 00.0, 0.0},
{53.0, 53.0, 000.0, 35.0, 180.0, 2.0, -5.0, 6.0},
{53.0, 53.0, 000.0, 35.0, 180.0, 2.0, -5.0, 6.0}
};
for (new i, size = sizeof (models); i < size; i++) {
AddModelDialogMenuItem(list, models[i], desc[i],
.sizeX = arr[i][0],
.sizeY = arr[i][1],
.rotationX = arr[i][2],
.rotationY = arr[i][3],
.rotationZ = arr[i][4],
.zoom = arr[i][5],
.offsetX = arr[i][6],
.offsetY = arr[i][7]
);
}
await_arr(response) ShowAsyncModelDialogMenu(playerid, list, "ITEMS", "SELECT", "CANCEL");
// ...
}
public OnPlayerCommandText(playerid, cmdtext[]) {
if (strequal(cmdtext, "/items")) {
ShowItemsModelDialog(playerid);
return 1;
}
return 0;
}
Esta página se genera con lo que GitHub publica sobre el repositorio. samp.directory no aloja el código. Informar de un problema con esta ficha