25.08.2018, 06:06
Here you can try this, only took me like 20 secs to code this. Youll have to implement it into your script but its a small start for you
Код:
#define DIALOG_CLOTHES 001 CMD:clothes(playerid, params[]) { if(IsPlayerConnected(playerid)) { //Your line to check if a player is logged in or not I.E if(IsPlayerLoggedIn(playerid)) { ShowPlayerDialog(playerid, DIALOG_CLOTHES, DIALOG_STYLE_LIST, "Clothing Menu", "Selection Choice\nModel Choice", "Select", "Back"); return 1; } } return 1; } CMD:cl(playerid, params[]) { if(IsPlayerConnected(playerid)) { cmd_clothes(playerid, params); } return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_CLOTHES) { if(response) // If they click on the Select button this happens { switch(listitem) { case 0: // Selection choice option happens here case 1: // Model choice option happens here } } return 1; } return 0; }