Help With this script plz !!
#1

I want to make this type of script , I will give rep +1 plz plz help me :
Код:
Dcmd : atm  | If player types this command then A dialog will pop up.It gives option of deposit and withdraw. If the player chooses Deposit and clicks the 1st button (Select) Then this Dialog will Pop up DIALOG_BANK_DEPOSIT and if he selects Withdraw then this dialog will pop up : DIALOG_BANK_WITHDRAW and If He selects any and clicks the 2nd button (Cancel) Then the dialog .... U know what
Reply
#2

OMG Nobody can help !!
Reply
#3

this is the script help section, you are asking for us to make you a script... post it here https://sampforum.blast.hk/showthread.php?tid=187229
Reply
#4

ON TOP OF YOUR SCRIPT:
pawn Код:
#define DIALOG_ATM 5461
Then, this is the command using ZCMD:
pawn Код:
COMMAND:atm(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 2, atmX, atmY, atmZ))
    {
        ShowPlayerDialog(playerid, DIALOG_ATM, DIALOG_STYLE_LIST, "ATM selection list", "1. Deposit money\n2. Withdraw money", "Select", "Cancel");
    }
    return 1;
}
Then, OnDialogResponse callback:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch( dialogid )
    {
        case DIALOG_ATM:
        {
            if(!response) return SendClientMessage(playerid,, COLOR_WHITE, "You have decided to cancel");
            if(response)
            {
                switch(listitem)
                 {
                    case 0: // first item: "deposit money"
                    {
                        // code here
                    }
                    case 1: // second item: "withdraw money"
                    {
                        // code here
                    }
                 }
            }
        }
    }
    return 1;
}
Reply
#5

I Will Help You When Your InGame
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)