30.03.2018, 13:43
Sorry for slow respond
/signcheck code
Signcheck Dialog
/signcheck code
Код:
CMD:signcheck(playerid, params[]) { if(PlayerInfo[playerid][pPDTime] <= 0) { new String[10000]; { if(PlayerInfo[playerid][pDonateRank] >= 2) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_GREY, "Anda tidak bisa melakukannya saat menyetir."); if(PlayerInfo[playerid][pMember] != 0) { format(String, sizeof(String), "{FFFFFF}PayCheck : {FFFF00}$%s\n{ffffff}Duty Salary: {FFFF00}$%s\n{FFFFFF}Tax : {FF0000}-$%s (%d percent)\n{FFFFFF}Interest: {FFFF00}$%s", FormatMoney(PlayerInfo[playerid][pPayCheck]), FormatMoney(PlayerInfo[playerid][pRank]*PlayerInfo[playerid][pDutyTime]/60), FormatMoney((PlayerInfo[playerid][pPayCheck]/100)*TaxValue), TaxValue ,FormatMoney((PlayerInfo[playerid][pAccount]/100)*(1))); } else { format(String, sizeof(String), "{FFFFFF}PayCheck : {FFFF00}$%s\n{FFFFFF}Tax : {FF0000}-%s (%d percent)\n{FFFFFF}Interest: {FFFF00}$%s", FormatMoney(PlayerInfo[playerid][pPayCheck]), FormatMoney((( PlayerInfo[playerid][pPayCheck] / 100 ) * TaxValue)), TaxValue, FormatMoney((PlayerInfo[playerid][pAccount]/100)*(1))); } ShowPlayerDialog(playerid, 1150, DIALOG_STYLE_MSGBOX, "Sign PayCheck", String,"Get","Cancel"); } else { if(IsAtBank(playerid)) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_GREY, "Anda tidak bisa melakukannya saat menyetir."); if(PlayerInfo[playerid][pMember] != 0) { format(String, sizeof(String), "{FFFFFF}PayCheck : {FFFF00}$%s\n{ffffff}Duty Salary: {FFFF00}$%s\n{FFFFFF}Tax : {FF0000}-$%s (%d percent)\n{FFFFFF}Interest: {FFFF00}$%s", FormatMoney(PlayerInfo[playerid][pPayCheck]), FormatMoney(PlayerInfo[playerid][pRank]*PlayerInfo[playerid][pDutyTime]/60), FormatMoney((PlayerInfo[playerid][pPayCheck]/100)*TaxValue), TaxValue ,FormatMoney((PlayerInfo[playerid][pAccount]/100)*(1))); } else { format(String, sizeof(String), "{FFFFFF}PayCheck : {FFFF00}$%s\n{FFFFFF}Tax : {FF0000}-%s (%d percent)\n{FFFFFF}Interest: {FFFF00}$%s", FormatMoney(PlayerInfo[playerid][pPayCheck]), FormatMoney((( PlayerInfo[playerid][pPayCheck] / 100 ) * TaxValue)), TaxValue, FormatMoney((PlayerInfo[playerid][pAccount]/100)*(1))); } ShowPlayerDialog(playerid, 1150, DIALOG_STYLE_MSGBOX, "Sign PayCheck", String,"Get","Cancel"); } } return 1; } return 1; } else { new String[10000], menit = PlayerInfo[playerid][pPDTime] / 60; format(String, sizeof(String), "ERROR: Kamu dapat mengambil PayCheck %d menit lagi", menit); SendClientMessageEx(playerid,COLOR_WHITE,String); } return 1; }
Код:
if(dialogid == 1150) { if(response) { PayCheck(playerid); } return 1; }