Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function CaseOpeningTimer1(playerid) {
- CaseOpeningTimes[playerid] ++;
- if(CaseOpeningTimes[playerid] >= 1 && CaseOpeningTimes[playerid] <= 20) {
- switch(random(100)) {
- case 0..20: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][5], -2147450625);
- PlayerTextDrawSetString(playerid, CaseOpeningTD[playerid][10], "~p~mov");
- }
- case 21..40: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][5], 8388863);
- PlayerTextDrawSetString(playerid, CaseOpeningTD[playerid][10], "~g~verde");
- }
- case 41..60: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][5], 65535);
- PlayerTextDrawSetString(playerid, CaseOpeningTD[playerid][10], "~b~albastru");
- }
- case 61..80: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][5], -65281);
- PlayerTextDrawSetString(playerid, CaseOpeningTD[playerid][10], "~y~galben");
- }
- case 81..100: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][5], -16776961);
- PlayerTextDrawSetString(playerid, CaseOpeningTD[playerid][10], "~r~rosu");
- }
- }
- switch(random(100)) {
- case 0..20: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][2], -2147450625);
- }
- case 21..40: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][2], 8388863);
- }
- case 41..60: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][2], 65535);
- }
- case 61..80: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][2], -65281);
- }
- case 81..100: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][2], -16776961);
- }
- }
- switch(random(100)) {
- case 0..20: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][3], -2147450625);
- }
- case 21..40: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][3], 8388863);
- }
- case 41..60: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][3], 65535);
- }
- case 61..80: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][3], -65281);
- }
- case 81..100: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][3], -16776961);
- }
- }
- switch(random(100)) {
- case 0..20: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][4], -2147450625);
- }
- case 21..40: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][4], 8388863);
- }
- case 41..60: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][4], 65535);
- }
- case 61..80: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][4], -65281);
- }
- case 81..100: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][4], -16776961);
- }
- }
- switch(random(100)) {
- case 0..20: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][6], -2147450625);
- }
- case 21..40: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][6], 8388863);
- }
- case 41..60: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][6], 65535);
- }
- case 61..80: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][6], -65281);
- }
- case 81..100: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][6], -16776961);
- }
- }
- switch(random(100)) {
- case 0..20: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][7], -2147450625);
- }
- case 21..40: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][7], 8388863);
- }
- case 41..60: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][7], 65535);
- }
- case 61..80: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][7], -65281);
- }
- case 81..100: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][7], -16776961);
- }
- }
- switch(random(100)) {
- case 0..20: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][8], -2147450625);
- }
- case 21..40: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][8], 8388863);
- }
- case 41..60: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][8], 65535);
- }
- case 61..80: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][8], -65281);
- }
- case 81..100: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][8], -16776961);
- }
- }
- PlayerTextDrawShow(playerid, CaseOpeningTD[playerid][2]);
- PlayerTextDrawShow(playerid, CaseOpeningTD[playerid][3]);
- PlayerTextDrawShow(playerid, CaseOpeningTD[playerid][4]);
- PlayerTextDrawShow(playerid, CaseOpeningTD[playerid][5]);
- PlayerTextDrawShow(playerid, CaseOpeningTD[playerid][6]);
- PlayerTextDrawShow(playerid, CaseOpeningTD[playerid][7]);
- PlayerTextDrawShow(playerid, CaseOpeningTD[playerid][8]);
- }
- if(CaseOpeningTimes[playerid] == 20 || CaseOpeningTimes[playerid] == 21) {
- KillTimer(CaseOpeningRandTimer[playerid]);
- switch(random(100)) {
- case 71..90: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][5], -2147450625);
- PlayerTextDrawSetString(playerid, CaseOpeningTD[playerid][10], "~p~mov");
- SCM(playerid, COLOR_YELLOW, "Ai castigat o culoare hidden.");
- //PlayerInfo[playerid][pHiddenColor] ++;
- format(GlobalString, sizeof GlobalString, "(( %s a castigat o culoare hidden [OpenCase]. ))", GetName(playerid));
- SendClientMessageToAll(COLOR_WHITE, GlobalString);
- ShowCaseOpeningTD(playerid);
- }
- case 91..97: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][5], 65535);
- PlayerTextDrawSetString(playerid, CaseOpeningTD[playerid][10], "~b~albastru");
- new rand = random(50) + 10;
- SCMf(playerid, COLOR_YELLOW, "Ai castigat %d puncte premium.", rand);
- PlayerInfo[playerid][pPremiumPoints] += rand;
- format(GlobalString, sizeof GlobalString, "(( %s a castigat %d puncte premium [OpenCase]. ))", GetName(playerid), rand);
- SendClientMessageToAll(COLOR_WHITE, GlobalString);
- ShowCaseOpeningTD(playerid);
- }
- case 36..70: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][5], -65281);
- PlayerTextDrawSetString(playerid, CaseOpeningTD[playerid][10], "~y~galben");
- new rand = random(100000) + 5000;
- SCMf(playerid, COLOR_YELLOW, "Ai castigat %s materiale.", FormatNumber(rand));
- PlayerInfo[playerid][pMats] += rand;
- ShowCaseOpeningTD(playerid);
- }
- case 0..35: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][5], -16776961);
- PlayerTextDrawSetString(playerid, CaseOpeningTD[playerid][10], "~r~rosu");
- new rand = random(2000000) + 100000;
- SCMf(playerid, COLOR_YELLOW, "Ai castigat %s$.", FormatNumber(rand));
- Cash[playerid] += rand;
- ShowCaseOpeningTD(playerid);
- }
- }
- switch(random(100)) {
- case 0..20: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][2], -2147450625);
- ShowCaseOpeningTD(playerid);
- }
- case 21..40: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][2], 8388863);
- ShowCaseOpeningTD(playerid);
- }
- case 41..60: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][2], 65535);
- ShowCaseOpeningTD(playerid);
- }
- case 61..80: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][2], -65281);
- ShowCaseOpeningTD(playerid);
- }
- case 81..100: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][2], -16776961);
- ShowCaseOpeningTD(playerid);
- }
- }
- switch(random(100)) {
- case 0..20: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][3], -2147450625);
- ShowCaseOpeningTD(playerid);
- }
- case 21..40: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][3], 8388863);
- ShowCaseOpeningTD(playerid);
- }
- case 41..60: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][3], 65535);
- ShowCaseOpeningTD(playerid);
- }
- case 61..80: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][3], -65281);
- ShowCaseOpeningTD(playerid);
- }
- case 81..100: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][3], -16776961);
- ShowCaseOpeningTD(playerid);
- }
- }
- switch(random(100)) {
- case 0..20: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][4], -2147450625);
- ShowCaseOpeningTD(playerid);
- }
- case 21..40: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][4], 8388863);
- ShowCaseOpeningTD(playerid);
- }
- case 41..60: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][4], 65535);
- ShowCaseOpeningTD(playerid);
- }
- case 61..80: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][4], -65281);
- ShowCaseOpeningTD(playerid);
- }
- case 81..100: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][4], -16776961);
- ShowCaseOpeningTD(playerid);
- }
- }
- switch(random(100)) {
- case 0..20: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][6], -2147450625);
- ShowCaseOpeningTD(playerid);
- }
- case 21..40: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][6], 8388863);
- ShowCaseOpeningTD(playerid);
- }
- case 41..60: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][6], 65535);
- ShowCaseOpeningTD(playerid);
- }
- case 61..80: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][6], -65281);
- ShowCaseOpeningTD(playerid);
- }
- case 81..100: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][6], -16776961);
- ShowCaseOpeningTD(playerid);
- }
- }
- switch(random(100)) {
- case 0..20: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][7], -2147450625);
- ShowCaseOpeningTD(playerid);
- }
- case 21..40: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][7], 8388863);
- ShowCaseOpeningTD(playerid);
- }
- case 41..60: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][7], 65535);
- ShowCaseOpeningTD(playerid);
- }
- case 61..80: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][7], -65281);
- ShowCaseOpeningTD(playerid);
- }
- case 81..100: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][7], -16776961);
- ShowCaseOpeningTD(playerid);
- }
- }
- switch(random(100)) {
- case 0..20: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][8], -2147450625);
- ShowCaseOpeningTD(playerid);
- }
- case 21..40: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][8], 8388863);
- ShowCaseOpeningTD(playerid);
- }
- case 41..60: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][8], 65535);
- ShowCaseOpeningTD(playerid);
- }
- case 61..80: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][8], -65281);
- ShowCaseOpeningTD(playerid);
- }
- case 81..100: {
- PlayerTextDrawBoxColor(playerid, CaseOpeningTD[playerid][8], -16776961);
- ShowCaseOpeningTD(playerid);
- }
- }
- PlayerTextDrawShow(playerid, CaseOpeningTD[playerid][2]);
- PlayerTextDrawShow(playerid, CaseOpeningTD[playerid][3]);
- PlayerTextDrawShow(playerid, CaseOpeningTD[playerid][4]);
- PlayerTextDrawShow(playerid, CaseOpeningTD[playerid][5]);
- PlayerTextDrawShow(playerid, CaseOpeningTD[playerid][6]);
- PlayerTextDrawShow(playerid, CaseOpeningTD[playerid][7]);
- PlayerTextDrawShow(playerid, CaseOpeningTD[playerid][8]);
- ShowCaseOpeningTD(playerid);
- Update(playerid, pCashx);
- Update(playerid, pMatsx);
- Update(playerid, pPremiumPointsx);
- Update(playerid, pCasex);
- Update(playerid, pCaseKeyx);
- //Update(playerid, pHiddenColorx);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement