Jump to content

خطأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأأ


z24d

Recommended Posts

function aAction ( type, action, admin, player, data, more ) 
    if ( aLogMessages[type] ) then 
        function aStripString ( string ) 
            string = tostring ( string ) 
            string = string.gsub ( string, "$admin", getPlayerName ( admin ) ) 
            string = string.gsub ( string, "$by_admin_4all", isAnonAdmin4All( admin )    and "" or " by " .. getPlayerName ( admin ) ) 
            string = string.gsub ( string, "$by_admin_4plr", isAnonAdmin4Victim( admin ) and "" or " by " .. getPlayerName ( admin ) ) 
            string = string.gsub ( string, "$data2", more or "" ) 
            if ( player ) then string = string.gsub ( string, "$player", getPlayerName ( player ) ) end 
            return tostring ( string.gsub ( string, "$data", data or "" ) ) 
        end 
        local node = aLogMessages[type][action] 
        if ( node ) then 
            local r, g, b = node["r"], node["g"], node["b"] 
            if ( node["all"] ) then exports["guimessages"]:outputServer (_root, aStripString ( node["all"] ), r, g, b ) end 
            if ( node["admin"] ) and ( admin ~= player ) then exports["guimessages"]:outputServer ( admin,aStripString ( node["admin"] ), r, g, b ) end 
            if ( node["player"] ) then exports["guimessages"]:outputServer ( player,aStripString ( node["player"] ), r, g, b ) end 
            if ( node["log"] ) then outputServerLog ( aStripString ( node["log"] ) ) end 
        end 
    end 
end 

؟؟ وين الغلط مايطلعلي شيء

Link to comment

حليت المشكلةة طيب لكن انا سويت لوحة وحطيت فيها لاعبين وانتقالات

ابي اذا كان مستخدم الشيك بوكس الي تحت ماحد يسويله وارب فهمتو كيف؟

Link to comment
addEventHandler("onClientGUIClick",root 
function () 
if source == TheCheck then 
if ( guiCheckBoxGetSelected(TheCheck) == true ) then 
setElementData(source,"DataCheck") 
end 
end 
end 
) 
addEventHandler("onClientGUIClick", teleportButton, function() 
local target = guiGridListGetItemText(teleportGridlist,guiGridListGetSelectedItem(teleportGridlist),1) 
    if target ~= -1 and target ~= false and target ~= nil then  local target = getPlayerFromName(target) 
    if not getElementData(target,"DataCheck") then 
        local x,y,z = getElementPosition( target ) 
        local x1,y1,z1 = getElementPosition ( localPlayer ) 
        setElementPosition ( localPlayer, x +1, y +1, z) 
        end 
    end 
end) 

Link to comment
addEventHandler( "onClientGUIClick", guiRoot, 
function() 
    if ( source == TheCheck ) then 
        local CheckData = getElementData( localPlayer, "DataCheck" ) 
        if ( guiCheckBoxGetSelected( source ) ) then 
            if ( not CheckData ) or ( CheckData ~= true ) then setElementData( localPlayer, "DataCheck", true ) end 
        else 
            if ( not CheckData ) or ( CheckData ~= false ) then setElementData( localPlayer, "DataCheck", false ) end 
        end 
    elseif ( source == teleportButton ) then 
        local SelectedItem = guiGridListGetSelectedItem( source ) 
        if ( SelectedItem ~= -1 ) then 
            local Target = getPlayerFromName( guiGridListGetItemText( source, SelectedItem, 1 ) ) 
            if ( Target ) then 
                local CheckData = getElementData( Target, "DataCheck" ) 
                if ( not CheckData ) or ( CheckData == false ) then 
                    local TargetX, TargetY, TargetZ = getElementPosition( Target ) 
                    setElementPosition( localPlayer, TargetX, TargetY, TargetZ + 2 ) 
                end 
            end 
        end 
    end 
end ) 

Link to comment

الكود شغال بس انا ما انتبهت ان السورس إلي انظغط عليه زر

المفروض يصير كذا

local addrow = guiGridListGetSelectedItem( teleportGridlist ) 
if ( addrow ~= -1 ) then 
    local Target = getPlayerFromName( guiGridListGetItemText( teleportGridlist, addrow, 1 ) ) 
    if ( Target ) then 
        local CheckData = getElementData( Target, "DataCheck" ) 
        if ( not CheckData ) or ( CheckData == false ) then 
            local TargetX, TargetY, TargetZ = getElementPosition( Target ) 
            setElementPosition( localPlayer, TargetX, TargetY, TargetZ + 2 ) 
        end 
    end 
end 

شيل الداتا حق عدم النقل إذا طفيت السكربت عشان الداتا ما تروح وتسبب مشاكل

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