Help With this script plz !! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help With this script plz !! (
/showthread.php?tid=348402)
Help With this script plz !! -
MichaelProPlayer - 05.06.2012
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
Re: Help With this script plz !! -
MichaelProPlayer - 05.06.2012
OMG Nobody can help
!!
Re: Help With this script plz !! -
Flake. - 05.06.2012
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
Re: Help With this script plz !! -
Sandiel - 05.06.2012
ON TOP OF YOUR SCRIPT:
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;
}
Re: Help With this script plz !! -
awsomedude - 05.06.2012
I Will Help You When Your InGame