z24d Posted October 14, 2015 Share Posted October 14, 2015 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
z24d Posted October 14, 2015 Author Share Posted October 14, 2015 حليت المشكلةة طيب لكن انا سويت لوحة وحطيت فيها لاعبين وانتقالات ابي اذا كان مستخدم الشيك بوكس الي تحت ماحد يسويله وارب فهمتو كيف؟ Link to comment
` Allawi Posted October 14, 2015 Share Posted October 14, 2015 setElementData getElementData Link to comment
z24d Posted October 14, 2015 Author Share Posted October 14, 2015 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
z24d Posted October 14, 2015 Author Share Posted October 14, 2015 ماحد يرد ليشششششششششششششششششششش@ Link to comment
#CroSs Posted October 14, 2015 Share Posted October 14, 2015 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
z24d Posted October 14, 2015 Author Share Posted October 14, 2015 (edited) 8 Edited October 15, 2015 by Guest Link to comment
#CroSs Posted October 15, 2015 Share Posted October 15, 2015 الكود شغال بس انا ما انتبهت ان السورس إلي انظغط عليه زر المفروض يصير كذا 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
z24d Posted October 15, 2015 Author Share Posted October 15, 2015 شلون اكبر السطور بالقريد لست؟ Link to comment
z24d Posted October 15, 2015 Author Share Posted October 15, 2015 ابي فنكشات تخلي اللاعب اذا خش السيرفر يحطه بتيم و يخليه مايذبح اخوايه ويسرق سياراتهم 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