/clothes
#2

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;
}
Reply


Messages In This Thread
/clothes - by ServerFiles - 25.08.2018, 02:32
Re: /clothes - by Ciandlah - 25.08.2018, 06:06
Re: /clothes - by ServerFiles - 25.08.2018, 06:13
Re: /clothes - by Shinja - 25.08.2018, 15:55

Forum Jump:


Users browsing this thread: 1 Guest(s)