Bo7meeeD Posted January 5, 2013 Share Posted January 5, 2013 (edited) السلام عليكم والرححمة شباب عندي مشكله اذا وقف الاعب ع الماركر تطلع النافذه حق كل اللي في السيرفر وش الحل ؟ وشككرا كلنت GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Progress = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(208,112,375,381,"",false) guiSetVisible ( GUIEditor_Window[1] , false ) GUIEditor_Memo[1] = guiCreateMemo(11,27,346,62,"prees take job to start the job .",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(10,327,351,45,"Close",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(10,275,351,45,"Take Job",false,GUIEditor_Window[1]) GUIEditor_Progress[1] = guiCreateProgressBar(213,545,398,53,false) guiSetVisible ( GUIEditor_Progress[1] , false ) GUIEditor_Label[1] = guiCreateLabel(263,200,331,221,"you're got 2000$",false) guiSetVisible ( GUIEditor_Label[1] , false ) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) guiSetFont(GUIEditor_Label[1],"sa-gothic") GUIEditor_Label[2] = guiCreateLabel(323,235,277,65,"wait",false) guiSetVisible ( GUIEditor_Label[2] , false ) guiLabelSetColor(GUIEditor_Label[2],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[2],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[2],"left",false) guiSetFont(GUIEditor_Label[2],"sa-gothic") marker1 = createMarker ( -1017.2951660156, -682.72064208984, 31.0078125, "cylinder", 1.5, 255, 255, 0, 170 ) boTrky = createBlipAttachedTo ( marker1, 56 ) addEventHandler ( "onClientGUIClick", root, function () if ( source == GUIEditor_Button[2] ) then triggerServerEvent ( "onHit", localPlayer ) triggerServerEvent ( "BB", localPlayer ) marker2 = createMarker ( -1031.7609863281, -648.3388671875, 31.0078125, "cylinder", 5, 255, 255, 0, 170 ) guiSetVisible ( GUIEditor_Window[1] , false ) showCursor ( false ) end end ) ------------------ addEventHandler ( "onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then guiSetVisible ( GUIEditor_Window[1] , false ) showCursor ( false ) end end ) ------------------ addEventHandler ( "onClientMarkerHit", getRootElement(), function () if ( source == marker1 ) then guiSetVisible ( GUIEditor_Window[1] , true ) showCursor ( true ) end end ) ----------------- addEventHandler ( "onClientMarkerHit", getRootElement(), function () if ( source == marker2 or source == marker4 ) then guiSetVisible ( GUIEditor_Progress[1] , true ) guiSetVisible ( GUIEditor_Label[2] , true ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait.. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait... " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait.. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait... " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait.. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait... " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait.. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait... " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait.. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait... " ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) showCursor ( true ) showChat ( false ) fadeCamera ( false ) setTimer ( UpgradeBar, 100, 0 ) setTimer ( function() guiSetVisible ( GUIEditor_Label[2] , false ) guiSetVisible ( GUIEditor_Progress[1] , false ) showCursor ( false ) destroyElement(marker2) destroyElement(marker4) destroyElement(blip9) marker3 = createMarker ( -229.37934875488, -219.80139160156, 1.3773846626282, "cylinder", 5, 255, 255, 0, 170 ) blip = createBlipAttachedTo(marker3, 51) showChat ( true ) fadeCamera ( true ) end, 12000, 1 ) end end ) function UpgradeBar ( ) guiProgressBarSetProgress ( GUIEditor_Progress[1], guiProgressBarGetProgress ( GUIEditor_Progress[1] ) + 1 ) end function UpgradeBar2 () guiProgressBarSetProgress ( GUIEditor_Progress[1], guiProgressBarGetProgress ( GUIEditor_Progress[1] ) - 20 ) end ------------------ addEventHandler ( "onClientMarkerHit", getRootElement(), function () if ( source == marker3 ) then guiSetVisible ( GUIEditor_Label[1] , true ) playSound('arm.mp3') destroyElement(marker3) destroyElement(blip) triggerServerEvent ( "onHit2", localPlayer ) CreateMarker4 () setTimer ( function() guiSetVisible ( GUIEditor_Label[1] , false ) end, 4000, 1 ) end end ) ----------------- function CreateMarker4 () marker4 = createMarker ( -1031.7609863281, -648.3388671875, 31.0078125, "cylinder", 5, 255, 255, 0, 170 ) blip9 = createBlipAttachedTo(marker4, 51) end سيرفر addEvent ( "onHit", true ) addEventHandler( "onHit", root, function () setPedSkin ( source, 202 ) setElementVisibleTo ( marker2, root, false ) setElementVisibleTo ( marker2, source, true ) end ) vehicle = {} addEvent ( "BB", true ) addEventHandler ( "BB", root, function() if getElementType(source) == "player" and not isPedInVehicle(source) then if isElement(vehicle[source]) then destroyElement(vehicle[source]) vehicle[source] = nil end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(403, x+math.random(-5,5), y, z) if vehicle[source] then warpPedIntoVehicle(source, vehicle[source]) end end end ) addEvent ( "onHit2", true ) addEventHandler( "onHit2", root, function () givePlayerMoney ( source, 2000 ) end ) Edited January 5, 2013 by Guest Link to comment
===|OSAMA|=== Posted January 5, 2013 Share Posted January 5, 2013 السلام عليكم والرححمة شباب عندي مشكله اذا وقف الاعب ع الماركر تطلع النافذه حق كل اللي في السيرفر وش الحل ؟ وشككرا كلنت GUIEditor_Label = {} GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Edit = {} GUIEditor_Label[1] = guiCreateLabel(218,558,387,41,"",false) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) GUIEditor_Window[1] = guiCreateWindow(221,83,310,341,"",false) guiSetVisible ( GUIEditor_Window[1] , false ) GUIEditor_Edit[1] = guiCreateEdit(10,25,287,47,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(9,295,126,35,"Send Text",false,GUIEditor_Window[1]) close = guiCreateButton(173,294,126,35,"Close",false,GUIEditor_Window[1]) font = guiCreateFont("SOSO.ttf", 12) addEvent ( "showWindow", true ) addEventHandler ( "showWindow", root, function ( ) guiSetVisible ( GUIEditor_Window[1], true ) showCursor ( true ) end ) addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor_Button[1] ) then local text = guiGetText(GUIEditor_Edit[1]) triggerServerEvent ( "sendText", localPlayer, text ) elseif ( source == close ) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor ( false ) end end ) addEvent ( "returnText", true ) addEventHandler ( "returnText", root, function ( text ) guiSetText ( GUIEditor_Label[1], " admin : "..text ) guiSetFont(GUIEditor_Label[1], font) guiLabelSetColor ( GUIEditor_Label[1], 255, 0, 0 ) guiSetVisible ( GUIEditor_Window[1], false ) showCursor ( false ) setTimer ( function() guiSetVisible ( GUIEditor_Label[1], false ) end, 30000, 1 ) end ) اطرح كود السيرفر حق الماركر # Link to comment
Bo7meeeD Posted January 5, 2013 Author Share Posted January 5, 2013 السلام عليكم والرححمة شباب عندي مشكله اذا وقف الاعب ع الماركر تطلع النافذه حق كل اللي في السيرفر وش الحل ؟ وشككرا كلنت GUIEditor_Label = {} GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Edit = {} GUIEditor_Label[1] = guiCreateLabel(218,558,387,41,"",false) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) GUIEditor_Window[1] = guiCreateWindow(221,83,310,341,"",false) guiSetVisible ( GUIEditor_Window[1] , false ) GUIEditor_Edit[1] = guiCreateEdit(10,25,287,47,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(9,295,126,35,"Send Text",false,GUIEditor_Window[1]) close = guiCreateButton(173,294,126,35,"Close",false,GUIEditor_Window[1]) font = guiCreateFont("SOSO.ttf", 12) addEvent ( "showWindow", true ) addEventHandler ( "showWindow", root, function ( ) guiSetVisible ( GUIEditor_Window[1], true ) showCursor ( true ) end ) addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor_Button[1] ) then local text = guiGetText(GUIEditor_Edit[1]) triggerServerEvent ( "sendText", localPlayer, text ) elseif ( source == close ) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor ( false ) end end ) addEvent ( "returnText", true ) addEventHandler ( "returnText", root, function ( text ) guiSetText ( GUIEditor_Label[1], " admin : "..text ) guiSetFont(GUIEditor_Label[1], font) guiLabelSetColor ( GUIEditor_Label[1], 255, 0, 0 ) guiSetVisible ( GUIEditor_Window[1], false ) showCursor ( false ) setTimer ( function() guiSetVisible ( GUIEditor_Label[1], false ) end, 30000, 1 ) end ) اطرح كود السيرفر حق الماركر # آسف الكود اللي حطيته قبل شوي خطأ عدلته وحطيت السيرفر Link to comment
TAPL Posted January 5, 2013 Share Posted January 5, 2013 GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Progress = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(208,112,375,381,"",false) guiSetVisible ( GUIEditor_Window[1] , false ) GUIEditor_Memo[1] = guiCreateMemo(11,27,346,62,"prees take job to start the job .",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(10,327,351,45,"Close",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(10,275,351,45,"Take Job",false,GUIEditor_Window[1]) GUIEditor_Progress[1] = guiCreateProgressBar(213,545,398,53,false) guiSetVisible ( GUIEditor_Progress[1] , false ) GUIEditor_Label[1] = guiCreateLabel(263,200,331,221,"you're got 2000$",false) guiSetVisible ( GUIEditor_Label[1] , false ) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) guiSetFont(GUIEditor_Label[1],"sa-gothic") GUIEditor_Label[2] = guiCreateLabel(323,235,277,65,"wait",false) guiSetVisible ( GUIEditor_Label[2] , false ) guiLabelSetColor(GUIEditor_Label[2],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[2],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[2],"left",false) guiSetFont(GUIEditor_Label[2],"sa-gothic") marker1 = createMarker ( -1017.2951660156, -682.72064208984, 31.0078125, "cylinder", 1.5, 255, 255, 0, 170 ) boTrky = createBlipAttachedTo ( marker1, 56 ) addEventHandler ( "onClientGUIClick", root, function () if ( source == GUIEditor_Button[2] ) then triggerServerEvent ( "onHit", localPlayer ) triggerServerEvent ( "BB", localPlayer ) marker2 = createMarker ( -1031.7609863281, -648.3388671875, 31.0078125, "cylinder", 5, 255, 255, 0, 170 ) guiSetVisible ( GUIEditor_Window[1] , false ) showCursor ( false ) end end ) ------------------ addEventHandler ( "onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then guiSetVisible ( GUIEditor_Window[1] , false ) showCursor ( false ) end end ) ------------------ addEventHandler ( "onClientMarkerHit", getRootElement(), function (player) if player ~= localPlayer then return end if ( source == marker1 ) then guiSetVisible ( GUIEditor_Window[1] , true ) showCursor ( true ) end end ) ----------------- addEventHandler ( "onClientMarkerHit", getRootElement(), function (player) if player ~= localPlayer then return end if ( source == marker2 or source == marker4 ) then guiSetVisible ( GUIEditor_Progress[1] , true ) guiSetVisible ( GUIEditor_Label[2] , true ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait.. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait... " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait.. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait... " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait.. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait... " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait.. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait... " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait.. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait... " ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) showCursor ( true ) showChat ( false ) fadeCamera ( false ) setTimer ( UpgradeBar, 100, 0 ) setTimer ( function() guiSetVisible ( GUIEditor_Label[2] , false ) guiSetVisible ( GUIEditor_Progress[1] , false ) showCursor ( false ) destroyElement(marker2) destroyElement(marker4) destroyElement(blip9) marker3 = createMarker ( -229.37934875488, -219.80139160156, 1.3773846626282, "cylinder", 5, 255, 255, 0, 170 ) blip = createBlipAttachedTo(marker3, 51) showChat ( true ) fadeCamera ( true ) end, 12000, 1 ) end end ) function UpgradeBar ( ) guiProgressBarSetProgress ( GUIEditor_Progress[1], guiProgressBarGetProgress ( GUIEditor_Progress[1] ) + 1 ) end function UpgradeBar2 () guiProgressBarSetProgress ( GUIEditor_Progress[1], guiProgressBarGetProgress ( GUIEditor_Progress[1] ) - 20 ) end ------------------ addEventHandler ( "onClientMarkerHit", getRootElement(), function (player) if player ~= localPlayer then return end if ( source == marker3 ) then guiSetVisible ( GUIEditor_Label[1] , true ) playSound('arm.mp3') destroyElement(marker3) destroyElement(blip) triggerServerEvent ( "onHit2", localPlayer ) CreateMarker4 () setTimer ( function() guiSetVisible ( GUIEditor_Label[1] , false ) end, 4000, 1 ) end end ) ----------------- function CreateMarker4 () marker4 = createMarker ( -1031.7609863281, -648.3388671875, 31.0078125, "cylinder", 5, 255, 255, 0, 170 ) blip9 = createBlipAttachedTo(marker4, 51) end Link to comment
abu5lf Posted January 5, 2013 Share Posted January 5, 2013 (edited) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait.. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait... " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait.. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait... " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait.. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait... " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait.. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait... " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait.. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait... " ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) ^ هذا الكود يمديك تختصره كذا : i = 0 setTimer( function( ) i = ( i + 1 ) guiSetText( GUIEditor_Label[2], 'wait'.. string.rep( '.', i ) ) if ( i == 3 ) then i = 0 end end, 500, 20 ) + onClientGUIClick - مكرر الايفينت كم مرة ؟؟ يمديك تختصره في واحد Edited January 5, 2013 by Guest Link to comment
Bo7meeeD Posted January 5, 2013 Author Share Posted January 5, 2013 onClientGUIClick - مكرر الايفينت كم مرة ؟؟ يمديك تختصره في واحد مشكووؤر اخوي تابل + عارف بس كذا اوضح لي اقدر اسويها بـ elseif Link to comment
Blaawee Posted January 5, 2013 Share Posted January 5, 2013 setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait.. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait... " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait.. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait... " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait.. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait... " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait.. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait... " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait.. " ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait... " ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) end, 500, 1 ) ^ هذا الكود يمديك تختصره كذا : i = 0 setTimer( function( ) i = ( i + 1 ) guiSetText( GUIEditor_Label[2], 'wait'.. string.rep( '.', i ) ) if ( i == 3 ) then i = 0 end end, 500, 20 ) + onClientGUIClick - مكرر الايفينت كم مرة ؟؟ يمديك تختصره في واحد و يمديه يختصره كذآ ^^ points = { ".", "..", "...", "....", ".", "..", "...", "...." } addEventHandler ( "onClientMarkerHit", root, function( player ) if player ~= localPlayer then return end if ( source == marker2 or source == marker4 ) then guiSetVisible ( GUIEditor_Progress[1] , true ) guiSetVisible ( GUIEditor_Label[2] , true ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait " .. points[ math.random( 1, 8 ) ] ) end, 500, 8 ) showCursor ( true ) showChat ( false ) fadeCamera ( false ) setTimer ( UpgradeBar, 100, 0 ) setTimer ( function( ) guiSetVisible ( GUIEditor_Label[2] , false ) guiSetVisible ( GUIEditor_Progress[1] , false ) showCursor ( false ) destroyElement(marker2) destroyElement(marker4) destroyElement(blip9) marker3 = createMarker ( -229.37934875488, -219.80139160156, 1.3773846626282, "cylinder", 5, 255, 255, 0, 170 ) blip = createBlipAttachedTo(marker3, 51) showChat ( true ) fadeCamera ( true ) end, 12000, 1 ) end end ) Link to comment
Bo7meeeD Posted January 5, 2013 Author Share Posted January 5, 2013 مشكؤؤر شباب ع الإفادة Link to comment
abu5lf Posted January 5, 2013 Share Posted January 5, 2013 و يمديه يختصره كذآ ^^ points = { ".", "..", "...", "....", ".", "..", "...", "...." } addEventHandler ( "onClientMarkerHit", root, function( player ) if player ~= localPlayer then return end if ( source == marker2 or source == marker4 ) then guiSetVisible ( GUIEditor_Progress[1] , true ) guiSetVisible ( GUIEditor_Label[2] , true ) setTimer ( function() guiSetText ( GUIEditor_Label[2], " wait " .. points[ math.random( 1, 8 ) ] ) end, 500, 8 ) showCursor ( true ) showChat ( false ) fadeCamera ( false ) setTimer ( UpgradeBar, 100, 0 ) setTimer ( function( ) guiSetVisible ( GUIEditor_Label[2] , false ) guiSetVisible ( GUIEditor_Progress[1] , false ) showCursor ( false ) destroyElement(marker2) destroyElement(marker4) destroyElement(blip9) marker3 = createMarker ( -229.37934875488, -219.80139160156, 1.3773846626282, "cylinder", 5, 255, 255, 0, 170 ) blip = createBlipAttachedTo(marker3, 51) showChat ( true ) fadeCamera ( true ) end, 12000, 1 ) end end ) لا هو مايبيها عشوائية يبيها بالتدريج wait. wait.. wait... Link to comment
Bo7meeeD Posted January 5, 2013 Author Share Posted January 5, 2013 (edited) شباب ابغى كود تسريع الاعب مو تسريع اللعبة...وشكرا Edited January 5, 2013 by Guest Link to comment
abu5lf Posted January 5, 2013 Share Posted January 5, 2013 شباب اغبى كود تسريع الاعب مو تسريع اللعبة...وشكرا اغبى هههههههههههههه setGameSpeed Link to comment
Bo7meeeD Posted January 5, 2013 Author Share Posted January 5, 2013 شباب اغبى كود تسريع الاعب مو تسريع اللعبة...وشكرا اغبى هههههههههههههه setGameSpeed ههههه ههذا لتسريع لالعبة مو للاعب Link to comment
abu5lf Posted January 5, 2013 Share Posted January 5, 2013 شباب اغبى كود تسريع الاعب مو تسريع اللعبة...وشكرا اغبى هههههههههههههه setGameSpeed ههههه ههذا لتسريع لالعبة مو للاعب اذا حطيته كلنت يصير للأعب بس شف الموضوع هذا : viewtopic.php?f=119&t=50118&p=490309&hilit=setGameSpeed#p490309 Link to comment
Bo7meeeD Posted January 5, 2013 Author Share Posted January 5, 2013 اذا حطيته كلنت يصير للأعب بس شف الموضوع هذا : viewtopic.php?f=119&t=50118&p=490309&hilit=setGameSpeed#p490309 يسلمؤؤ ي كنق Link to comment
Bo7meeeD Posted January 5, 2013 Author Share Posted January 5, 2013 المشكلة انك تقدر تحدد الثنين كيف اقدر اعدلها Checkbox شباب انا مسوي بمعنى اذا حددت واحد يروح التديد عن الاول؟ وآسف ع الإطاله Link to comment
iMr.Dawix~# Posted January 5, 2013 Share Posted January 5, 2013 المشكلة انك تقدر تحدد الثنين كيف اقدر اعدلها Checkbox شباب انا مسوي بمعنى اذا حددت واحد يروح التديد عن الاول؟ وآسف ع الإطاله guiCreateComboBox Link to comment
iPrestege Posted January 5, 2013 Share Posted January 5, 2013 guiSetEnabled Event : "OnClientGUIClick" Link to comment
Bo7meeeD Posted January 5, 2013 Author Share Posted January 5, 2013 guiSetEnabled Event : "OnClientGUIClick" مو هذا قصدي انا جربت اللي قلت لي صار اذا ضغط ع الأول ما يقدر يضغط الثاني اللي ابيه اذا ضغط ع الاول يروح التحديد عن الاول ! Link to comment
iMr.Dawix~# Posted January 5, 2013 Share Posted January 5, 2013 ComboBox استخدم حط اثنين وكل ما تضغط ع واحد يروح التحديد عن الثاني بدون اكواد Link to comment
Bo7meeeD Posted January 5, 2013 Author Share Posted January 5, 2013 ComboBox استخدم حط اثنين وكل ما تضغط ع واحد يروح التحديد عن الثاني بدون اكواد ما فهمت وش ذا اصلا هذا كودي شوفه addEventHandler ( "onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then if(guiCheckBoxGetSelected(GUIEditor_Checkbox[2]))then guiCheckBoxSetSelected (GUIEditor_Checkbox[2], true ) triggerServerEvent ( "setPedStats2", localPlayer ) setTimer ( triggerServerEvent, 5000, 1, "setPedStats",localPlayer ) guiSetVisible ( GUIEditor_Label[3], true ) elseif( source == GUIEditor_Button[2] ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor (false ) elseif ( source == GUIEditor_Button[1] ) then if(guiCheckBoxGetSelected(GUIEditor_Checkbox[1]))then guiCheckBoxSetSelected (GUIEditor_Checkbox[1], true ) setGameSpeed(tonumber(1.5)) setTimer(setGameSpeed,60000,1,1) end end end end ) Link to comment
iPrestege Posted January 5, 2013 Share Posted January 5, 2013 guiSetEnabled Event : "OnClientGUIClick" مو هذا قصدي انا جربت اللي قلت لي صار اذا ضغط ع الأول ما يقدر يضغط الثاني اللي ابيه اذا ضغط ع الاول يروح التحديد عن الاول ! اعتقد قصدك كذا : addEventHandler ( "onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then if(guiCheckBoxGetSelected(GUIEditor_Checkbox[2]))then guiCheckBoxSetSelected (GUIEditor_Checkbox[2], true ) triggerServerEvent ( "setPedStats2", localPlayer ) setTimer ( triggerServerEvent, 5000, 1, "setPedStats",localPlayer ) guiSetVisible ( GUIEditor_Label[3], true ) guiSetEnabled ( GUIEditor_Checkbox[2], false ) elseif( source == GUIEditor_Button[2] ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor (false ) elseif ( source == GUIEditor_Button[1] ) then if(guiCheckBoxGetSelected(GUIEditor_Checkbox[1]))then guiCheckBoxSetSelected (GUIEditor_Checkbox[1], true ) guiSetEnabled ( GUIEditor_Checkbox[1], false ) setGameSpeed(tonumber(1.5)) setTimer(setGameSpeed,60000,1,1) end end end end ) Link to comment
Bo7meeeD Posted January 5, 2013 Author Share Posted January 5, 2013 guiSetEnabled Event : "OnClientGUIClick" مو هذا قصدي انا جربت اللي قلت لي صار اذا ضغط ع الأول ما يقدر يضغط الثاني اللي ابيه اذا ضغط ع الاول يروح التحديد عن الاول ! اعتقد قصدك كذا : addEventHandler ( "onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then if(guiCheckBoxGetSelected(GUIEditor_Checkbox[2]))then guiCheckBoxSetSelected (GUIEditor_Checkbox[2], true ) triggerServerEvent ( "setPedStats2", localPlayer ) setTimer ( triggerServerEvent, 5000, 1, "setPedStats",localPlayer ) guiSetVisible ( GUIEditor_Label[3], true ) guiSetEnabled ( GUIEditor_Checkbox[2], false ) elseif( source == GUIEditor_Button[2] ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor (false ) elseif ( source == GUIEditor_Button[1] ) then if(guiCheckBoxGetSelected(GUIEditor_Checkbox[1]))then guiCheckBoxSetSelected (GUIEditor_Checkbox[1], true ) guiSetEnabled ( GUIEditor_Checkbox[1], false ) setGameSpeed(tonumber(1.5)) setTimer(setGameSpeed,60000,1,1) end end end end ) لا هذا اللي سويته وقلتلك خطأ Link to comment
iMr.Dawix~# Posted January 5, 2013 Share Posted January 5, 2013 guiCreateComboBox حط guiCreateCheckbox بدل Link to comment
iPrestege Posted January 5, 2013 Share Posted January 5, 2013 وش اللي تبية تبي لآاختار الزر مرهـَ يلغي التشيك بـوكـس ! ؟ Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now