10.11.2018, 04:05
PHP код:
CMD:comando(playerid,params[])
{
new string[128];
new dialog[500];
for(new x;x<MAX_OSLOTS;x++)
{
if(PlayerData[playerid][pDonator] <= 0) return SendClientMessage(playerid, -1 "Mensagem que nгo tem permissгo"); //Verifique se й PlayerData mesmo
if(IsPlayerAttachedObjectSlotUsed(playerid, x))
{
format(string, sizeof(string), ""COL_WHITE"Slot:%d :: "COL_GREEN"Used Slot\n", x); }
else format(string, sizeof(string), ""COL_WHITE"Slot:%d\n", x);
strcat(dialog,string);
}
ShowPlayerDialog(playerid, DIALOG_ATTACH_INDEX_SELECTION, DIALOG_STYLE_LIST,"Player Objects/Attachment: (Select Slot)", dialog, "Select", "Close(X)");
return 1;
}