Jump to content

*مسـاعدة : أحتاج كود


mr.sony

Recommended Posts

السلام عليكم ورحمة الله وبركاته

 (لوحة) dx عندي مشكلة في مود قوانين 

هي تفتح من ماركر والمشكلة لما يلمس واحد الماركر تظهر للكل وعايز احل المشكلة دي ... :) 

صورة

p_690vo17g1.png

أكواد

--_________________________________________________________________
--_________________________________________________________________
-- Dx Window for Server Rules by MKH
-- You can more anywhere you want
-- Keep copyrights and enjoy
--_________________________________________________________________
--_________________________________________________________________-1952.00964,433.00137,-1.20000


local bR, bG, bB = 				233, 144, 16 	-- Window Bar Color! \n*
local alpha = 					229				-- Window Bar Alpha
local tR, tG, tB = 				255, 255, 255	-- Title Color
local serverRules = 			"❍【 حياكـم الله فـي مدينـة الإنتـاج الإعلامـي】❍ \n ___________________________________________________ \n \n ❖] التخريب = سلاب 100 والتكرار = كيك  [❖ \n ❖] طلب الرتبة = ميوت 5 دقائق  [❖ \n ❖] الشتم إو السب = ميوت 5 دقائق  [❖ \n ❖] النشر = ميوت 16 ساعة  [❖ \n ❖] الترقية على حسب أدائك في التصوير [❖ \n ❖] محاولة التهكير = باند مؤبد  [❖ \n  ___________________________________________________ \n \n \n \n By: MƬA ƑἷLMЄَƳ"



local sX, sY = 					guiGetScreenSize ()
local pX, pY = 					sX/1280, sY/720

local pickups = 				{
								{1479.54736,-1650.41150,14.14844, 3, 1239, 0},
								}
local markers = 				{
								{1479.54736,-1650.41150,14.14844, "cylinder", 0.5, 255, 0, 0, 0},
								}
--------------------------------------------------------------------



for i, v in ipairs ( pickups ) do
	pickup = createPickup ( unpack ( v ) )
end

for i, k in ipairs ( markers ) do
	 marker = createMarker ( unpack ( k ) )
end

function dxGui3ama ()
		dxDrawRectangle(pX*327, pY*106, pX*713, pY*44, tocolor(bR, bG, bB, alpha), true)
        dxDrawRectangle(pX*337, pY*150, pX*693, pY*411, tocolor(0, 0, 0, 150), true)
        dxDrawText("❖ 『قوانيـن العـامة للسيرفـر』❖", pX*640 + 1, pY*113 + 1, pX*709 + 1, pY*140 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "top", true, false, true, true, false)
        dxDrawText("❖ 『قوانيـن العـامة للسيرفـر』❖", pX*640, pY*113, pX*709, pY*140, tocolor(tR, tG, tB, 255), 2.00, "default", "center", "top", true, false, true, true, false)
        dxDrawText(serverRules, pX*347, pY*160, pX*1020, pY*551, tocolor(255, 255, 255, 255), 2.00, "default-bold", "center", "top", false, false, true, false, false)
end

function onMarkerHIT ()
addEventHandler("onClientRender", root, dxGui3ama)
end
addEventHandler("onClientMarkerHit", marker, onMarkerHIT) 

function onMarkerLeave ()
removeEventHandler("onClientRender", root, dxGui3ama)
end
addEventHandler("onClientMarkerLeave", marker, onMarkerLeave) 
fileDelete('client.lua')

 

Link to comment
23 hours ago, MR.SAMSUNG said:

المشكلة من كلمة root في الكود

جرب اكتب local بدالها اذا كانت نفس المشكلة 

احذفها ,

ترا مو متأكد !!!

اه جربتهم والله :( 

بس ماظبطو تسلم حب على المساعدة :) 

Link to comment

test

--_________________________________________________________________
--_________________________________________________________________
-- Dx Window for Server Rules by MKH
-- You can more anywhere you want
-- Keep copyrights and enjoy
--_________________________________________________________________
--_________________________________________________________________-1952.00964,433.00137,-1.20000


local bR, bG, bB = 				233, 144, 16 	-- Window Bar Color! \n*
local alpha = 					229				-- Window Bar Alpha
local tR, tG, tB = 				255, 255, 255	-- Title Color
local serverRules = 			"❍【 حياكـم الله فـي مدينـة الإنتـاج الإعلامـي】❍ \n ___________________________________________________ \n \n ❖] التخريب = سلاب 100 والتكرار = كيك  [❖ \n ❖] طلب الرتبة = ميوت 5 دقائق  [❖ \n ❖] الشتم إو السب = ميوت 5 دقائق  [❖ \n ❖] النشر = ميوت 16 ساعة  [❖ \n ❖] الترقية على حسب أدائك في التصوير [❖ \n ❖] محاولة التهكير = باند مؤبد  [❖ \n  ___________________________________________________ \n \n \n \n By: MƬA ƑἷLMЄَƳ"



