pawn Код:
if(dialogid == 47) //refund
{
if(!response)
{
RefundingID[playerid] = 999;
}
if(response)
{
new statname[32];
new giveplayer[MAX_PLAYER_NAME];
GetPlayerName(RefundingID[playerid], giveplayer, sizeof(giveplayer));
switch(listitem)
{
case 0:
{
RefundingNumber[playerid] = 0;
statname = "Level";
format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
}
case 1:
{
RefundingNumber[playerid] = 1;
statname = "Cash";
format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
}
case 2:
{
RefundingNumber[playerid] = 2;
statname = "Bank";
format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
return 1;
}
case 3:
{
RefundingNumber[playerid] = 3;
statname = "Materials";
format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
}
case 4:
{
RefundingNumber[playerid] = 4;
statname = "Crack";
format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
}
case 5:
{
RefundingNumber[playerid] = 5;
statname = "Pot";
format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
}
case 6:
{
RefundingNumber[playerid] = 6;
statname = "Arms Dealer Skill";
format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
}
case 7:
{
RefundingNumber[playerid] = 7;
statname = "Carjacker Skill";
format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
}
case 8:
{
RefundingNumber[playerid] = 8;
statname = "Detective Skill";
format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
}
case 9:
{
RefundingNumber[playerid] = 9;
statname = "Lawyer Skill";
format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
}
case 10:
{
RefundingNumber[playerid] = 10;
statname = "Mechanic Skill";
format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
}
case 11:
{
RefundingNumber[playerid] = 11;
statname = "Drug Dealer Skill";
format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
}
case 12:
{
RefundingNumber[playerid] = 12;
statname = "Sex Skill";
format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
}
case 13:
{
RefundingNumber[playerid] = 13;
statname = "Boxing Skill";
format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
}
case 14:
{
RefundingNumber[playerid] = 14;
statname = "Fishing Skill";
format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
}
case 15:
{
RefundingNumber[playerid] = 15;
statname = "Weapon Restriction";
format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
}
case 16:
{
RefundingNumber[playerid] = 16;
statname = "Gang Warnings";
format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
}
}
return 1;
}
}