16.08.2018, 00:53
Quote:
Sim, й possнvel.
PHP код:
|
PHP код:
public OnPlayerModelSelectionEx(playerid, response, extraid, modelid)
{
if(extraid==DIALOG_ATTACH_MODEL_SELECTION)
{
if(!response)
{ ShowPlayerDialog(playerid,DIALOG_ATTACH_OBJECT_SELECTION,DIALOG_STYLE_LIST,"Acessуrios: (Selecione para onde irб ficar o objeto)",COL_GREY "Menu de Acessуrios"COL_GREY"Objeto Personalizado","Prуximo","Anterior"); }
if(response)
{
if(GetPVarInt(playerid, "AttachmentUsed") == 1) EditAttachedObject(playerid, modelid);
else
{
SetPVarInt(playerid, "AttachmentModelSel", modelid);
new string[256+1];
new dialog[500];
for(new x;x<sizeof(AttachmentBones);x++)
{
format(string, sizeof(string), "%s\n", AttachmentBones[x]);
strcat(dialog,string);
}
ShowPlayerDialog(playerid, DIALOG_ATTACH_BONE_SELECTION, DIALOG_STYLE_LIST, \
"{FF0000}Modificaзгo dos Acessуrios", dialog, "Selecionar", "Cancelar");
}//else DeletePVar(playerid, "AttachmentIndexSel");
}
}
return 1;
}
PHP код:
new AttachmentObjectsList[] = {
18632,
18633,
18634,
18635,
[...]