local sX, sY = 					guiGetScreenSize ()
local pX, pY = 					sX/1280, sY/720

local pickups = 				{
								{1479.54736,-1650.41150,14.14844, 3, 1239, 0},
								}
local markers = 				{
								{1479.54736,-1650.41150,14.14844, "cylinder", 0.5, 255, 0, 0, 0},
								}
--------------------------------------------------------------------



for i, v in ipairs ( pickups ) do
	pickup = createPickup ( unpack ( v ) )
end

for i, k in ipairs ( markers ) do
	 marker = createMarker ( unpack ( k ) )
end

function dxGui3ama ()
		dxDrawRectangle(pX*327, pY*106, pX*713, pY*44, tocolor(bR, bG, bB, alpha), true)
        dxDrawRectangle(pX*337, pY*150, pX*693, pY*411, tocolor(0, 0, 0, 150), true)
        dxDrawText("❖ 『قوانيـن العـامة للسيرفـر』❖", pX*640 + 1, pY*113 + 1, pX*709 + 1, pY*140 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "top", true, false, true, true, false)
        dxDrawText("❖ 『قوانيـن العـامة للسيرفـر』❖", pX*640, pY*113, pX*709, pY*140, tocolor(tR, tG, tB, 255), 2.00, "default", "center", "top", true, false, true, true, false)
        dxDrawText(serverRules, pX*347, pY*160, pX*1020, pY*551, tocolor(255, 255, 255, 255), 2.00, "default-bold", "center", "top", false, false, true, false, false)
end

function onMarkerHIT ()
addEventHandler("onClientRender", localPlayer, dxGui3ama)
end
addEventHandler("onClientMarkerHit", marker, onMarkerHIT) 

function onMarkerLeave ()
removeEventHandler("onClientRender", localPlayer, dxGui3ama)
end
addEventHandler("onClientMarkerLeave", marker, onMarkerLeave) 
fileDelete('client.lua')

 

Link to comment
function onMarkerHIT ()
  if source ~= localPlayer then return end
	addEventHandler("onClientRender", root, dxGui3ama)
end
addEventHandler("onClientMarkerHit", marker, onMarkerHIT) 

function onMarkerLeave ()
  if source ~= localPlayer then return end
removeEventHandler("onClientRender", root, dxGui3ama)
end
addEventHandler("onClientMarkerLeave", marker, onMarkerLeave) 
fileDelete('client.lua')

 

Link to comment
39 minutes ago, iMr.WiFi..! said:

function onMarkerHIT ()
  if source ~= localPlayer then return end
	addEventHandler("onClientRender", root, dxGui3ama)
end
addEventHandler("onClientMarkerHit", marker, onMarkerHIT) 

function onMarkerLeave ()
  if source ~= localPlayer then return end
removeEventHandler("onClientRender", root, dxGui3ama)
end
addEventHandler("onClientMarkerLeave", marker, onMarkerLeave) 
fileDelete('client.lua')

 

السورس هنا هو الماركر

Link to comment
28 minutes ago, #,+( _xiRoc[K]; > said:

السورس هنا هو الماركر

ذكرتني ._.
 

 

1 hour ago, iMr.WiFi..! said:

function onMarkerHIT ()
  if source ~= localPlayer then return end
	addEventHandler("onClientRender", root, dxGui3ama)
end
addEventHandler("onClientMarkerHit", marker, onMarkerHIT) 

function onMarkerLeave ()
  if source ~= localPlayer then return end
removeEventHandler("onClientRender", root, dxGui3ama)
end
addEventHandler("onClientMarkerLeave", marker, onMarkerLeave) 
fileDelete('client.lua')

 

تعديل :
 


function onMarkerHIT (hit)
  if hit ~= localPlayer then return end
	addEventHandler("onClientRender", root, dxGui3ama)
end
addEventHandler("onClientMarkerHit", marker, onMarkerHIT) 

function onMarkerLeave (hit)
  if hit ~= localPlayer then return end
removeEventHandler("onClientRender", root, dxGui3ama)
end
addEventHandler("onClientMarkerLeave", marker, onMarkerLeave) 
fileDelete('client.lua')

 

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