Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YCMD:vouchers(playerid, params[], help) {
- if(playerVariables[playerid][pVoucher][0] == 0 && playerVariables[playerid][pVoucher][1] == 0 && playerVariables[playerid][pVoucher][2] == 0 && playerVariables[playerid][pVoucher][3] == 0 && playerVariables[playerid][pVoucher][4] == 0) return SCM(playerid, COLOR_GREEN, "Eroare: Nu ai un voucher!");
- new string[350];
- format(string, sizeof(string), "#\tType\tTotal\tInfo\n1.\t{045AB6}Light Voucher\t{FFFFFF}%d in total\t50 Premium Points\n2.\t{610F7D}Medium Voucher\t{FFFFFF}%d in total\t100 Premium Points\n3.\t{F44343}Big Voucher\t{FFFFFF}%d in total\t200 Premium Points\n4.\t{ECB024}Premiun Voucher\t{FFFFFF}%d in total\t500 Premium Points\n5.\t{13F6F6}Time Voucher\t{FFFFFF}%d in total\t15 Premium Points", playerVariables[playerid][pVoucher][0], playerVariables[playerid][pVoucher][1], playerVariables[playerid][pVoucher][2], playerVariables[playerid][pVoucher][3], playerVariables[playerid][pVoucher][4]);
- new string2[190];
- format(string2, sizeof(string2), "My Vouchers: {45FF00}%d {FFFFFF}(total)", playerVariables[playerid][pVoucher][0] + playerVariables[playerid][pVoucher][1] + playerVariables[playerid][pVoucher][2] + playerVariables[playerid][pVoucher][3] + playerVariables[playerid][pVoucher][4]);
- ShowPlayerDialog(playerid, DIALOG_VOUCHERS, DIALOG_STYLE_TABLIST_HEADERS, string2, string, "Select", "Cancel");
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement