28.03.2011, 21:29
Here ya go ![Smiley](images/smilies/smile.png)
i suck at dini, get someone else to help you with that
![Smiley](images/smilies/smile.png)
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;
}
![Smiley](images/smilies/smile.png)