Jump to content

طلب****************************


z24d

Recommended Posts

السلام عليكم

الكود ماينتقل ضبطت فيه 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 by Guest
Link to comment
  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

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

فوق حق فتح اللوحة

وما ينتقل

            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
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 
) 

ماشوف التعريف :-k

التعريف تحت

الكود مايقرا من تحت

Link to comment

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
            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
منور برو ينطيك العافية

+

اذا انضغط ال

Clomun تتلخبط الاسطر بالقريد لست مالها حل؟

guiGridListSetSortingEnabled 

مثال

guiGridListSetSortingEnabled(gridlist, false); 

كذا بتعطل ترتيب القريد ليست لما ينضغط على الكولمن عشان ما تتلخبط على قولتك ذذ

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...