06.01.2016, 14:21
Boring day, what can i do? I will make little mini game in SAMP, Get me if you can.
What you mast do to play this game:
You mast, play game and hunt little cubes, for specified time, and after that, if complete game you will get reward.
This is only v1.0, you can see at pic. "NaN" tag, that tag is not completed, i must create timer and complete results.
Here is pic.:
http://i.imgur.com/9fw8iSb.png
http://i.imgur.com/vh15Hbw.png
http://i.imgur.com/LyX3G3I.png
http://i.imgur.com/k9Mrqhl.png
http://i.imgur.com/lf0KUjH.png
http://i.imgur.com/xwgKOsk.png
http://i.imgur.com/MoWyngx.png
Here is code: (English Version, v1.0) :
What you mast do to play this game:
You mast, play game and hunt little cubes, for specified time, and after that, if complete game you will get reward.
This is only v1.0, you can see at pic. "NaN" tag, that tag is not completed, i must create timer and complete results.
Here is pic.:
http://i.imgur.com/9fw8iSb.png
http://i.imgur.com/vh15Hbw.png
http://i.imgur.com/LyX3G3I.png
http://i.imgur.com/k9Mrqhl.png
http://i.imgur.com/lf0KUjH.png
http://i.imgur.com/xwgKOsk.png
http://i.imgur.com/MoWyngx.png
Here is code: (English Version, v1.0) :
Code:
//------------------------------------------------------------------------------ //------------------------ Get me if you can --------------------------------- //---------------------------- by:Mikki ---------------------------------------- //------------------------------------------------------------------------------ #include <a_samp> #pragma tabsize 0 //============================================================================== DefTD-ova new Text: podloga[9]; new Text: zi0; new Text: zi1; new Text: vreme0; new Text: vreme1; new Text: Kockice[20]; new Text: Rez[3]; new Text: Kraj[2]; //============================================================================== Varijable #define FILTERSCRIPT #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print("''Get me if you can', SAMP Game by:Mikki"); print("Loaded!"); print("--------------------------------------\n"); SetTimer("Igra", 1000, false); //-------------------------------------------------------------------------- Podloga podloga[0] = TextDrawCreate(457.058837, 58.083332, "usebox"); TextDrawLetterSize(podloga[0], 0.000000, 35.720371); TextDrawTextSize(podloga[0], 192.823532, 0.000000); TextDrawAlignment(podloga[0], 1); TextDrawColor(podloga[0], 0); TextDrawUseBox(podloga[0], true); TextDrawBoxColor(podloga[0], 102); TextDrawSetShadow(podloga[0], 0); TextDrawSetOutline(podloga[0], 0); TextDrawFont(podloga[0], 0); podloga[1] = TextDrawCreate(194.352935, 54.833335, "LD_SPAC:white"); TextDrawLetterSize(podloga[1], 0.000000, 0.000000); TextDrawTextSize(podloga[1], 261.176483, 18.083335); TextDrawAlignment(podloga[1], 1); TextDrawColor(podloga[1], -5963521); TextDrawSetShadow(podloga[1], 0); TextDrawSetOutline(podloga[1], 0); TextDrawFont(podloga[1], 4); podloga[2] = TextDrawCreate(196.706085, 56.583354, "Get me if you can..."); TextDrawLetterSize(podloga[2], 0.449999, 1.600000); TextDrawAlignment(podloga[2], 1); TextDrawColor(podloga[2], -65281); TextDrawSetShadow(podloga[2], 0); TextDrawSetOutline(podloga[2], 1); TextDrawBackgroundColor(podloga[2], 255); TextDrawFont(podloga[2], 3); TextDrawSetProportional(podloga[2], 1); podloga[3] = TextDrawCreate(432.470458, 59.500000, "v1.0"); TextDrawLetterSize(podloga[3], 0.215176, 0.870832); TextDrawAlignment(podloga[3], 1); TextDrawColor(podloga[3], -1); TextDrawSetShadow(podloga[3], 0); TextDrawSetOutline(podloga[3], 1); TextDrawBackgroundColor(podloga[3], 51); TextDrawFont(podloga[3], 3); TextDrawSetProportional(podloga[3], 1); podloga[4] = TextDrawCreate(446.235290, 91.333328, "usebox"); TextDrawLetterSize(podloga[4], 0.000000, 30.600000); TextDrawTextSize(podloga[4], 202.705886, 0.000000); TextDrawAlignment(podloga[4], 1); TextDrawColor(podloga[4], 0); TextDrawUseBox(podloga[4], true); TextDrawBoxColor(podloga[4], 102); TextDrawSetShadow(podloga[4], 0); TextDrawSetOutline(podloga[4], 0); TextDrawFont(podloga[4], 0); podloga[5] = TextDrawCreate(218.352951, 382.083312, "LD_SPAC:white"); TextDrawLetterSize(podloga[5], 0.000000, 0.000000); TextDrawTextSize(podloga[5], 217.882339, 22.750000); TextDrawAlignment(podloga[5], 1); TextDrawColor(podloga[5], 8388863); TextDrawSetShadow(podloga[5], 0); TextDrawSetOutline(podloga[5], 0); TextDrawFont(podloga[5], 4); podloga[6] = TextDrawCreate(435.294128, 382.666687, "LD_SPAC:white"); TextDrawLetterSize(podloga[6], 0.000000, 0.000000); TextDrawTextSize(podloga[6], 9.882324, 11.083312); TextDrawAlignment(podloga[6], 1); TextDrawColor(podloga[6], -16776961); TextDrawSetShadow(podloga[6], 0); TextDrawSetOutline(podloga[6], 0); TextDrawFont(podloga[6], 4); podloga[7] = TextDrawCreate(434.823577, 379.750030, "X"); TextDrawColor(podloga[7], -1); TextDrawSetShadow(podloga[7], 0); //TextDrawSetOutline(podloga[7], 1); TextDrawBackgroundColor(podloga[7], 51); TextDrawFont(podloga[7], 1); TextDrawSetProportional(podloga[7], 1); TextDrawSetSelectable(podloga[7], true); podloga[8] = TextDrawCreate(446.235290, 371.333312, "usebox"); TextDrawLetterSize(podloga[8], 0.000000, 0.655555); TextDrawTextSize(podloga[8], 384.823547, 0.000000); TextDrawAlignment(podloga[8], 1); TextDrawColor(podloga[8], 0); TextDrawUseBox(podloga[8], true); TextDrawBoxColor(podloga[8], 102); TextDrawSetShadow(podloga[8], 0); TextDrawSetOutline(podloga[8], 0); TextDrawFont(podloga[8], 0); //-------------------------------------------------------------------------- Zapocni igru zi0 = TextDrawCreate(197.176483, 214.083343, "LD_SPAC:white"); TextDrawLetterSize(zi0, 0.000000, 0.000000); TextDrawTextSize(zi0, 257.882354, 13.999984); TextDrawAlignment(zi0, 1); TextDrawColor(zi0, 8388863); TextDrawSetShadow(zi0, 0); TextDrawSetOutline(zi0, 0); TextDrawFont(zi0, 4); zi1 = TextDrawCreate(276.706024, 211.750015, "Start game"); TextDrawLetterSize(zi1, 0.449999, 1.600000); TextDrawAlignment(zi1, 1); TextDrawColor(zi1, 16711935); TextDrawSetShadow(zi1, 0); TextDrawSetOutline(zi1, 1); TextDrawBackgroundColor(zi1, 51); TextDrawFont(zi1, 1); TextDrawSetProportional(zi1, 1); TextDrawSetSelectable(zi1, true); //-------------------------------------------------------------------------- Vreme vreme0 = TextDrawCreate(388.235443, 369.250000, "Time:"); TextDrawLetterSize(vreme0, 0.255176, 0.876666); TextDrawAlignment(vreme0, 1); TextDrawColor(vreme0, -1); TextDrawSetShadow(vreme0, 0); TextDrawSetOutline(vreme0, 1); TextDrawBackgroundColor(vreme0, 51); TextDrawFont(vreme0, 3); TextDrawSetProportional(vreme0, 1); vreme1 = TextDrawCreate(424.470550, 364.000030, "NaN"); TextDrawLetterSize(vreme1, 0.449999, 1.600000); TextDrawAlignment(vreme1, 1); TextDrawColor(vreme1, -1); TextDrawSetShadow(vreme1, 0); TextDrawSetOutline(vreme1, 1); TextDrawBackgroundColor(vreme1, 51); TextDrawFont(vreme1, 1); TextDrawSetProportional(vreme1, 1); //-------------------------------------------------------------------------- Kockice Kockice[0] = TextDrawCreate(213.647064, 127.166664, "LD_SPAC:white"); TextDrawLetterSize(Kockice[0], 0.000000, 0.000000); TextDrawTextSize(Kockice[0], 27.294113, 30.333335); TextDrawAlignment(Kockice[0], 1); TextDrawColor(Kockice[0], -1); TextDrawSetShadow(Kockice[0], 0); TextDrawSetOutline(Kockice[0], 0); TextDrawFont(Kockice[0], 4); TextDrawSetSelectable(Kockice[0], true); Kockice[1] = TextDrawCreate(258.352935, 199.500000, "LD_SPAC:white"); TextDrawLetterSize(Kockice[1], 0.000000, 0.000000); TextDrawTextSize(Kockice[1], 23.529418, 28.583328); TextDrawAlignment(Kockice[1], 1); TextDrawColor(Kockice[1], 41215); TextDrawSetShadow(Kockice[1], 0); TextDrawSetOutline(Kockice[1], 0); TextDrawFont(Kockice[1], 4); TextDrawSetSelectable(Kockice[1], true); Kockice[2] = TextDrawCreate(264.000000, 160.416656, "LD_SPAC:white"); TextDrawLetterSize(Kockice[2], 0.000000, 0.000000); TextDrawTextSize(Kockice[2], 25.882354, 26.833343); TextDrawAlignment(Kockice[2], 1); TextDrawColor(Kockice[2], -16776961); TextDrawSetShadow(Kockice[2], 0); TextDrawSetOutline(Kockice[2], 0); TextDrawFont(Kockice[2], 4); TextDrawSetSelectable(Kockice[2], true); Kockice[3] = TextDrawCreate(212.705871, 200.666656, "LD_SPAC:white"); TextDrawLetterSize(Kockice[3], 0.000000, 0.000000); TextDrawTextSize(Kockice[3], 22.117660, 25.083343); TextDrawAlignment(Kockice[3], 1); TextDrawColor(Kockice[3], 16777215); TextDrawSetShadow(Kockice[3], 0); TextDrawSetOutline(Kockice[3], 0); TextDrawFont(Kockice[3], 4); TextDrawSetSelectable(Kockice[3], true); Kockice[4] = TextDrawCreate(284.235290, 118.416664, "LD_SPAC:white"); TextDrawLetterSize(Kockice[4], 0.000000, 0.000000); TextDrawTextSize(Kockice[4], 20.235290, 19.833335); TextDrawAlignment(Kockice[4], 1); TextDrawColor(Kockice[4], -1061109505); TextDrawSetShadow(Kockice[4], 0); TextDrawSetOutline(Kockice[4], 0); TextDrawFont(Kockice[4], 4); TextDrawSetSelectable(Kockice[4], true); Kockice[5] = TextDrawCreate(315.764709, 130.666656, "LD_SPAC:white"); TextDrawLetterSize(Kockice[5], 0.000000, 0.000000); TextDrawTextSize(Kockice[5], 24.470581, 26.833343); TextDrawAlignment(Kockice[5], 1); TextDrawColor(Kockice[5], 65535); TextDrawSetShadow(Kockice[5], 0); TextDrawSetOutline(Kockice[5], 0); TextDrawFont(Kockice[5], 4); TextDrawSetSelectable(Kockice[5], true); Kockice[6] = TextDrawCreate(343.058807, 163.333343, "LD_SPAC:white"); TextDrawLetterSize(Kockice[6], 0.000000, 0.000000); TextDrawTextSize(Kockice[6], 26.352966, 27.416656); TextDrawAlignment(Kockice[6], 1); TextDrawColor(Kockice[6], -2139062017); TextDrawSetShadow(Kockice[6], 0); TextDrawSetOutline(Kockice[6], 0); TextDrawFont(Kockice[6], 4); TextDrawSetSelectable(Kockice[6], true); Kockice[7] = TextDrawCreate(375.058837, 121.333335, "LD_SPAC:white"); TextDrawLetterSize(Kockice[7], 0.000000, 0.000000); TextDrawTextSize(Kockice[7], 18.823547, 19.833320); TextDrawAlignment(Kockice[7], 1); TextDrawColor(Kockice[7], -1378294017); TextDrawSetShadow(Kockice[7], 0); TextDrawSetOutline(Kockice[7], 0); TextDrawFont(Kockice[7], 4); TextDrawSetSelectable(Kockice[7], true); Kockice[8] = TextDrawCreate(212.705871, 239.166671, "LD_SPAC:white"); TextDrawLetterSize(Kockice[8], 0.000000, 0.000000); TextDrawTextSize(Kockice[8], 17.411773, 21.583328); TextDrawAlignment(Kockice[8], 1); TextDrawColor(Kockice[8], -5963521); TextDrawSetShadow(Kockice[8], 0); TextDrawSetOutline(Kockice[8], 0); TextDrawFont(Kockice[8], 4); TextDrawSetSelectable(Kockice[8], true); Kockice[9] = TextDrawCreate(423.529388, 110.833328, "LD_SPAC:white"); TextDrawLetterSize(Kockice[9], 0.000000, 0.000000); TextDrawTextSize(Kockice[9], 18.823547, 20.416671); TextDrawAlignment(Kockice[9], 1); TextDrawColor(Kockice[9], -2147450625); TextDrawSetShadow(Kockice[9], 0); TextDrawSetOutline(Kockice[9], 0); TextDrawFont(Kockice[9], 4); TextDrawSetSelectable(Kockice[9], true); Kockice[10] = TextDrawCreate(306.823516, 184.916656, "LD_SPAC:white"); TextDrawLetterSize(Kockice[10], 0.000000, 0.000000); TextDrawTextSize(Kockice[10], 20.705902, 22.750000); TextDrawAlignment(Kockice[10], 1); TextDrawColor(Kockice[10], -1523963137); TextDrawSetShadow(Kockice[10], 0); TextDrawSetOutline(Kockice[10], 0); TextDrawFont(Kockice[10], 4); TextDrawSetSelectable(Kockice[10], true); Kockice[11] = TextDrawCreate(329.882354, 235.083328, "LD_SPAC:white"); TextDrawLetterSize(Kockice[11], 0.000000, 0.000000); TextDrawTextSize(Kockice[11], 21.176452, 21.583358); TextDrawAlignment(Kockice[11], 1); TextDrawColor(Kockice[11], -65281); TextDrawSetShadow(Kockice[11], 0); TextDrawSetOutline(Kockice[11], 0); TextDrawFont(Kockice[11], 4); TextDrawSetSelectable(Kockice[11], true); Kockice[12] = TextDrawCreate(399.058837, 166.250000, "LD_SPAC:white"); TextDrawLetterSize(Kockice[12], 0.000000, 0.000000); TextDrawTextSize(Kockice[12], 16.000000, 20.416656); TextDrawAlignment(Kockice[12], 1); TextDrawColor(Kockice[12], -2147483393); TextDrawSetShadow(Kockice[12], 0); TextDrawSetOutline(Kockice[12], 0); TextDrawFont(Kockice[12], 4); TextDrawSetSelectable(Kockice[12], true); Kockice[13] = TextDrawCreate(373.176452, 212.333343, "LD_SPAC:white"); TextDrawLetterSize(Kockice[13], 0.000000, 0.000000); TextDrawTextSize(Kockice[13], 16.470611, 17.499984); TextDrawAlignment(Kockice[13], 1); TextDrawColor(Kockice[13], 16711935); TextDrawSetShadow(Kockice[13], 0); TextDrawSetOutline(Kockice[13], 0); TextDrawFont(Kockice[13], 4); TextDrawSetSelectable(Kockice[13], true); Kockice[14] = TextDrawCreate(412.705871, 228.083328, "LD_SPAC:white"); TextDrawLetterSize(Kockice[14], 0.000000, 0.000000); TextDrawTextSize(Kockice[14], 16.000000, 17.500000); TextDrawAlignment(Kockice[14], 1); TextDrawColor(Kockice[14], 8388863); TextDrawSetShadow(Kockice[14], 0); TextDrawSetOutline(Kockice[14], 0); TextDrawFont(Kockice[14], 4); TextDrawSetSelectable(Kockice[14], true); Kockice[15] = TextDrawCreate(259.294097, 259.000000, "LD_SPAC:white"); TextDrawLetterSize(Kockice[15], 0.000000, 0.000000); TextDrawTextSize(Kockice[15], 12.705902, 12.833312); TextDrawAlignment(Kockice[15], 1); TextDrawColor(Kockice[15], -16711681); TextDrawSetShadow(Kockice[15], 0); TextDrawSetOutline(Kockice[15], 0); TextDrawFont(Kockice[15], 4); TextDrawSetSelectable(Kockice[15], true); Kockice[16] = TextDrawCreate(301.647064, 270.666687, "LD_SPAC:white"); TextDrawLetterSize(Kockice[16], 0.000000, 0.000000); TextDrawTextSize(Kockice[16], 10.823515, 13.416625); TextDrawAlignment(Kockice[16], 1); TextDrawColor(Kockice[16], -2139094785); TextDrawSetShadow(Kockice[16], 0); TextDrawSetOutline(Kockice[16], 0); TextDrawFont(Kockice[16], 4); TextDrawSetSelectable(Kockice[16], true); Kockice[17] = TextDrawCreate(352.000000, 273.000000, "LD_SPAC:white"); TextDrawLetterSize(Kockice[17], 0.000000, 0.000000); TextDrawTextSize(Kockice[17], 9.882353, 12.833312); TextDrawAlignment(Kockice[17], 1); TextDrawColor(Kockice[17], -16776961); TextDrawSetShadow(Kockice[17], 0); TextDrawSetOutline(Kockice[17], 0); TextDrawFont(Kockice[17], 4); TextDrawSetSelectable(Kockice[17], true); Kockice[18] = TextDrawCreate(398.588226, 288.750000, "LD_SPAC:white"); TextDrawLetterSize(Kockice[18], 0.000000, 0.000000); TextDrawTextSize(Kockice[18], 8.941191, 9.333312); TextDrawAlignment(Kockice[18], 1); TextDrawColor(Kockice[18], -1); TextDrawUseBox(Kockice[18], true); TextDrawBoxColor(Kockice[18], 102); TextDrawSetShadow(Kockice[18], 0); TextDrawSetOutline(Kockice[18], 0); TextDrawFont(Kockice[18], 4); TextDrawSetSelectable(Kockice[18], true); Kockice[19] = TextDrawCreate(215.529403, 282.333312, "LD_SPAC:white"); TextDrawLetterSize(Kockice[19], 0.000000, 0.000000); TextDrawTextSize(Kockice[19], 7.058822, 7.583374); TextDrawAlignment(Kockice[19], 1); TextDrawColor(Kockice[19], 16777215); TextDrawSetShadow(Kockice[19], 0); TextDrawSetOutline(Kockice[19], 0); TextDrawFont(Kockice[19], 4); TextDrawSetSelectable(Kockice[19], true); //-------------------------------------------------------------------------- Rezultati Rez[0] = TextDrawCreate(258.352813, 387.916534, "Your result is:"); TextDrawLetterSize(Rez[0], 0.281529, 1.092499); TextDrawAlignment(Rez[0], 1); TextDrawColor(Rez[0], -1); TextDrawSetShadow(Rez[0], 0); TextDrawSetOutline(Rez[0], 1); TextDrawBackgroundColor(Rez[0], 51); TextDrawFont(Rez[0], 3); TextDrawSetProportional(Rez[0], 1); Rez[1] = TextDrawCreate(366.117645, 384.416625, "NaN"); TextDrawLetterSize(Rez[1], 0.449999, 1.600000); TextDrawAlignment(Rez[1], 1); TextDrawColor(Rez[1], 16711935); TextDrawSetShadow(Rez[1], 0); TextDrawSetOutline(Rez[1], 1); TextDrawBackgroundColor(Rez[1], 51); TextDrawFont(Rez[1], 1); TextDrawSetProportional(Rez[1], 1); //-------------------------------------------------------------------------- Kraj Kraj[0] = TextDrawCreate(204.235290, 89.250000, "LD_SPAC:white"); TextDrawLetterSize(Kraj[0], 0.000000, 0.000000); TextDrawTextSize(Kraj[0], 240.941162, 12.833328); TextDrawAlignment(Kraj[0], 1); TextDrawColor(Kraj[0], 8388863); TextDrawSetShadow(Kraj[0], 0); TextDrawSetOutline(Kraj[0], 0); TextDrawFont(Kraj[0], 4); Kraj[1] = TextDrawCreate(302.117492, 88.083343, "The End."); TextDrawLetterSize(Kraj[1], 0.449999, 1.600000); TextDrawAlignment(Kraj[1], 1); TextDrawColor(Kraj[1], -1); TextDrawSetShadow(Kraj[1], 0); TextDrawSetOutline(Kraj[1], 1); TextDrawBackgroundColor(Kraj[1], 51); TextDrawFont(Kraj[1], 1); TextDrawSetProportional(Kraj[1], 1); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print("'Get me if you can', SAMP Game by:Mikki"); print("Not loaded!"); print("----------------------------------\n"); } #endif //============================================================================== FS public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/minigame", true)) { TextDrawShowForPlayer(playerid, podloga[0]); TextDrawShowForPlayer(playerid, podloga[1]); TextDrawShowForPlayer(playerid, podloga[2]); TextDrawShowForPlayer(playerid, podloga[3]); TextDrawShowForPlayer(playerid, podloga[4]); TextDrawShowForPlayer(playerid, podloga[5]); TextDrawShowForPlayer(playerid, podloga[6]); TextDrawShowForPlayer(playerid, podloga[7]); TextDrawShowForPlayer(playerid, podloga[8]); //TextDrawSetSelectable(podloga[7], 1); TextDrawShowForPlayer(playerid, zi0); TextDrawShowForPlayer(playerid, zi1); return 1; } return 0; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys == KEY_FIRE) { SelectTextDraw(playerid, 0xFF4040AA); } return 1; } public OnPlayerClickTextDraw(playerid, Text:clickedid) { if(clickedid == podloga[7]) { CancelSelectTextDraw(playerid); TextDrawHideForPlayer(playerid,podloga[0]); TextDrawHideForPlayer(playerid,podloga[1]); TextDrawHideForPlayer(playerid,podloga[2]); TextDrawHideForPlayer(playerid,podloga[3]); TextDrawHideForPlayer(playerid,podloga[4]); TextDrawHideForPlayer(playerid,podloga[5]); TextDrawHideForPlayer(playerid,podloga[6]); TextDrawHideForPlayer(playerid,podloga[7]); TextDrawHideForPlayer(playerid,podloga[8]); TextDrawHideForPlayer(playerid,zi0); TextDrawHideForPlayer(playerid,zi1); TextDrawHideForPlayer(playerid,vreme0); TextDrawHideForPlayer(playerid,vreme1); TextDrawHideForPlayer(playerid,Rez[0]); TextDrawHideForPlayer(playerid,Rez[1]); TextDrawHideForPlayer(playerid,Kockice[0]); TextDrawHideForPlayer(playerid,Kockice[1]); TextDrawHideForPlayer(playerid,Kockice[2]); TextDrawHideForPlayer(playerid,Kockice[3]); TextDrawHideForPlayer(playerid,Kockice[4]); TextDrawHideForPlayer(playerid,Kockice[5]); TextDrawHideForPlayer(playerid,Kockice[6]); TextDrawHideForPlayer(playerid,Kockice[7]); TextDrawHideForPlayer(playerid,Kockice[8]); TextDrawHideForPlayer(playerid,Kockice[9]); TextDrawHideForPlayer(playerid,Kockice[10]); TextDrawHideForPlayer(playerid,Kockice[11]); TextDrawHideForPlayer(playerid,Kockice[12]); TextDrawHideForPlayer(playerid,Kockice[13]); TextDrawHideForPlayer(playerid,Kockice[14]); TextDrawHideForPlayer(playerid,Kockice[15]); TextDrawHideForPlayer(playerid,Kockice[16]); TextDrawHideForPlayer(playerid,Kockice[18]); TextDrawHideForPlayer(playerid,Kockice[19]); } if(clickedid == zi1) { TextDrawHideForPlayer(playerid,zi0); TextDrawHideForPlayer(playerid,zi1); TextDrawShowForPlayer(playerid,Rez[0]); TextDrawShowForPlayer(playerid,Kockice[0]); TextDrawShowForPlayer(playerid,Rez[1]); TextDrawShowForPlayer(playerid,vreme0); TextDrawShowForPlayer(playerid,vreme1); } if(clickedid == Kockice[0]) { TextDrawShowForPlayer(playerid,Kockice[1]); TextDrawHideForPlayer(playerid,Kockice[0]); } if(clickedid == Kockice[1]) { TextDrawShowForPlayer(playerid,Kockice[2]); TextDrawHideForPlayer(playerid,Kockice[1]); } if(clickedid == Kockice[2]) { TextDrawShowForPlayer(playerid,Kockice[3]); TextDrawHideForPlayer(playerid,Kockice[2]); } if(clickedid == Kockice[3]) { TextDrawShowForPlayer(playerid,Kockice[4]); TextDrawHideForPlayer(playerid,Kockice[3]); } if(clickedid == Kockice[4]) { TextDrawShowForPlayer(playerid,Kockice[4]); TextDrawHideForPlayer(playerid,Kockice[3]); } if(clickedid == Kockice[5]) { TextDrawShowForPlayer(playerid,Kockice[5]); TextDrawHideForPlayer(playerid,Kockice[6]); } if(clickedid == Kockice[6]) { TextDrawShowForPlayer(playerid,Kockice[6]); TextDrawHideForPlayer(playerid,Kockice[7]); } if(clickedid == Kockice[7]) { TextDrawShowForPlayer(playerid,Kockice[7]); TextDrawHideForPlayer(playerid,Kockice[8]); } if(clickedid == Kockice[8]) { TextDrawShowForPlayer(playerid,Kockice[8]); TextDrawHideForPlayer(playerid,Kockice[9]); } if(clickedid == Kockice[9]) { TextDrawShowForPlayer(playerid,Kockice[9]); TextDrawHideForPlayer(playerid,Kockice[10]); } if(clickedid == Kockice[10]) { TextDrawShowForPlayer(playerid,Kockice[10]); TextDrawHideForPlayer(playerid,Kockice[11]); } if(clickedid == Kockice[11]) { TextDrawShowForPlayer(playerid,Kockice[11]); TextDrawHideForPlayer(playerid,Kockice[12]); } if(clickedid == Kockice[12]) { TextDrawShowForPlayer(playerid,Kockice[12]); TextDrawHideForPlayer(playerid,Kockice[13]); } if(clickedid == Kockice[13]) { TextDrawShowForPlayer(playerid,Kockice[13]); TextDrawHideForPlayer(playerid,Kockice[14]); } if(clickedid == Kockice[14]) { TextDrawShowForPlayer(playerid,Kockice[14]); TextDrawHideForPlayer(playerid,Kockice[15]); } if(clickedid == Kockice[15]) { TextDrawShowForPlayer(playerid,Kockice[15]); TextDrawHideForPlayer(playerid,Kockice[16]); } if(clickedid == Kockice[16]) { TextDrawShowForPlayer(playerid,Kockice[16]); TextDrawHideForPlayer(playerid,Kockice[17]); } if(clickedid == Kockice[17]) { TextDrawShowForPlayer(playerid,Kockice[17]); TextDrawHideForPlayer(playerid,Kockice[18]); } if(clickedid == Kockice[18]) { TextDrawShowForPlayer(playerid,Kockice[18]); TextDrawHideForPlayer(playerid,Kockice[19]); } if(clickedid == Kockice[19]) { TextDrawShowForPlayer(playerid, Kraj[0]); TextDrawShowForPlayer(playerid, Kraj[1]); } return 1; }