customskin wont show dialog.
#1

I'm using mSelection to show my dialog for my skins. I have 0.3.8 server package. I have the folder set correctly for the skin ids. Artwork is enabled, and when players join the server the skins download. The problem is the dialog will not pop up.

Quote:
Код:
new customskins;

public OnGameModeInit()
{
customskins = LoadModelSelectionMenu("data/customskins.txt");
return 1;
}

public OnPlayerModelSelection(playerid, response, listid, modelid)
{
	if(listid == customskins)
	{
	    if(response)
	    {
		    SetPlayerSkin(playerid, modelid);
	    	SendClientMessage(playerid, -1, "Skin Changed");
	    }
	    else SendClientMessage(playerid, -1, "Canceled skin selection");
    	return 1;
	}
	if(listid == skinlist)
	{
	    if(response)
	    {
	    	SetPlayerSkin(playerid, modelid);
	    	SendClientMessage(playerid, -1, "Skin Changed");
	    }
	    else SendClientMessage(playerid, -1, "Canceled skin selection");
    	return 1;
	}
	return 1;
}

CMD:customskin(playerid, params[])
{
    ShowModelSelectionMenu(playerid, customskins, "Custom Skins");
    return 1;
}
Reply


Messages In This Thread
customskin wont show dialog. - by MyUndiesSmell - 11.01.2018, 21:57
Re: customskin wont show dialog. - by MyUndiesSmell - 11.01.2018, 22:01
Re: customskin wont show dialog. - by aoky - 11.01.2018, 22:02
Re: customskin wont show dialog. - by RogueDrifter - 11.01.2018, 22:05
Re: customskin wont show dialog. - by aoky - 11.01.2018, 22:07

Forum Jump:


Users browsing this thread: 2 Guest(s)