outputDebugString ( \"2. lap\" ) dxDrawRectangle(1648, 538, 0, 26, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.3426) - 1, (screenW * 0.8495) - 1, screenH * 0.7833, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, (screenH * 0.3426) - 1, (screenW * 0.8495) - 1, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8495) - 1, screenH * 0.7833, screenW * 0.9839, screenH * 0.7833, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, screenH * 0.7833, screenW * 0.9839, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8495, screenH * 0.3426, screenW * 0.1344, screenH * 0.4407, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8943) - 1, (screenH * 0.7389) - 1, (screenW * 0.8943) - 1, screenH * 0.7741, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, (screenH * 0.7389) - 1, (screenW * 0.8943) - 1, (screenH * 0.7389) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8943) - 1, screenH * 0.7741, screenW * 0.9370, screenH * 0.7741, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, screenH * 0.7741, screenW * 0.9370, (screenH * 0.7389) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8943, screenH * 0.7389, screenW * 0.0427, screenH * 0.0352, tocolor(255, 255, 255, 255), false) dxDrawText(\"Hivás\", screenW * 0.8938, screenH * 0.7389, screenW * 0.9370, screenH * 0.7741, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.3426) - 1, (screenW * 0.8495) - 1, screenH * 0.3778, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9156, (screenH * 0.3426) - 1, (screenW * 0.8495) - 1, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8495) - 1, screenH * 0.3778, screenW * 0.9156, screenH * 0.3778, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9156, screenH * 0.3778, screenW * 0.9156, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8495, screenH * 0.3426, screenW * 0.0661, screenH * 0.0352, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.9187) - 1, (screenH * 0.3426) - 1, (screenW * 0.9187) - 1, screenH * 0.3778, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, (screenH * 0.3426) - 1, (screenW * 0.9187) - 1, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.9187) - 1, screenH * 0.3778, screenW * 0.9839, screenH * 0.3778, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, screenH * 0.3778, screenW * 0.9839, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.9187, screenH * 0.3426, screenW * 0.0651, screenH * 0.0352, tocolor(255, 255, 255, 255), false) dxDrawText(\"Tárcsázás\", screenW * 0.8490, screenH * 0.3417, screenW * 0.9156, screenH * 0.3778, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"Névjegyek\", screenW * 0.9187, screenH * 0.3417, screenW * 0.9839, screenH * 0.3778, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.5583) - 1, (screenW * 0.8495) - 1, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.8885, (screenH * 0.5583) - 1, (screenW * 0.8495) - 1, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8495) - 1, screenH * 0.5870, screenW * 0.8885, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.8885, screenH * 0.5870, screenW * 0.8885, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8495, screenH * 0.5583, screenW * 0.0391, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8964) - 1, (screenH * 0.5583) - 1, (screenW * 0.8964) - 1, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, (screenH * 0.5583) - 1, (screenW * 0.8964) - 1, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8964) - 1, screenH * 0.5870, screenW * 0.9370, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, screenH * 0.5870, screenW * 0.9370, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8964, screenH * 0.5583, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.9432) - 1, (screenH * 0.5583) - 1, (screenW * 0.9432) - 1, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, (screenH * 0.5583) - 1, (screenW * 0.9432) - 1, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.9432) - 1, screenH * 0.5870, screenW * 0.9839, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, screenH * 0.5870, screenW * 0.9839, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.9432, screenH * 0.5583, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.5963) - 1, (screenW * 0.8495) - 1, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.8885, (screenH * 0.5963) - 1, (screenW * 0.8495) - 1, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8495) - 1, screenH * 0.6250, screenW * 0.8885, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.8885, screenH * 0.6250, screenW * 0.8885, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8495, screenH * 0.5963, screenW * 0.0391, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.6343) - 1, (screenW * 0.8495) - 1, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.8885, (screenH * 0.6343) - 1, (screenW * 0.8495) - 1, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8495) - 1, screenH * 0.6630, screenW * 0.8885, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.8885, screenH * 0.6630, screenW * 0.8885, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8495, screenH * 0.6343, screenW * 0.0391, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.6722) - 1, (screenW * 0.8495) - 1, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.8885, (screenH * 0.6722) - 1, (screenW * 0.8495) - 1, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8495) - 1, screenH * 0.7009, screenW * 0.8885, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.8885, screenH * 0.7009, screenW * 0.8885, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8495, screenH * 0.6722, screenW * 0.0391, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8964) - 1, (screenH * 0.5963) - 1, (screenW * 0.8964) - 1, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, (screenH * 0.5963) - 1, (screenW * 0.8964) - 1, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8964) - 1, screenH * 0.6250, screenW * 0.9370, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, screenH * 0.6250, screenW * 0.9370, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8964, screenH * 0.5963, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8964) - 1, (screenH * 0.6343) - 1, (screenW * 0.8964) - 1, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, (screenH * 0.6343) - 1, (screenW * 0.8964) - 1, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8964) - 1, screenH * 0.6630, screenW * 0.9370, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, screenH * 0.6630, screenW * 0.9370, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8964, screenH * 0.6343, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8964) - 1, (screenH * 0.6722) - 1, (screenW * 0.8964) - 1, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, (screenH * 0.6722) - 1, (screenW * 0.8964) - 1, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8964) - 1, screenH * 0.7009, screenW * 0.9370, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, screenH * 0.7009, screenW * 0.9370, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8964, screenH * 0.6722, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.9432) - 1, (screenH * 0.5963) - 1, (screenW * 0.9432) - 1, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, (screenH * 0.5963) - 1, (screenW * 0.9432) - 1, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.9432) - 1, screenH * 0.6250, screenW * 0.9839, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, screenH * 0.6250, screenW * 0.9839, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.9432, screenH * 0.5963, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.9432) - 1, (screenH * 0.6343) - 1, (screenW * 0.9432) - 1, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, (screenH * 0.6343) - 1, (screenW * 0.9432) - 1, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.9432) - 1, screenH * 0.6630, screenW * 0.9839, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, screenH * 0.6630, screenW * 0.9839, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.9432, screenH * 0.6343, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.9432) - 1, (screenH * 0.6722) - 1, (screenW * 0.9432) - 1, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, (screenH * 0.6722) - 1, (screenW * 0.9432) - 1, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.9432) - 1, screenH * 0.7009, screenW * 0.9839, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, screenH * 0.7009, screenW * 0.9839, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.9432, screenH * 0.6722, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawText(\"\", 1630, 602, 1706, 634, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\"1\", screenW * 0.8490, screenH * 0.5574, screenW * 0.8885, screenH * 0.5870, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"2\", screenW * 0.8964, screenH * 0.5583, screenW * 0.9370, screenH * 0.5870, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"3\", screenW * 0.9432, screenH * 0.5583, screenW * 0.9828, screenH * 0.5880, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"4\", screenW * 0.8490, screenH * 0.5954, screenW * 0.8885, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"5\", screenW * 0.8964, screenH * 0.5963, screenW * 0.9370, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"5\", screenW * 0.8964, screenH * 0.5963, screenW * 0.9370, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"6\", screenW * 0.9432, screenH * 0.5954, screenW * 0.9828, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"7\", screenW * 0.8490, screenH * 0.6333, screenW * 0.8885, screenH * 0.6630, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"8\", screenW * 0.8964, screenH * 0.6343, screenW * 0.9370, screenH * 0.6630, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"8\", screenW * 0.8964, screenH * 0.6343, screenW * 0.9370, screenH * 0.6630, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"6\", screenW * 0.9432, screenH * 0.5954, screenW * 0.9828, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"9\", screenW * 0.9432, screenH * 0.6333, screenW * 0.9828, screenH * 0.6630, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"*\", screenW * 0.8490, screenH * 0.6713, screenW * 0.8885, screenH * 0.7009, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"0\", screenW * 0.8964, screenH * 0.6722, screenW * 0.9370, screenH * 0.7009, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"#\", screenW * 0.9432, screenH * 0.6713, screenW * 0.9828, screenH * 0.7009, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
string.len()
telszam = telszam..\"5\"-- persze változóba van az 5-ös:telszam = telszam..lenyomottgomb
function lap ()setElementData(localPlayer, \"mobillap\", 1)setElementData(localPlayer, \"telszam\", 0)endaddEventHandler(\"onClientResourceStart\", root, lap)local screenW, screenH = guiGetScreenSize() addEventHandler(\"onClientRender\", root, function()local lap = getElementData (localPlayer, \"mobillap\")telszam = getElementData (localPlayer, \"telszam\")showCursor(true)if lap == 0 thenoutputDebugString ( \"A telefon nincs megnyitva!\" )setElementData(localPlayer, \"mobillap\", 1)elseif lap == 1 then --kezdőoldaloutputDebugString ( \"1. lap\" ) dxDrawImage(screenW * 0.8490, screenH * 0.3333, 259, 522, \":hud/sonyspb1.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false)dxDrawImage(screenW * 0.8542, screenH * 0.3426, 40, 34, \":hud/kameraicon.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false)dxDrawImage(screenW * 0.8490, screenH * 0.7333, 49, 54, \":hud/hivasicon.png\", 0, 0, 0, tocolor(118, 38, 216, 255), false)elseif lap == 2 thentelszam = getElementData (localPlayer,\"telszam\")outputDebugString ( \"2. lap\" )dxDrawText(\"\"..telszam, screenW * 0.8630, screenH * 0.5074, screenW * 0.9667, screenH * 0.5444, tocolor(1, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, true, false, false) dxDrawRectangle(1648, 538, 0, 26, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.3426) - 1, (screenW * 0.8495) - 1, screenH * 0.7833, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, (screenH * 0.3426) - 1, (screenW * 0.8495) - 1, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8495) - 1, screenH * 0.7833, screenW * 0.9839, screenH * 0.7833, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, screenH * 0.7833, screenW * 0.9839, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8495, screenH * 0.3426, screenW * 0.1344, screenH * 0.4407, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8943) - 1, (screenH * 0.7389) - 1, (screenW * 0.8943) - 1, screenH * 0.7741, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, (screenH * 0.7389) - 1, (screenW * 0.8943) - 1, (screenH * 0.7389) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8943) - 1, screenH * 0.7741, screenW * 0.9370, screenH * 0.7741, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, screenH * 0.7741, screenW * 0.9370, (screenH * 0.7389) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8943, screenH * 0.7389, screenW * 0.0427, screenH * 0.0352, tocolor(255, 255, 255, 255), false) dxDrawText(\"Hivás\", screenW * 0.8938, screenH * 0.7389, screenW * 0.9370, screenH * 0.7741, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.3426) - 1, (screenW * 0.8495) - 1, screenH * 0.3778, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9156, (screenH * 0.3426) - 1, (screenW * 0.8495) - 1, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8495) - 1, screenH * 0.3778, screenW * 0.9156, screenH * 0.3778, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9156, screenH * 0.3778, screenW * 0.9156, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8495, screenH * 0.3426, screenW * 0.0661, screenH * 0.0352, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.9187) - 1, (screenH * 0.3426) - 1, (screenW * 0.9187) - 1, screenH * 0.3778, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, (screenH * 0.3426) - 1, (screenW * 0.9187) - 1, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.9187) - 1, screenH * 0.3778, screenW * 0.9839, screenH * 0.3778, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, screenH * 0.3778, screenW * 0.9839, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.9187, screenH * 0.3426, screenW * 0.0651, screenH * 0.0352, tocolor(255, 255, 255, 255), false) dxDrawText(\"Tárcsázás\", screenW * 0.8490, screenH * 0.3417, screenW * 0.9156, screenH * 0.3778, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"Névjegyek\", screenW * 0.9187, screenH * 0.3417, screenW * 0.9839, screenH * 0.3778, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.5583) - 1, (screenW * 0.8495) - 1, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.8885, (screenH * 0.5583) - 1, (screenW * 0.8495) - 1, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8495) - 1, screenH * 0.5870, screenW * 0.8885, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.8885, screenH * 0.5870, screenW * 0.8885, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8495, screenH * 0.5583, screenW * 0.0391, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8964) - 1, (screenH * 0.5583) - 1, (screenW * 0.8964) - 1, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, (screenH * 0.5583) - 1, (screenW * 0.8964) - 1, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8964) - 1, screenH * 0.5870, screenW * 0.9370, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, screenH * 0.5870, screenW * 0.9370, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8964, screenH * 0.5583, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.9432) - 1, (screenH * 0.5583) - 1, (screenW * 0.9432) - 1, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, (screenH * 0.5583) - 1, (screenW * 0.9432) - 1, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.9432) - 1, screenH * 0.5870, screenW * 0.9839, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, screenH * 0.5870, screenW * 0.9839, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.9432, screenH * 0.5583, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.5963) - 1, (screenW * 0.8495) - 1, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.8885, (screenH * 0.5963) - 1, (screenW * 0.8495) - 1, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8495) - 1, screenH * 0.6250, screenW * 0.8885, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.8885, screenH * 0.6250, screenW * 0.8885, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8495, screenH * 0.5963, screenW * 0.0391, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.6343) - 1, (screenW * 0.8495) - 1, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.8885, (screenH * 0.6343) - 1, (screenW * 0.8495) - 1, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8495) - 1, screenH * 0.6630, screenW * 0.8885, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.8885, screenH * 0.6630, screenW * 0.8885, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8495, screenH * 0.6343, screenW * 0.0391, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.6722) - 1, (screenW * 0.8495) - 1, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.8885, (screenH * 0.6722) - 1, (screenW * 0.8495) - 1, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8495) - 1, screenH * 0.7009, screenW * 0.8885, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.8885, screenH * 0.7009, screenW * 0.8885, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8495, screenH * 0.6722, screenW * 0.0391, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8964) - 1, (screenH * 0.5963) - 1, (screenW * 0.8964) - 1, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, (screenH * 0.5963) - 1, (screenW * 0.8964) - 1, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8964) - 1, screenH * 0.6250, screenW * 0.9370, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, screenH * 0.6250, screenW * 0.9370, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8964, screenH * 0.5963, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8964) - 1, (screenH * 0.6343) - 1, (screenW * 0.8964) - 1, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, (screenH * 0.6343) - 1, (screenW * 0.8964) - 1, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8964) - 1, screenH * 0.6630, screenW * 0.9370, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, screenH * 0.6630, screenW * 0.9370, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8964, screenH * 0.6343, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8964) - 1, (screenH * 0.6722) - 1, (screenW * 0.8964) - 1, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, (screenH * 0.6722) - 1, (screenW * 0.8964) - 1, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8964) - 1, screenH * 0.7009, screenW * 0.9370, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, screenH * 0.7009, screenW * 0.9370, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8964, screenH * 0.6722, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.9432) - 1, (screenH * 0.5963) - 1, (screenW * 0.9432) - 1, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, (screenH * 0.5963) - 1, (screenW * 0.9432) - 1, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.9432) - 1, screenH * 0.6250, screenW * 0.9839, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, screenH * 0.6250, screenW * 0.9839, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.9432, screenH * 0.5963, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.9432) - 1, (screenH * 0.6343) - 1, (screenW * 0.9432) - 1, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, (screenH * 0.6343) - 1, (screenW * 0.9432) - 1, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.9432) - 1, screenH * 0.6630, screenW * 0.9839, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, screenH * 0.6630, screenW * 0.9839, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.9432, screenH * 0.6343, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.9432) - 1, (screenH * 0.6722) - 1, (screenW * 0.9432) - 1, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, (screenH * 0.6722) - 1, (screenW * 0.9432) - 1, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.9432) - 1, screenH * 0.7009, screenW * 0.9839, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, screenH * 0.7009, screenW * 0.9839, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.9432, screenH * 0.6722, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawText(\"\", 1630, 602, 1706, 634, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\"1\", screenW * 0.8490, screenH * 0.5574, screenW * 0.8885, screenH * 0.5870, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"2\", screenW * 0.8964, screenH * 0.5583, screenW * 0.9370, screenH * 0.5870, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"3\", screenW * 0.9432, screenH * 0.5583, screenW * 0.9828, screenH * 0.5880, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"4\", screenW * 0.8490, screenH * 0.5954, screenW * 0.8885, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"5\", screenW * 0.8964, screenH * 0.5963, screenW * 0.9370, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"5\", screenW * 0.8964, screenH * 0.5963, screenW * 0.9370, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"6\", screenW * 0.9432, screenH * 0.5954, screenW * 0.9828, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"7\", screenW * 0.8490, screenH * 0.6333, screenW * 0.8885, screenH * 0.6630, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"8\", screenW * 0.8964, screenH * 0.6343, screenW * 0.9370, screenH * 0.6630, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"8\", screenW * 0.8964, screenH * 0.6343, screenW * 0.9370, screenH * 0.6630, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"6\", screenW * 0.9432, screenH * 0.5954, screenW * 0.9828, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"9\", screenW * 0.9432, screenH * 0.6333, screenW * 0.9828, screenH * 0.6630, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"*\", screenW * 0.8490, screenH * 0.6713, screenW * 0.8885, screenH * 0.7009, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"0\", screenW * 0.8964, screenH * 0.6722, screenW * 0.9370, screenH * 0.7009, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"#\", screenW * 0.9432, screenH * 0.6713, screenW * 0.9828, screenH * 0.7009, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)end -- lapos elágazás vége --ezek mindig itt vannak......dxDrawImage(screenW * 0.5740, screenH * 0.2065, 1377, 814, \":hud/sonysp.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawLine(1630 - 1, 846 - 1, 1630 - 1, 882, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(1889, 846 - 1, 1630 - 1, 846 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(1630 - 1, 882, 1889, 882, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(1889, 882, 1889, 846 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8490, screenH * 0.7833, 259, 36, tocolor(1, 0, 0, 255), false) dxDrawRectangle(screenW * 0.8490, screenH * 0.3324, 259, 11, tocolor(1, 1, 0, 200), false) dxDrawImage(1829, 846, 40, 33, \":hud/1.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(1649, 847, 40, 35, \":hud/2.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(1739, 846, 40, 36, \":hud/3.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false)--dxDrawImage(1625, 918, 268, 4, \":hud/sonyspgreenled.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false) --dxDrawImage(1625, 918, 268, 4, \":hud/sonysppurpleled.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false) --dxDrawImage(1625, 918, 268, 4, \":hud/sonyspredled.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false) end) function dobozbaVan(dX, dY, dSZ, dM, eX, eY) if(eX >= dX and eX <= dX+dSZ and eY >= dY and eY <= dY+dM) then return true else return false end end addEventHandler(\"onClientClick\", getRootElement(), function(gomb, allapot, absX, absY) local lap = getElementData (localPlayer, \"mobillap\") if allapot == \"down\" and gomb == \"left\" then if dobozbaVan(1739, 846, 40, 36, absX, absY) then setElementData(localPlayer, \"mobillap\", 1) elseif dobozbaVan(screenW * 0.8490, screenH * 0.7333, 49, 54, absX, absY) then setElementData(localPlayer, \"mobillap\", 2) elseif dobozbaVan(1649, 847, 40, 35, absX, absY) then setElementData(localPlayer, \"mobillap\", 1) elseif dobozbaVan (1649, 847, 40, 35, absX, absY) and lap == 1 then setElementData (localPlayer, \"mobillap\", 0) elseif dobozbaVan (screenW * 0.8490, screenH * 0.3324, 259, 11,absX,absY) then if lap == 1 or lap == 2 then setElementData (localPlayer, \"mobillap\", 3) elseif lap == 3 then setElementData (localPlayer, \"mobillap\", 1) elseif dobozbaVan (screenW * 0.8490, screenH * 0.5574, screenW * 0.8885, screenH * 0.5870,absX,absY) then --1 telszam = telszam..1 end end end end )
local screenW, screenH = guiGetScreenSize()local telszam = \"\"local lap = 2local phoneIsVisible = falseaddEventHandler(\"onClientRender\", root, function() if phoneIsVisible then if lap == 1 then --kezdőoldal outputDebugString(\"1. lap\") dxDrawImage(screenW * 0.8490, screenH * 0.3333, 259, 522, \":hud/sonyspb1.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(screenW * 0.8542, screenH * 0.3426, 40, 34, \":hud/kameraicon.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(screenW * 0.8490, screenH * 0.7333, 49, 54, \":hud/hivasicon.png\", 0, 0, 0, tocolor(118, 38, 216, 255), false) elseif lap == 2 then outputDebugString(\"2. lap\") dxDrawText(telszam, screenW * 0.8630, screenH * 0.5074, screenW * 0.9667, screenH * 0.5444, tocolor(1, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, true, false, false) dxDrawRectangle(1648, 538, 0, 26, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.3426) - 1, (screenW * 0.8495) - 1, screenH * 0.7833, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, (screenH * 0.3426) - 1, (screenW * 0.8495) - 1, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8495) - 1, screenH * 0.7833, screenW * 0.9839, screenH * 0.7833, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, screenH * 0.7833, screenW * 0.9839, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8495, screenH * 0.3426, screenW * 0.1344, screenH * 0.4407, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8943) - 1, (screenH * 0.7389) - 1, (screenW * 0.8943) - 1, screenH * 0.7741, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, (screenH * 0.7389) - 1, (screenW * 0.8943) - 1, (screenH * 0.7389) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8943) - 1, screenH * 0.7741, screenW * 0.9370, screenH * 0.7741, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, screenH * 0.7741, screenW * 0.9370, (screenH * 0.7389) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8943, screenH * 0.7389, screenW * 0.0427, screenH * 0.0352, tocolor(255, 255, 255, 255), false) dxDrawText(\"Hivás\", screenW * 0.8938, screenH * 0.7389, screenW * 0.9370, screenH * 0.7741, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.3426) - 1, (screenW * 0.8495) - 1, screenH * 0.3778, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9156, (screenH * 0.3426) - 1, (screenW * 0.8495) - 1, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8495) - 1, screenH * 0.3778, screenW * 0.9156, screenH * 0.3778, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9156, screenH * 0.3778, screenW * 0.9156, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8495, screenH * 0.3426, screenW * 0.0661, screenH * 0.0352, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.9187) - 1, (screenH * 0.3426) - 1, (screenW * 0.9187) - 1, screenH * 0.3778, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, (screenH * 0.3426) - 1, (screenW * 0.9187) - 1, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.9187) - 1, screenH * 0.3778, screenW * 0.9839, screenH * 0.3778, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, screenH * 0.3778, screenW * 0.9839, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.9187, screenH * 0.3426, screenW * 0.0651, screenH * 0.0352, tocolor(255, 255, 255, 255), false) dxDrawText(\"Tárcsázás\", screenW * 0.8490, screenH * 0.3417, screenW * 0.9156, screenH * 0.3778, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"Névjegyek\", screenW * 0.9187, screenH * 0.3417, screenW * 0.9839, screenH * 0.3778, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.5583) - 1, (screenW * 0.8495) - 1, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.8885, (screenH * 0.5583) - 1, (screenW * 0.8495) - 1, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8495) - 1, screenH * 0.5870, screenW * 0.8885, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.8885, screenH * 0.5870, screenW * 0.8885, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8495, screenH * 0.5583, screenW * 0.0391, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8964) - 1, (screenH * 0.5583) - 1, (screenW * 0.8964) - 1, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, (screenH * 0.5583) - 1, (screenW * 0.8964) - 1, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8964) - 1, screenH * 0.5870, screenW * 0.9370, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, screenH * 0.5870, screenW * 0.9370, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8964, screenH * 0.5583, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.9432) - 1, (screenH * 0.5583) - 1, (screenW * 0.9432) - 1, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, (screenH * 0.5583) - 1, (screenW * 0.9432) - 1, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.9432) - 1, screenH * 0.5870, screenW * 0.9839, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, screenH * 0.5870, screenW * 0.9839, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.9432, screenH * 0.5583, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.5963) - 1, (screenW * 0.8495) - 1, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.8885, (screenH * 0.5963) - 1, (screenW * 0.8495) - 1, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8495) - 1, screenH * 0.6250, screenW * 0.8885, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.8885, screenH * 0.6250, screenW * 0.8885, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8495, screenH * 0.5963, screenW * 0.0391, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.6343) - 1, (screenW * 0.8495) - 1, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.8885, (screenH * 0.6343) - 1, (screenW * 0.8495) - 1, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8495) - 1, screenH * 0.6630, screenW * 0.8885, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.8885, screenH * 0.6630, screenW * 0.8885, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8495, screenH * 0.6343, screenW * 0.0391, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.6722) - 1, (screenW * 0.8495) - 1, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.8885, (screenH * 0.6722) - 1, (screenW * 0.8495) - 1, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8495) - 1, screenH * 0.7009, screenW * 0.8885, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.8885, screenH * 0.7009, screenW * 0.8885, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8495, screenH * 0.6722, screenW * 0.0391, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8964) - 1, (screenH * 0.5963) - 1, (screenW * 0.8964) - 1, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, (screenH * 0.5963) - 1, (screenW * 0.8964) - 1, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8964) - 1, screenH * 0.6250, screenW * 0.9370, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, screenH * 0.6250, screenW * 0.9370, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8964, screenH * 0.5963, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8964) - 1, (screenH * 0.6343) - 1, (screenW * 0.8964) - 1, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, (screenH * 0.6343) - 1, (screenW * 0.8964) - 1, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8964) - 1, screenH * 0.6630, screenW * 0.9370, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, screenH * 0.6630, screenW * 0.9370, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8964, screenH * 0.6343, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8964) - 1, (screenH * 0.6722) - 1, (screenW * 0.8964) - 1, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, (screenH * 0.6722) - 1, (screenW * 0.8964) - 1, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.8964) - 1, screenH * 0.7009, screenW * 0.9370, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9370, screenH * 0.7009, screenW * 0.9370, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8964, screenH * 0.6722, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.9432) - 1, (screenH * 0.5963) - 1, (screenW * 0.9432) - 1, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, (screenH * 0.5963) - 1, (screenW * 0.9432) - 1, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.9432) - 1, screenH * 0.6250, screenW * 0.9839, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, screenH * 0.6250, screenW * 0.9839, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.9432, screenH * 0.5963, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.9432) - 1, (screenH * 0.6343) - 1, (screenW * 0.9432) - 1, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, (screenH * 0.6343) - 1, (screenW * 0.9432) - 1, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.9432) - 1, screenH * 0.6630, screenW * 0.9839, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, screenH * 0.6630, screenW * 0.9839, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.9432, screenH * 0.6343, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.9432) - 1, (screenH * 0.6722) - 1, (screenW * 0.9432) - 1, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, (screenH * 0.6722) - 1, (screenW * 0.9432) - 1, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.9432) - 1, screenH * 0.7009, screenW * 0.9839, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9839, screenH * 0.7009, screenW * 0.9839, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.9432, screenH * 0.6722, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false) dxDrawText(\"\", 1630, 602, 1706, 634, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\"1\", screenW * 0.8490, screenH * 0.5574, screenW * 0.8885, screenH * 0.5870, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"2\", screenW * 0.8964, screenH * 0.5583, screenW * 0.9370, screenH * 0.5870, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"3\", screenW * 0.9432, screenH * 0.5583, screenW * 0.9828, screenH * 0.5880, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"4\", screenW * 0.8490, screenH * 0.5954, screenW * 0.8885, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"5\", screenW * 0.8964, screenH * 0.5963, screenW * 0.9370, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"5\", screenW * 0.8964, screenH * 0.5963, screenW * 0.9370, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"6\", screenW * 0.9432, screenH * 0.5954, screenW * 0.9828, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"7\", screenW * 0.8490, screenH * 0.6333, screenW * 0.8885, screenH * 0.6630, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"8\", screenW * 0.8964, screenH * 0.6343, screenW * 0.9370, screenH * 0.6630, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"8\", screenW * 0.8964, screenH * 0.6343, screenW * 0.9370, screenH * 0.6630, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"6\", screenW * 0.9432, screenH * 0.5954, screenW * 0.9828, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"9\", screenW * 0.9432, screenH * 0.6333, screenW * 0.9828, screenH * 0.6630, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"*\", screenW * 0.8490, screenH * 0.6713, screenW * 0.8885, screenH * 0.7009, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"0\", screenW * 0.8964, screenH * 0.6722, screenW * 0.9370, screenH * 0.7009, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"#\", screenW * 0.9432, screenH * 0.6713, screenW * 0.9828, screenH * 0.7009, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) end -- lapos elágazás vége --ezek mindig itt vannak...... dxDrawImage(screenW * 0.5740, screenH * 0.2065, 1377, 814, \":hud/sonysp.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawLine(1630 - 1, 846 - 1, 1630 - 1, 882, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(1889, 846 - 1, 1630 - 1, 846 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(1630 - 1, 882, 1889, 882, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(1889, 882, 1889, 846 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.8490, screenH * 0.7833, 259, 36, tocolor(1, 0, 0, 255), false) dxDrawRectangle(screenW * 0.8490, screenH * 0.3324, 259, 11, tocolor(1, 1, 0, 200), false) dxDrawImage(1829, 846, 40, 33, \":hud/1.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(1649, 847, 40, 35, \":hud/2.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(1739, 846, 40, 36, \":hud/3.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false) --dxDrawImage(1625, 918, 268, 4, \":hud/sonyspgreenled.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false) --dxDrawImage(1625, 918, 268, 4, \":hud/sonysppurpleled.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false) --dxDrawImage(1625, 918, 268, 4, \":hud/sonyspredled.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false) endend)addEventHandler(\"onClientKey\", root, function(button, state) if button == \"m\" and state then -- egér showCursor(not isCursorShowing()) elseif button == \"l\" and state then -- telefon phoneIsVisible = not phoneIsVisible telszam = \"\" -- lenulláza, teszteléshez kell endend)addEventHandler(\"onClientClick\", root, function(gomb, allapot, absX, absY) if allapot == \"down\" and gomb == \"left\" then if lap == 2 then if dobozbaVan (screenW * 0.8490, screenH * 0.5574, screenW * 0.8885, screenH * 0.5870, absX, absY) then --1 telszam = telszam .. 1 elseif dobozbaVan (screenW * 0.8964, screenH * 0.5583, screenW * 0.9370, screenH * 0.5870, absX, absY) then --2 telszam = telszam .. 2 end end endend)function dobozbaVan(dX, dY, dSZ, dM, eX, eY) if (eX >= dX and eX <= dX+dSZ and eY >= dY and eY <= dY+dM) then return true else return false endend
De amúgy a gombokkal bajban leszel, mert ha így csinálod, egymásba fognak lógni.