is this possible to make in dialog?
#1

So hello everyone really i need help about this.. I cannot find good carownership btw i found other way for that .. So i make cars private for peoples but too many peoples dont know where to go in forum how to make app etc.. Btw i want to make a dialog (Application) like:

Your name:
Here to type
Which car you want:
Here to type
Which color to be car?:
Here to type
Where you want to be located car?:
Here to type
And last: Okay sir wait admins to check this application then you will get information

This to be saved in /prv/cars.ini
Can anyone help me really i need this.. Thanks
Reply
#2

Ahh, it is possible but you will have to make different dialogs for:
  • Name
  • Car Model
  • Car Color 1
  • Car Color 2
  • Car Location
Now, you must think about car location... I mean, you want players to write: "Vinewood" for example and you`ll create them a vehicle somewhere in Vinewood? Or you want players to insert the exact coordinates?

You can make something like:

pawn Код:
#define CAR_DIALOG 2300 // Dialog ID ... you might want to change it if you already have a 2300 dialog ID.

CMD:requestcar(playerid, params[])
{
      ShowPlayerDialog(playerid, CAR_DIALOG, DIALOG_STYLE_INPUT, "Car request", "Insert your name here:",   "Continue", "Exit");
      return 1;
}
And OnDialogResponse, you`ll have to figure it out ...
Reply
#3

Yea but can you tell me what to add in CAR_DIALOG ? because i want to save applications in /prv/name.ini ?
No no if they dont have House i will add to one parking which is created for that.
Reply
#4

It depends ... what ini writing include you use? dini? Y_ini?
Reply
#5

Quote:
Originally Posted by antonio112
Посмотреть сообщение
It depends ... what ini writing include you use? dini? Y_ini?
im using dini
Reply
#6

BUMP:

I want only to make (APPLICATION) in dialog not to create a car or carownership..

I want when you type /application to open dialog and to ask you

Whats your name?: I will type GBL Then to click Continue and to ask me Which car you want?: Infernus then to ask me You have house?: Yes You have Money: Yes and last to say (Wait administrators to review this aplication and then they will contact you)

And this application to save in /prv/app.ini

So can anyone give me code?
Reply
#7

This isnt really the place to request scripts, however i suggest you to try to make it yourself with these functions:

https://sampwiki.blast.hk/wiki/ShowPlayerDialog
https://sampwiki.blast.hk/wiki/OnDialogResponse
Reply
#8

Here ya go

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/application", cmdtext, true, 10) == 0)
    {
        ShowPlayerDialog(playerid,1234,DIALOG_STYLE_INPUT,"Application: Step 1","What is Your Name?","Continue","Cancel");
        return 1;
    }
    return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1234)
    {
        if(!response) return SendClientMessage(playerid, 0xFFFFFFFF,"You Have Canceled The Application!");
        //Put ur dini here
        ShowPlayerDialog(playerid,1235,DIALOG_STYLE_INPUT,"Application: Step 2","Wich Car do You Want?","Continue","Cancel");
    }
    if(dialogid == 1235)
    {
        if(!response) return SendClientMessage(playerid,0xFFFFFFFF,"You Have Cancelled The Application!");
       //I dont feel like doing the saving part lol im too lazy
        ShowPlayerDialog(playerid,1236,DIALOG_STYLE_MSGBOX,"Application: Step 3","Do You Have A House","Yes", "No");
    }
    if(dialogid == 1236)
    {
        if(!response) return SendClientMessage(playerid, 0xFFFFFFFF, "No House");// DO whatever here if they dont have a house
        //I dun wanna do dini
        ShowPlayerDialog(playerid,1237,DIALOG_STYLE_MSGBOX,"Application: Step 4", "Do You Have Money?", "Yes", "No");
    }
    if(dialogid == 1237)
    {
        if(!response) return SendClientMessage(playerid,0xFFFFFFFF, "No Money"); // Do whatever if they dont have any money
        //No Dini for me
        ShowPlayerDialog(playerid,1238,DIALOG_STYLE_MSGBOX,"Application: Finished", "Thank You For Applying, \nAdministrators Will Review Your Application Shortly.","Okay", "");
    }
    return 1;
}
i suck at dini, get someone else to help you with that
Reply
#9

Quote:
Originally Posted by airsoft
Посмотреть сообщение
Here ya go

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/application", cmdtext, true, 10) == 0)
    {
        ShowPlayerDialog(playerid,1234,DIALOG_STYLE_INPUT,"Application: Step 1","What is Your Name?","Continue","Cancel");
        return 1;
    }
    return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1234)
    {
        if(!response) return SendClientMessage(playerid, 0xFFFFFFFF,"You Have Canceled The Application!");
        //Put ur dini here
        ShowPlayerDialog(playerid,1235,DIALOG_STYLE_INPUT,"Application: Step 2","Wich Car do You Want?","Continue","Cancel");
    }
    if(dialogid == 1235)
    {
        if(!response) return SendClientMessage(playerid,0xFFFFFFFF,"You Have Cancelled The Application!");
       //I dont feel like doing the saving part lol im too lazy
        ShowPlayerDialog(playerid,1236,DIALOG_STYLE_MSGBOX,"Application: Step 3","Do You Have A House","Yes", "No");
    }
    if(dialogid == 1236)
    {
        if(!response) return SendClientMessage(playerid, 0xFFFFFFFF, "No House");// DO whatever here if they dont have a house
        //I dun wanna do dini
        ShowPlayerDialog(playerid,1237,DIALOG_STYLE_MSGBOX,"Application: Step 4", "Do You Have Money?", "Yes", "No");
    }
    if(dialogid == 1237)
    {
        if(!response) return SendClientMessage(playerid,0xFFFFFFFF, "No Money"); // Do whatever if they dont have any money
        //No Dini for me
        ShowPlayerDialog(playerid,1238,DIALOG_STYLE_MSGBOX,"Application: Finished", "Thank You For Applying, \nAdministrators Will Review Your Application Shortly.","Okay", "");
    }
    return 1;
}
i suck at dini, get someone else to help you with that
Ok thanks for this, if there anyone to help for dini part.
Reply
#10

No problem xP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)