mSelection + regular dialog , possibly?
#2

PHP код:
#define DIALOG_CONFIRM 1337
new WhatModelID[MAX_PLAYERS];
public 
OnPlayerModelSelection(playeridresponselistidmodelid)
{
    if(
listid == skinlisthere)
    {
        if(
response)
        {
            
WhatModelID[playerid] = modelid;
            
ShowPlayerDialog(playeridDIALOG_CONFIRM0"Confirm""Are you sure you want to buy these clothes?""Yes""No");
        }
        else
        {
            
SendClientMessage(playerid, -1"Cancelled");
        }
        return 
1;
    }
    return 
1;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == DIALOG_CONFIRM)
    {
        if(
response)
        {
            
SetPlayerSkin(playeridWhatModelID[playerid]);
            
// rest of your code
        
}
        else 
SendClientMessage(playerid, -1"Cancelled");
    }
    return 
1;

Code improvements can be made.
Reply


Messages In This Thread
mSelection + regular dialog , possibly? - by Camorra - 03.11.2015, 04:44
Re: mSelection + regular dialog , possibly? - by itsCody - 03.11.2015, 05:56
Re: mSelection + regular dialog , possibly? - by Camorra - 03.11.2015, 16:52

Forum Jump:


Users browsing this thread: 2 Guest(s)