z24d Posted November 7, 2015 Share Posted November 7, 2015 (edited) السلام عليكم الكود ماينتقل ضبطت فيه 50 الف مره ولسا ماضبط : | addEventHandler( "onClientGUIClick", TheCheck, function() if ( guiCheckBoxGetSelected( source ) ) then if not getElementData( Target, "MasterFaaaster" ) ~= true then setElementData( localPlayer, "MasterFaaaster", true ) end else if not getElementData( Target, "MasterFaaaster" ) ~= false then setElementData( localPlayer, "MasterFaaaster", false ) end end end ) addEventHandler( "onClientGUIClick", guiRoot, function() if ( source == teleportButton ) then local addrow = guiGridListGetSelectedItem( teleportGridlist ) if ( addrow ~= -1 ) then local Target = getPlayerFromName( guiGridListGetItemText( teleportGridlist, addrow, 1 ) ) if ( Target ) then if ( not getElementData( Target, "MasterFaaaster" ) ) or ( getElementData( Target, "MasterFaaaster" ) == false ) then local TargetX, TargetY, TargetZ = getElementPosition( Target ) guiSetEnabled(teleportWindow,false) fadeCamera(false) setTimer( setElementPosition ,1000,1, localPlayer, TargetX + 1, TargetY + 1, TargetZ ) setTimer(fadeCamera,1000,1,true) setTimer(guiSetVisible,600,1,teleportWindow,false) setTimer(showCursor,400,1,false) exports.guimessages:outputClient("Seccesfuly warp to "..getPlayerName(Target)..".",0,255,0) guiGridListClear( teleportGridlist ) setTimer(guiSetEnabled,1500,1,teleportWindow,true) else exports.guimessages:outputClient("This player closed warp.",255,0,0) end end end end end ) addEventHandler( "onClientGUIDoubleClick",teleportGridlist, function (player) local addrow = guiGridListGetSelectedItem( teleportGridlist ) if ( addrow ~= -1 ) then local Target = getPlayerFromName( guiGridListGetItemText( teleportGridlist, addrow, 1 ) ) if ( Target ) then local CheckData = getElementData( Target, "MasterFaaaster" ) if ( not CheckData ) or ( CheckData == false ) then local TargetX, TargetY, TargetZ = getElementPosition( Target ) guiSetEnabled(teleportWindow,false) fadeCamera(false) setTimer( setElementPosition ,1000,1, localPlayer, TargetX + 1, TargetY + 1, TargetZ ) setTimer(fadeCamera,1000,1,true) setTimer(guiSetVisible,600,1,teleportWindow,false) setTimer(showCursor,400,1,false) setTimer(guiSetEnabled,1500,1,teleportWindow,true) triggerServerEvent("WarpedTou",player,Target) exports.guimessages:outputClient("Seccesfuly warp to "..getPlayerName(Target)..".",0,255,0) guiGridListClear( teleportGridlist ) else exports.guimessages:outputClient("This player closed warp.",255,0,0) end end end end ) Edited November 7, 2015 by Guest Link to comment
z24d Posted November 7, 2015 Author Share Posted November 7, 2015 (edited) الحين تشوفه 95 % ان المشكلة بالداتا Edited November 7, 2015 by Guest Link to comment
z24d Posted November 7, 2015 Author Share Posted November 7, 2015 for i , player in pairs(getElementsByType("player")) do zPlayer = string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", "") local addrow = guiGridListAddRow( teleportGridlist ) guiGridListSetItemText(teleportGridlist,addrow,teleportColumn, zPlayer,false,false) end end end bindKey ( "F3", "down", open ) addEventHandler( "onClientGUIClick", TheCheck, function() if ( guiCheckBoxGetSelected( source ) ) then if not getElementData( Target, "MasterFaaaster" ) ~= true then setElementData( localPlayer, "MasterFaaaster", true ) end else if not getElementData( Target, "MasterFaaaster" ) ~= false then setElementData( localPlayer, "MasterFaaaster", false ) end end end ) addEventHandler( "onClientGUIClick", guiRoot, function() if ( source == teleportButton ) then local addrow = guiGridListGetSelectedItem( teleportGridlist ) if ( addrow ~= -1 ) then local Target = getPlayerFromName( guiGridListGetItemText( teleportGridlist, addrow, 1 ) ) if ( Target ) then if ( not getElementData( Target, "MasterFaaaster" ) ) or ( getElementData( Target, "MasterFaaaster" ) == false ) then local TargetX, TargetY, TargetZ = getElementPosition( Target ) guiSetEnabled(teleportWindow,false) fadeCamera(false) setTimer( setElementPosition ,1000,1, localPlayer, TargetX + 1, TargetY + 1, TargetZ ) setTimer(fadeCamera,1000,1,true) setTimer(guiSetVisible,600,1,teleportWindow,false) setTimer(showCursor,400,1,false) exports.guimessages:outputClient("Seccesfuly warp to "..getPlayerName(Target)..".",0,255,0) guiGridListClear( teleportGridlist ) setTimer(guiSetEnabled,1500,1,teleportWindow,true) else exports.guimessages:outputClient("This player closed warp.",255,0,0) end end end end end ) addEventHandler( "onClientGUIDoubleClick",teleportGridlist, function (player) local addrow = guiGridListGetSelectedItem( teleportGridlist ) if ( addrow ~= -1 ) then local Target = getPlayerFromName( guiGridListGetItemText( teleportGridlist, addrow, 1 ) ) if ( Target ) then local CheckData = getElementData( Target, "MasterFaaaster" ) if ( not CheckData ) or ( CheckData == false ) then local TargetX, TargetY, TargetZ = getElementPosition( Target ) guiSetEnabled(teleportWindow,false) fadeCamera(false) setTimer( setElementPosition ,1000,1, localPlayer, TargetX + 1, TargetY + 1, TargetZ ) setTimer(fadeCamera,1000,1,true) setTimer(guiSetVisible,600,1,teleportWindow,false) setTimer(showCursor,400,1,false) setTimer(guiSetEnabled,1500,1,teleportWindow,true) triggerServerEvent("WarpedTou",player,Target) exports.guimessages:outputClient("Seccesfuly warp to "..getPlayerName(Target)..".",0,255,0) guiGridListClear( teleportGridlist ) else exports.guimessages:outputClient("This player closed warp.",255,0,0) end end end end ) Link to comment
Rockyz Posted November 7, 2015 Share Posted November 7, 2015 for i , player in pairs(getElementsByType("player")) do zPlayer = string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", "") local addrow = guiGridListAddRow( teleportGridlist ) guiGridListSetItemText(teleportGridlist,addrow,teleportColumn, zPlayer,false,false) end bindKey ( "F3", "down", open ) addEventHandler ( "onClientGUIClick", TheCheck, function() if ( guiCheckBoxGetSelected( source ) ) then if not getElementData( Target, "MasterFaaaster" ) ~= true then setElementData( localPlayer, "MasterFaaaster", true ) end else if not getElementData( Target, "MasterFaaaster" ) ~= false then setElementData( localPlayer, "MasterFaaaster", false ) end end end,false ) addEventHandler( "onClientGUIClick", guiRoot, function() if ( source == teleportButton ) then local addrow = guiGridListGetSelectedItem( teleportGridlist ) if ( addrow ~= -1 ) then local Target = getPlayerFromName( guiGridListGetItemText( teleportGridlist, addrow, 1 ) ) if ( Target ) then if ( not getElementData( Target, "MasterFaaaster" ) ) or ( getElementData( Target, "MasterFaaaster" ) == false ) then local TargetX, TargetY, TargetZ = getElementPosition( Target ) guiSetEnabled(teleportWindow,false) fadeCamera(false) setTimer( setElementPosition ,1000,1, localPlayer, TargetX + 1, TargetY + 1, TargetZ ) setTimer(fadeCamera,1000,1,true) setTimer(guiSetVisible,600,1,teleportWindow,false) setTimer(showCursor,400,1,false) exports.guimessages:outputClient("Seccesfuly warp to "..getPlayerName(Target)..".",0,255,0) guiGridListClear( teleportGridlist ) setTimer(guiSetEnabled,1500,1,teleportWindow,true) else exports.guimessages:outputClient("This player closed warp.",255,0,0) end end end end end ) addEventHandler( "onClientGUIDoubleClick",teleportGridlist, function (player) local addrow = guiGridListGetSelectedItem( teleportGridlist ) if ( addrow ~= -1 ) then local Target = getPlayerFromName( guiGridListGetItemText( teleportGridlist, addrow, 1 ) ) if ( Target ) then local CheckData = getElementData( Target, "MasterFaaaster" ) if ( not CheckData ) or ( CheckData == false ) then local TargetX, TargetY, TargetZ = getElementPosition( Target ) guiSetEnabled(teleportWindow,false) fadeCamera(false) setTimer( setElementPosition ,1000,1, localPlayer, TargetX + 1, TargetY + 1, TargetZ ) setTimer(fadeCamera,1000,1,true) setTimer(guiSetVisible,600,1,teleportWindow,false) setTimer(showCursor,400,1,false) setTimer(guiSetEnabled,1500,1,teleportWindow,true) triggerServerEvent("WarpedTou",player,Target) exports.guimessages:outputClient("Seccesfuly warp to "..getPlayerName(Target)..".",0,255,0) guiGridListClear( teleportGridlist ) else exports.guimessages:outputClient("This player closed warp.",255,0,0) end end end end,false ) bindKey ( "F3", "down", open ) + مافي فنكشن في الكود اسمه open Link to comment
z24d Posted November 7, 2015 Author Share Posted November 7, 2015 فوق حق فتح اللوحة وما ينتقل if not getElementData( Target, "MasterFaaaster" ) ~= true then setElementData( localPlayer, "MasterFaaaster", true ) end else if not getElementData( Target, "MasterFaaaster" ) ~= false then setElementData( localPlayer, "MasterFaaaster", false ) end يقول Bad Agrumants getElementData Link to comment
Rockyz Posted November 7, 2015 Share Posted November 7, 2015 سطر 11 و 13 Target ماهي معرفة Link to comment
z24d Posted November 7, 2015 Author Share Posted November 7, 2015 Target = getPlayerFromName( guiGridListGetItemText( teleportGridlist, addrow, 1 ) ) Link to comment
Rockyz Posted November 7, 2015 Share Posted November 7, 2015 addEventHandler ( "onClientGUIClick", TheCheck, function() if ( guiCheckBoxGetSelected( source ) ) then if not getElementData( Target, "MasterFaaaster" ) ~= true then setElementData( localPlayer, "MasterFaaaster", true ) end else if not getElementData( Target, "MasterFaaaster" ) ~= false then setElementData( localPlayer, "MasterFaaaster", false ) end end end,false ) ماشوف التعريف التعريف تحت الكود مايقرا من تحت Link to comment
z24d Posted November 7, 2015 Author Share Posted November 7, 2015 EDIT: هذا الكود يطلع لونه اسود ليه : | function dxDrawMaster(text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI,colorCoded) dxDrawText(text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI,true) dxDrawText( string.gsub(text, "#%x%x%x%x%x%x", ""), x - 1, y - 1, w - 1, h - 1, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, postGUI) dxDrawText( string.gsub(text, "#%x%x%x%x%x%x", ""), x + 1, y - 1, w + 1, h - 1, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, postGUI) dxDrawText( string.gsub(text, "#%x%x%x%x%x%x", ""), x - 1, y + 1, w - 1, h + 1, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, postGUI) dxDrawText( string.gsub(text, "#%x%x%x%x%x%x", ""), x + 1, y + 1, w + 1, h + 1, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, postGUI) end Link to comment
#CroSs Posted November 7, 2015 Share Posted November 7, 2015 if not getElementData( Target, "MasterFaaaster" ) ~= true then setElementData( localPlayer, "MasterFaaaster", true ) end else if not getElementData( Target, "MasterFaaaster" ) ~= false then setElementData( localPlayer, "MasterFaaaster", false ) end يقول Bad Agrumants getElementData التحقق تركيبه غلط وثانياً افترض كان تركيبه صح خلنا ناخذ على التحقق الأول و الداتا عنده ترو إذا مو "ترو لا يساوي ترو" أ "ترو لا يساوي ترو" = false مو فولس = ترو يصير التحقق بالأخير if ( true ) then --- الحين هو عنده الداتا ترو تحط له ترو ؟؟ end تمعن شوي في كلامي ذذ Link to comment
' A F . Posted November 7, 2015 Share Posted November 7, 2015 مآعليش لو الرد متأخر , لأكن تقدر تختصر كذا addEventHandler('onClientGUIClick',resourceRoot, function ( ) setElementData ( getLocalPlayer() , 'MasterFaaaster' , guiCheckBoxGetSelected ( source ) ) end) Link to comment
z24d Posted November 7, 2015 Author Share Posted November 7, 2015 منور برو ينطيك العافية + اذا انضغط ال Clomun تتلخبط الاسطر بالقريد لست مالها حل؟ Link to comment
' A F . Posted November 7, 2015 Share Posted November 7, 2015 العفو حيإك الله , م اتوقع ان لها حل ذذ Link to comment
z24d Posted November 7, 2015 Author Share Posted November 7, 2015 موجوده بطارة وقراند العرب Link to comment
MoDeR2014 Posted November 7, 2015 Share Posted November 7, 2015 منور برو ينطيك العافية+ اذا انضغط ال Clomun تتلخبط الاسطر بالقريد لست مالها حل؟ guiGridListSetSortingEnabled مثال guiGridListSetSortingEnabled(gridlist, false); كذا بتعطل ترتيب القريد ليست لما ينضغط على الكولمن عشان ما تتلخبط على قولتك ذذ 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