Advertisement
Guest User

Untitled

a guest
Sep 26th, 2023
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. YCMD:vouchers(playerid, params[], help) {
  2. 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!");
  3. new string[350];
  4. 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]);
  5. new string2[190];
  6. 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]);
  7. ShowPlayerDialog(playerid, DIALOG_VOUCHERS, DIALOG_STYLE_TABLIST_HEADERS, string2, string, "Select", "Cancel");
  8. return true;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement