Jump to content

احتاج مساعدة في فهم كود وحل مشكلة*


Recommended Posts

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

باك بعد طول غياب

رمضان كريم عليكم ^_^ 

سويت لوحة إختيار الشخصيات لسيرفري, بعد انتهيت لما اضغط على زر إختيار الشخصية يطلعلي هذا الكود في الدي بق سكربت

Spoiler

p_870vbnwy1.png

3 , وما تتغير الشخصية...

ممكن مساعدة !!

:(

_____________________________________

أكواد ملف الكلنت 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
local Key = "i" --هنا زر الفتح
fr = {
    button = {}
}
F = {
    button = {}
}
FPanel = guiCreateWindow(454, 204, 459, 361, "❖『 لوحة شـخصيـات التصويـر 』❖", false)
guiWindowSetSizable(FPanel, false)
guiSetProperty(FPanel, "CaptionColour", "FF00FEEA")
guiSetVisible(FPanel,false)
------------------------------------------------------------------------------------------------
FTxt1 = guiCreateLabel(11, 33, 441, 19, "=================================================", false, FPanel)
guiLabelSetColor(FTxt1, 71, 254, 0)
FTxt2 = guiCreateLabel(10, 252, 441, 19, "=================================================", false, FPanel)
guiLabelSetColor(FTxt2, 71, 254, 0)
F.button1 = guiCreateButton(25, 62, 161, 50, "❍【 ديناصـورات 】❍", false, FPanel)
guiSetProperty(F.button1, "NormalTextColour", "FFFEFB00")
F.button2 = guiCreateButton(269, 62, 161, 50, "❍【 مستكشفيـن 】❍", false, FPanel)
guiSetProperty(F.button2, "NormalTextColour", "FFFB00FE")
F.button3 = guiCreateButton(141, 171, 161, 50, "❍【 شرطـة 】❍", false, FPanel)
guiSetProperty(F.button3, "NormalTextColour", "FF00FBFE")
FClose = guiCreateButton(427, 332, 23, 19, "✘", false, FPanel)
guiSetProperty(FClose, "NormalTextColour", "FFFE0000")
By = guiCreateLabel(22, 335, 93, 16, "By: MƬA ƑἷLMЄَƳ", false, FPanel)
Ftxt3 = guiCreateLabel(94, 289, 273, 17, "* قم بإختيار شخصية واحدة لحفظ مكانتك في التصوير *", false, FPanel)
guiLabelSetColor(Ftxt3, 254, 245, 0)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
addEventHandler("onClientResourceStart", resourceRoot,
function()
guiSetVisible(FPanel,false)
showCursor(false)  
end
)
bindKey(Key,"down", --عند الضغط على الزر المحدد
function()
	guiSetVisible(FPanel,not guiGetVisible(FPanel))--اظهار اللوحة
	showCursor(guiGetVisible(FPanel)) --اظهار الماوس
end)
addEventHandler("onClientGUIClick",root,function() --عند الضغط على زر باللوحة
	if (source ==FClose) then --يتحقق من اسم الزر
	guiSetVisible(FPanel,false) -- اغلاق اللوحة
		showCursor(false) --اخفاء الماوس
				elseif source == F.button1 then
				guiSetVisible(Window1, true)
				guiBringToFront(Window1)
				elseif source == F.button2 then
				guiSetVisible(Window2, true)
				guiBringToFront(Window2)
				elseif source == F.button3 then
				guiSetVisible(Window3, true)
				guiBringToFront(Window3)
	end
end)

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

GUIEditor = {
    button = {}
}
Window1 = guiCreateWindow(184, 195, 999, 379, "❖『 دايناصـورات 』❖", false)
guiWindowSetSizable(Window1, false)
guiSetProperty(Window1, "CaptionColour", "FF00FEDD")
guiSetVisible(Window1,false)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Use1 = guiCreateButton(35, 133, 94, 30, "❍【 وضـع 】❍", false, Window1)
guiSetProperty(Use1, "NormalTextColour", "FF23FE00")
Use2 = guiCreateButton(171, 133, 94, 30, "❍【 وضـع 】❍", false, Window1)
guiSetProperty(Use2, "NormalTextColour", "FF23FE00")
Use3 = guiCreateButton(308, 133, 94, 30, "❍【 وضـع 】❍", false, Window1)
guiSetProperty(Use3, "NormalTextColour", "FF23FE00")
Use4 = guiCreateButton(447, 133, 94, 30, "❍【 وضـع 】❍", false, Window1)
guiSetProperty(Use4, "NormalTextColour", "FF23FE00")
Use5 = guiCreateButton(583, 133, 94, 30, "❍【 وضـع 】❍", false, Window1)
guiSetProperty(Use5, "NormalTextColour", "FF23FE00")
Use6 = guiCreateButton(722, 133, 94, 30, "❍【 وضـع 】❍", false, Window1)
guiSetProperty(Use6, "NormalTextColour", "FF23FE00")
Use7 = guiCreateButton(862, 133, 94, 30, "❍【 وضـع 】❍", false, Window1)
guiSetProperty(Use7, "NormalTextColour", "FF23FE00")
Use8 = guiCreateButton(171, 284, 94, 30, "❍【 وضـع 】❍", false, Window1)
guiSetProperty(Use8, "NormalTextColour", "FF23FE00")
Use9 = guiCreateButton(308, 280, 94, 30, "❍【 وضـع 】❍", false, Window1)
guiSetProperty(Use9, "NormalTextColour", "FF23FE00")
Use10 = guiCreateButton(447, 280, 94, 30, "❍【 وضـع 】❍", false, Window1)
guiSetProperty(Use10, "NormalTextColour", "FF23FE00")
Use11 = guiCreateButton(583, 280, 94, 30, "❍【 وضـع 】❍", false, Window1)
guiSetProperty(Use11, "NormalTextColour", "FF23FE00")
Use12 = guiCreateButton(722, 280, 94, 30, "❍【 وضـع 】❍", false, Window1)
guiSetProperty(Use12, "NormalTextColour", "FF23FE00")
W1Txt1 = guiCreateLabel(10, 324, 981, 16, "______________________________________________________________________________________________________________________________________________", false, Window1)
W1Txt2 = guiCreateLabel(10, 350, 91, 19, "By: MƬA ƑἷLMЄَƳ", false, Window1)
W1Colse = guiCreateButton(972, 350, 19, 20, "✘", false, Window1)
guiSetProperty(W1Colse, "NormalTextColour", "FFFE0000")
W1IMG1 = guiCreateStaticImage(25, 33, 117, 96, "images/121.png", false, Window1)
W1IMG2 = guiCreateStaticImage(158, 33, 117, 96, "images/120.png", false, Window1)
W1IMG3 = guiCreateStaticImage(298, 33, 117, 96, "images/118.png", false, Window1)
W1IMG4 = guiCreateStaticImage(434, 33, 117, 96, "images/117.png", false, Window1)
W1IMG5 = guiCreateStaticImage(573, 33, 117, 96, "images/116.png", false, Window1)
W1IMG6 = guiCreateStaticImage(709, 33, 117, 96, "images/115.png", false, Window1)
W1IMG7 = guiCreateStaticImage(849, 33, 117, 96, "images/114.png", false, Window1)
W1IMG8 = guiCreateStaticImage(161, 184, 117, 96, "images/113.png", false, Window1)
W1IMG9 = guiCreateStaticImage(295, 184, 117, 96, "images/112.png", false, Window1)
W1IMG10 = guiCreateStaticImage(434, 184, 117, 96, "images/111.png", false, Window1)
W1IMG11 = guiCreateStaticImage(573, 184, 117, 96, "images/110.png", false, Window1)
W1IMG12 = guiCreateStaticImage(709, 184, 117, 96, "images/99.png", false, Window1)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
addEventHandler("onClientGUIClick",root,function() --عند الضغط على زر باللوحة
	if (source ==W1Colse) then --يتحقق من اسم الزر
	guiSetVisible(Window1,false) -- اغلاق اللوحة
	showCursor(false) --اخفاء الماوس
	 elseif (source ==F.button1) then --يتحقق من اسم الزر
	guiSetVisible(FPanel,false) -- اغلاق اللوحة
	end
end)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FW2 = {}
Window2 = guiCreateWindow(518, 244, 330, 281, "❖『 مستكشفيـن 』❖", false)
guiWindowSetSizable(Window2, false)
guiSetProperty(Window2, "CaptionColour", "FF00FEEA")
guiSetVisible(Window2,false)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FW2.button1 = guiCreateButton(23, 186, 97, 48, "❍【 وضـع 】❍", false, Window2)
guiSetProperty(FW2.button1, "NormalTextColour", "FF23FC00")
FW2.button2 = guiCreateButton(213, 186, 97, 48, "❍【 وضـع 】❍", false, Window2)
guiSetProperty(FW2.button2, "NormalTextColour", "FF23FC00")
FW2Close = guiCreateButton(299, 253, 21, 18, "✘", false, Window2)
guiSetProperty(FW2Close, "NormalTextColour", "FFFD0000")
W2IMG1 = guiCreateStaticImage(18, 37, 131, 139, "images/190.png", false, Window2)
W2IMG2 = guiCreateStaticImage(179, 37, 131, 139, "images/191.png", false, Window2)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
addEventHandler("onClientGUIClick",root,function() --عند الضغط على زر باللوحة
	if (source ==FW2Close) then --يتحقق من اسم الزر
	guiSetVisible(Window2,false) -- اغلاق اللوحة		
	showCursor(false) --اخفاء الماوس
		elseif (source ==F.button2) then --يتحقق من اسم الزر
	guiSetVisible(FPanel,false) -- اغلاق اللوحة
	end
end)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FW3 = {}
Window3 = guiCreateWindow(518, 244, 330, 281, "❖『 شرطـة 』❖", false)
guiWindowSetSizable(Window3, false)
guiSetProperty(Window3, "CaptionColour", "FF00FEEA")
guiSetVisible(Window3,false)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FW3.button1 = guiCreateButton(23, 186, 97, 48, "❍【 وضـع 】❍", false, Window3)
guiSetProperty(FW3.button1, "NormalTextColour", "FF23FC00")
FW3.button2 = guiCreateButton(213, 186, 97, 48, "❍【 وضـع 】❍", false, Window3)
guiSetProperty(FW3.button2, "NormalTextColour", "FF23FC00")
FW3Close = guiCreateButton(299, 253, 21, 18, "✘", false, Window3)
guiSetProperty(FW3Close, "NormalTextColour", "FFFD0000")
W3IMG1 = guiCreateStaticImage(18, 37, 131, 139, "images/280.png", false, Window3)
W3IMG2 = guiCreateStaticImage(179, 37, 131, 139, "images/281.png", false, Window3)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
addEventHandler("onClientGUIClick",root,function() --عند الضغط على زر باللوحة
	if (source ==FW3Close) then --يتحقق من اسم الزر
	guiSetVisible(Window3,false) -- اغلاق اللوحة		
	showCursor(false) --اخفاء الماوس
		elseif (source ==F.button3) then --يتحقق من اسم الزر
	guiSetVisible(FPanel,false) -- اغلاق اللوحة
	end
end)


--
--
--

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
addEventHandler("onClientGUIClick", root,
 function ()
if source == Use1 then
playSoundFrontEnd ( 10 )
triggerServerEvent("121", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == Use2 then
playSoundFrontEnd ( 10 )
triggerServerEvent("120", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == Use3 then
playSoundFrontEnd ( 10 )
triggerServerEvent("118", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == Use4 then
playSoundFrontEnd ( 10 )
triggerServerEvent("117", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == Use5 then
playSoundFrontEnd ( 10 )
triggerServerEvent("116", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == Use6 then
playSoundFrontEnd ( 10 )
triggerServerEvent("115", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == Use7 then
playSoundFrontEnd ( 10 )
triggerServerEvent("114", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == Use8 then
playSoundFrontEnd ( 10 )
triggerServerEvent("113", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == Use9 then
playSoundFrontEnd ( 10 )
triggerServerEvent("112", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == Use10 then
playSoundFrontEnd ( 10 )
triggerServerEvent("111", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == Use11 then
playSoundFrontEnd ( 10 )
triggerServerEvent("110", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == Use12 then
playSoundFrontEnd ( 10 )
triggerServerEvent("99", localPlayer)
end
end
)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
addEventHandler("onClientGUIClick", root,
 function ()
if source == FW2.button1 then
playSoundFrontEnd ( 10 )
triggerServerEvent("190", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == FW2.button2 then
playSoundFrontEnd ( 10 )
triggerServerEvent("191", localPlayer)
end
end
)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
addEventHandler("onClientGUIClick", root,
 function ()
if source == FW3.button1 then
playSoundFrontEnd ( 10 )
triggerServerEvent("280", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == FW3.button2 then
playSoundFrontEnd ( 10 )
triggerServerEvent("281", localPlayer)
end
end
)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

____________________________________

أكواد ملف سيرفر

addEvent("121",true)
addEventHandler("121",root,
function ()
local Money = getPlayerMoney(source)
if ( Money >= 0 ) then
takePlayerMoney ( source , 0 )
   setPedSkin ( source, 121 )
    end
end
)
addEvent("120",true)
addEventHandler("120",root,
function ()
local Money = getPlayerMoney(source)
if ( Money >= 0 ) then
takePlayerMoney ( source , 0 )
   setPedSkin ( source, 120 )
    end
end
)
addEvent("118",true)
addEventHandler("118",root,
function ()
local Money = getPlayerMoney(source)
if ( Money >= 0 ) then
takePlayerMoney ( source , 0 )
   setPedSkin ( source, 118 )
    end
end
)
addEvent("117",true)
addEventHandler("117",root,
function ()
local Money = getPlayerMoney(source)
if ( Money >= 0 ) then
takePlayerMoney ( source , 0 )
   setPedSkin ( source, 117 )
    end
end
)
addEvent("116",true)
addEventHandler("116",root,
function ()
local Money = getPlayerMoney(source)
if ( Money >= 0 ) then
takePlayerMoney ( source , 0 )
   setPedSkin ( source, 116 )
    end
end
)
addEvent("115",true)
addEventHandler("115",root,
function ()
local Money = getPlayerMoney(source)
if ( Money >= 0 ) then
takePlayerMoney ( source , 0 )
   setPedSkin ( source, 115 )
    end
end
)
addEvent("114",true)
addEventHandler("114",root,
function ()
local Money = getPlayerMoney(source)
if ( Money >= 0 ) then
takePlayerMoney ( source , 0 )
   setPedSkin ( source, 114 )
    end
end
)
addEvent("113",true)
addEventHandler("113",root,
function ()
local Money = getPlayerMoney(source)
if ( Money >= 0 ) then
takePlayerMoney ( source , 0 )
   setPedSkin ( source, 113 )
    end
end
)
addEvent("112",true)
addEventHandler("112",root,
function ()
local Money = getPlayerMoney(source)
if ( Money >= 0 ) then
takePlayerMoney ( source , 0 )
   setPedSkin ( source, 112 )
    end
end
)addEvent("111",true)
addEventHandler("111",root,
function ()
local Money = getPlayerMoney(source)
if ( Money >= 0 ) then
takePlayerMoney ( source , 0 )
   setPedSkin ( source, 111 )
    end
end
)
addEvent("110",true)
addEventHandler("110",root,
function ()
local Money = getPlayerMoney(source)
if ( Money >= 0 ) then
takePlayerMoney ( source , 0 )
   setPedSkin ( source, 110 )
    end
end
)
addEvent("99",true)
addEventHandler("99",root,
function ()
local Money = getPlayerMoney(source)
if ( Money >= 0 ) then
takePlayerMoney ( source , 0 )
   setPedSkin ( source, 99 )
    end
end
)
addEvent("190",true)
addEventHandler("190",root,
function ()
local Money = getPlayerMoney(source)
if ( Money >= 0 ) then
takePlayerMoney ( source , 0 )
   setPedSkin ( source, 190 )
    end
end
)
addEvent("191",true)
addEventHandler("191",root,
function ()
local Money = getPlayerMoney(source)
if ( Money >= 0 ) then
takePlayerMoney ( source , 0 )
   setPedSkin ( source, 191 )
    end
end
)
addEvent("280",true)
addEventHandler("280",root,
function ()
local Money = getPlayerMoney(source)
if ( Money >= 0 ) then
takePlayerMoney ( source , 0 )
   setPedSkin ( source, 280 )
    end
end
)
addEvent("281",true)
addEventHandler("281",root,
function ()
local Money = getPlayerMoney(source)
if ( Money >= 0 ) then
takePlayerMoney ( source , 0 )
   setPedSkin ( source, 281 )
    end
end
)

___________________________________

أكواد الميتا

<meta>
  <info author="MTA FiLMeY" name="NewSkinPanel" type="script" description="شخصيات التصوير" version="1.2.0" />
<script src="client.lua" type="client"/>
                       <file src="Images/121.png" type="client" />  
					   <file src="Images/120.png" type="client" />  
					   <file src="Images/118.png" type="client" />  
					   <file src="Images/117.png" type="client" />  
					   <file src="Images/116.png" type="client" />  
					   <file src="Images/115.png" type="client" />  
					   <file src="Images/114.png" type="client" />  
					   <file src="Images/113.png" type="client" />  
					   <file src="Images/112.png" type="client" />  
					   <file src="Images/111.png" type="client" />  
					   <file src="Images/110.png" type="client" />  
					   <file src="Images/99.png" type="client" />  
					   <file src="Images/190.png" type="client" />  
					   <file src="Images/191.png" type="client" />  
					   <file src="Images/280.png" type="client" />  
					   <file src="Images/281.png" type="client" />  
</meta>

___________________________________

وشكراا :D 

Link to comment
2 hours ago, mr.sony said:

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

باك بعد طول غياب

رمضان كريم عليكم ^_^ 

سويت لوحة إختيار الشخصيات لسيرفري, بعد انتهيت لما اضغط على زر إختيار الشخصية يطلعلي هذا الكود في الدي بق سكربت

  Reveal hidden contents

p_870vbnwy1.png

3 , وما تتغير الشخصية...

ممكن مساعدة !!

:(

_____________________________________

أكواد ملف الكلنت 


------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
local Key = "i" --هنا زر الفتح
fr = {
    button = {}
}
F = {
    button = {}
}
FPanel = guiCreateWindow(454, 204, 459, 361, "❖『 لوحة شـخصيـات التصويـر 』❖", false)
guiWindowSetSizable(FPanel, false)
guiSetProperty(FPanel, "CaptionColour", "FF00FEEA")
guiSetVisible(FPanel,false)
------------------------------------------------------------------------------------------------
FTxt1 = guiCreateLabel(11, 33, 441, 19, "=================================================", false, FPanel)
guiLabelSetColor(FTxt1, 71, 254, 0)
FTxt2 = guiCreateLabel(10, 252, 441, 19, "=================================================", false, FPanel)
guiLabelSetColor(FTxt2, 71, 254, 0)
F.button1 = guiCreateButton(25, 62, 161, 50, "❍【 ديناصـورات 】❍", false, FPanel)
guiSetProperty(F.button1, "NormalTextColour", "FFFEFB00")
F.button2 = guiCreateButton(269, 62, 161, 50, "❍【 مستكشفيـن 】❍", false, FPanel)
guiSetProperty(F.button2, "NormalTextColour", "FFFB00FE")
F.button3 = guiCreateButton(141, 171, 161, 50, "❍【 شرطـة 】❍", false, FPanel)
guiSetProperty(F.button3, "NormalTextColour", "FF00FBFE")
FClose = guiCreateButton(427, 332, 23, 19, "✘", false, FPanel)
guiSetProperty(FClose, "NormalTextColour", "FFFE0000")
By = guiCreateLabel(22, 335, 93, 16, "By: MƬA ƑἷLMЄَƳ", false, FPanel)
Ftxt3 = guiCreateLabel(94, 289, 273, 17, "* قم بإختيار شخصية واحدة لحفظ مكانتك في التصوير *", false, FPanel)
guiLabelSetColor(Ftxt3, 254, 245, 0)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
addEventHandler("onClientResourceStart", resourceRoot,
function()
guiSetVisible(FPanel,false)
showCursor(false)  
end
)
bindKey(Key,"down", --عند الضغط على الزر المحدد
function()
	guiSetVisible(FPanel,not guiGetVisible(FPanel))--اظهار اللوحة
	showCursor(guiGetVisible(FPanel)) --اظهار الماوس
end)
addEventHandler("onClientGUIClick",root,function() --عند الضغط على زر باللوحة
	if (source ==FClose) then --يتحقق من اسم الزر
	guiSetVisible(FPanel,false) -- اغلاق اللوحة
		showCursor(false) --اخفاء الماوس
				elseif source == F.button1 then
				guiSetVisible(Window1, true)
				guiBringToFront(Window1)
				elseif source == F.button2 then
				guiSetVisible(Window2, true)
				guiBringToFront(Window2)
				elseif source == F.button3 then
				guiSetVisible(Window3, true)
				guiBringToFront(Window3)
	end
end)

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

GUIEditor = {
    button = {}
}
Window1 = guiCreateWindow(184, 195, 999, 379, "❖『 دايناصـورات 』❖", false)
guiWindowSetSizable(Window1, false)
guiSetProperty(Window1, "CaptionColour", "FF00FEDD")
guiSetVisible(Window1,false)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Use1 = guiCreateButton(35, 133, 94, 30, "❍【 وضـع 】❍", false, Window1)
guiSetProperty(Use1, "NormalTextColour", "FF23FE00")
Use2 = guiCreateButton(171, 133, 94, 30, "❍【 وضـع 】❍", false, Window1)
guiSetProperty(Use2, "NormalTextColour", "FF23FE00")
Use3 = guiCreateButton(308, 133, 94, 30, "❍【 وضـع 】❍", false, Window1)
guiSetProperty(Use3, "NormalTextColour", "FF23FE00")
Use4 = guiCreateButton(447, 133, 94, 30, "❍【 وضـع 】❍", false, Window1)
guiSetProperty(Use4, "NormalTextColour", "FF23FE00")
Use5 = guiCreateButton(583, 133, 94, 30, "❍【 وضـع 】❍", false, Window1)
guiSetProperty(Use5, "NormalTextColour", "FF23FE00")
Use6 = guiCreateButton(722, 133, 94, 30, "❍【 وضـع 】❍", false, Window1)
guiSetProperty(Use6, "NormalTextColour", "FF23FE00")
Use7 = guiCreateButton(862, 133, 94, 30, "❍【 وضـع 】❍", false, Window1)
guiSetProperty(Use7, "NormalTextColour", "FF23FE00")
Use8 = guiCreateButton(171, 284, 94, 30, "❍【 وضـع 】❍", false, Window1)
guiSetProperty(Use8, "NormalTextColour", "FF23FE00")
Use9 = guiCreateButton(308, 280, 94, 30, "❍【 وضـع 】❍", false, Window1)
guiSetProperty(Use9, "NormalTextColour", "FF23FE00")
Use10 = guiCreateButton(447, 280, 94, 30, "❍【 وضـع 】❍", false, Window1)
guiSetProperty(Use10, "NormalTextColour", "FF23FE00")
Use11 = guiCreateButton(583, 280, 94, 30, "❍【 وضـع 】❍", false, Window1)
guiSetProperty(Use11, "NormalTextColour", "FF23FE00")
Use12 = guiCreateButton(722, 280, 94, 30, "❍【 وضـع 】❍", false, Window1)
guiSetProperty(Use12, "NormalTextColour", "FF23FE00")
W1Txt1 = guiCreateLabel(10, 324, 981, 16, "______________________________________________________________________________________________________________________________________________", false, Window1)
W1Txt2 = guiCreateLabel(10, 350, 91, 19, "By: MƬA ƑἷLMЄَƳ", false, Window1)
W1Colse = guiCreateButton(972, 350, 19, 20, "✘", false, Window1)
guiSetProperty(W1Colse, "NormalTextColour", "FFFE0000")
W1IMG1 = guiCreateStaticImage(25, 33, 117, 96, "images/121.png", false, Window1)
W1IMG2 = guiCreateStaticImage(158, 33, 117, 96, "images/120.png", false, Window1)
W1IMG3 = guiCreateStaticImage(298, 33, 117, 96, "images/118.png", false, Window1)
W1IMG4 = guiCreateStaticImage(434, 33, 117, 96, "images/117.png", false, Window1)
W1IMG5 = guiCreateStaticImage(573, 33, 117, 96, "images/116.png", false, Window1)
W1IMG6 = guiCreateStaticImage(709, 33, 117, 96, "images/115.png", false, Window1)
W1IMG7 = guiCreateStaticImage(849, 33, 117, 96, "images/114.png", false, Window1)
W1IMG8 = guiCreateStaticImage(161, 184, 117, 96, "images/113.png", false, Window1)
W1IMG9 = guiCreateStaticImage(295, 184, 117, 96, "images/112.png", false, Window1)
W1IMG10 = guiCreateStaticImage(434, 184, 117, 96, "images/111.png", false, Window1)
W1IMG11 = guiCreateStaticImage(573, 184, 117, 96, "images/110.png", false, Window1)
W1IMG12 = guiCreateStaticImage(709, 184, 117, 96, "images/99.png", false, Window1)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
addEventHandler("onClientGUIClick",root,function() --عند الضغط على زر باللوحة
	if (source ==W1Colse) then --يتحقق من اسم الزر
	guiSetVisible(Window1,false) -- اغلاق اللوحة
	showCursor(false) --اخفاء الماوس
	 elseif (source ==F.button1) then --يتحقق من اسم الزر
	guiSetVisible(FPanel,false) -- اغلاق اللوحة
	end
end)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FW2 = {}
Window2 = guiCreateWindow(518, 244, 330, 281, "❖『 مستكشفيـن 』❖", false)
guiWindowSetSizable(Window2, false)
guiSetProperty(Window2, "CaptionColour", "FF00FEEA")
guiSetVisible(Window2,false)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FW2.button1 = guiCreateButton(23, 186, 97, 48, "❍【 وضـع 】❍", false, Window2)
guiSetProperty(FW2.button1, "NormalTextColour", "FF23FC00")
FW2.button2 = guiCreateButton(213, 186, 97, 48, "❍【 وضـع 】❍", false, Window2)
guiSetProperty(FW2.button2, "NormalTextColour", "FF23FC00")
FW2Close = guiCreateButton(299, 253, 21, 18, "✘", false, Window2)
guiSetProperty(FW2Close, "NormalTextColour", "FFFD0000")
W2IMG1 = guiCreateStaticImage(18, 37, 131, 139, "images/190.png", false, Window2)
W2IMG2 = guiCreateStaticImage(179, 37, 131, 139, "images/191.png", false, Window2)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
addEventHandler("onClientGUIClick",root,function() --عند الضغط على زر باللوحة
	if (source ==FW2Close) then --يتحقق من اسم الزر
	guiSetVisible(Window2,false) -- اغلاق اللوحة		
	showCursor(false) --اخفاء الماوس
		elseif (source ==F.button2) then --يتحقق من اسم الزر
	guiSetVisible(FPanel,false) -- اغلاق اللوحة
	end
end)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FW3 = {}
Window3 = guiCreateWindow(518, 244, 330, 281, "❖『 شرطـة 』❖", false)
guiWindowSetSizable(Window3, false)
guiSetProperty(Window3, "CaptionColour", "FF00FEEA")
guiSetVisible(Window3,false)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FW3.button1 = guiCreateButton(23, 186, 97, 48, "❍【 وضـع 】❍", false, Window3)
guiSetProperty(FW3.button1, "NormalTextColour", "FF23FC00")
FW3.button2 = guiCreateButton(213, 186, 97, 48, "❍【 وضـع 】❍", false, Window3)
guiSetProperty(FW3.button2, "NormalTextColour", "FF23FC00")
FW3Close = guiCreateButton(299, 253, 21, 18, "✘", false, Window3)
guiSetProperty(FW3Close, "NormalTextColour", "FFFD0000")
W3IMG1 = guiCreateStaticImage(18, 37, 131, 139, "images/280.png", false, Window3)
W3IMG2 = guiCreateStaticImage(179, 37, 131, 139, "images/281.png", false, Window3)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
addEventHandler("onClientGUIClick",root,function() --عند الضغط على زر باللوحة
	if (source ==FW3Close) then --يتحقق من اسم الزر
	guiSetVisible(Window3,false) -- اغلاق اللوحة		
	showCursor(false) --اخفاء الماوس
		elseif (source ==F.button3) then --يتحقق من اسم الزر
	guiSetVisible(FPanel,false) -- اغلاق اللوحة
	end
end)


--
--
--

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
addEventHandler("onClientGUIClick", root,
 function ()
if source == Use1 then
playSoundFrontEnd ( 10 )
triggerServerEvent("121", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == Use2 then
playSoundFrontEnd ( 10 )
triggerServerEvent("120", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == Use3 then
playSoundFrontEnd ( 10 )
triggerServerEvent("118", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == Use4 then
playSoundFrontEnd ( 10 )
triggerServerEvent("117", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == Use5 then
playSoundFrontEnd ( 10 )
triggerServerEvent("116", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == Use6 then
playSoundFrontEnd ( 10 )
triggerServerEvent("115", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == Use7 then
playSoundFrontEnd ( 10 )
triggerServerEvent("114", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == Use8 then
playSoundFrontEnd ( 10 )
triggerServerEvent("113", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == Use9 then
playSoundFrontEnd ( 10 )
triggerServerEvent("112", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == Use10 then
playSoundFrontEnd ( 10 )
triggerServerEvent("111", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == Use11 then
playSoundFrontEnd ( 10 )
triggerServerEvent("110", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == Use12 then
playSoundFrontEnd ( 10 )
triggerServerEvent("99", localPlayer)
end
end
)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
addEventHandler("onClientGUIClick", root,
 function ()
if source == FW2.button1 then
playSoundFrontEnd ( 10 )
triggerServerEvent("190", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == FW2.button2 then
playSoundFrontEnd ( 10 )
triggerServerEvent("191", localPlayer)
end
end
)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
addEventHandler("onClientGUIClick", root,
 function ()
if source == FW3.button1 then
playSoundFrontEnd ( 10 )
triggerServerEvent("280", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
 function ()
if source == FW3.button2 then
playSoundFrontEnd ( 10 )
triggerServerEvent("281", localPlayer)
end
end
)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

____________________________________

أكواد ملف سيرفر


addEvent("121",true)addEventHandler("121",root,function ()local Money = getPlayerMoney(source)if ( Money >= 0 ) thentakePlayerMoney ( source , 0 )   setPedSkin ( source, 121 )    endend)addEvent("120",true)addEventHandler("120",root,function ()local Money = getPlayerMoney(source)if ( Money >= 0 ) thentakePlayerMoney ( source , 0 )   setPedSkin ( source, 120 )    endend)addEvent("118",true)addEventHandler("118",root,function ()local Money = getPlayerMoney(source)if ( Money >= 0 ) thentakePlayerMoney ( source , 0 )   setPedSkin ( source, 118 )    endend)addEvent("117",true)addEventHandler("117",root,function ()local Money = getPlayerMoney(source)if ( Money >= 0 ) thentakePlayerMoney ( source , 0 )   setPedSkin ( source, 117 )    endend)addEvent("116",true)addEventHandler("116",root,function ()local Money = getPlayerMoney(source)if ( Money >= 0 ) thentakePlayerMoney ( source , 0 )   setPedSkin ( source, 116 )    endend)addEvent("115",true)addEventHandler("115",root,function ()local Money = getPlayerMoney(source)if ( Money >= 0 ) thentakePlayerMoney ( source , 0 )   setPedSkin ( source, 115 )    endend)addEvent("114",true)addEventHandler("114",root,function ()local Money = getPlayerMoney(source)if ( Money >= 0 ) thentakePlayerMoney ( source , 0 )   setPedSkin ( source, 114 )    endend)addEvent("113",true)addEventHandler("113",root,function ()local Money = getPlayerMoney(source)if ( Money >= 0 ) thentakePlayerMoney ( source , 0 )   setPedSkin ( source, 113 )    endend)addEvent("112",true)addEventHandler("112",root,function ()local Money = getPlayerMoney(source)if ( Money >= 0 ) thentakePlayerMoney ( source , 0 )   setPedSkin ( source, 112 )    endend)addEvent("111",true)addEventHandler("111",root,function ()local Money = getPlayerMoney(source)if ( Money >= 0 ) thentakePlayerMoney ( source , 0 )   setPedSkin ( source, 111 )    endend)addEvent("110",true)addEventHandler("110",root,function ()local Money = getPlayerMoney(source)if ( Money >= 0 ) thentakePlayerMoney ( source , 0 )   setPedSkin ( source, 110 )    endend)addEvent("99",true)addEventHandler("99",root,function ()local Money = getPlayerMoney(source)if ( Money >= 0 ) thentakePlayerMoney ( source , 0 )   setPedSkin ( source, 99 )    endend)addEvent("190",true)addEventHandler("190",root,function ()local Money = getPlayerMoney(source)if ( Money >= 0 ) thentakePlayerMoney ( source , 0 )   setPedSkin ( source, 190 )    endend)addEvent("191",true)addEventHandler("191",root,function ()local Money = getPlayerMoney(source)if ( Money >= 0 ) thentakePlayerMoney ( source , 0 )   setPedSkin ( source, 191 )    endend)addEvent("280",true)addEventHandler("280",root,function ()local Money = getPlayerMoney(source)if ( Money >= 0 ) thentakePlayerMoney ( source , 0 )   setPedSkin ( source, 280 )    endend)addEvent("281",true)addEventHandler("281",root,function ()local Money = getPlayerMoney(source)if ( Money >= 0 ) thentakePlayerMoney ( source , 0 )   setPedSkin ( source, 281 )    endend)

___________________________________

أكواد الميتا


<meta>  <info author="MTA FiLMeY" name="NewSkinPanel" type="script" description="شخصيات التصوير" version="1.2.0" /><script src="client.lua" type="client"/>                       <file src="Images/121.png" type="client" />  					   <file src="Images/120.png" type="client" />  					   <file src="Images/118.png" type="client" />  					   <file src="Images/117.png" type="client" />  					   <file src="Images/116.png" type="client" />  					   <file src="Images/115.png" type="client" />  					   <file src="Images/114.png" type="client" />  					   <file src="Images/113.png" type="client" />  					   <file src="Images/112.png" type="client" />  					   <file src="Images/111.png" type="client" />  					   <file src="Images/110.png" type="client" />  					   <file src="Images/99.png" type="client" />  					   <file src="Images/190.png" type="client" />  					   <file src="Images/191.png" type="client" />  					   <file src="Images/280.png" type="client" />  					   <file src="Images/281.png" type="client" />  </meta>

___________________________________

وشكراا :D 

الميتا خطــاأ

 

<file src="Images/121.png" type="client" />  
					   <file src="Images/120.png" type="client" />  
					   <file src="Images/118.png" type="client" />  
					   <file src="Images/117.png" type="client" />  
					   <file src="Images/116.png" type="client" />  
					   <file src="Images/115.png" type="client" />  
					   <file src="Images/114.png" type="client" />  
					   <file src="Images/113.png" type="client" />  
					   <file src="Images/112.png" type="client" />  
					   <file src="Images/111.png" type="client" />  
					   <file src="Images/110.png" type="client" />  
					   <file src="Images/99.png" type="client" />  
					   <file src="Images/190.png" type="client" />  
					   <file src="Images/191.png" type="client" />  
					   <file src="Images/280.png" type="client" />  
					   <file src="Images/281.png" type="client" />  

ذول موجودين في الملف؟

 

ووين تعريف ملف السيرفر

Edited by +Source|>
Link to comment
3 hours ago, +Source|> said:

الميتا خطــاأ

 


<file src="Images/121.png" type="client" />  					   <file src="Images/120.png" type="client" />  					   <file src="Images/118.png" type="client" />  					   <file src="Images/117.png" type="client" />  					   <file src="Images/116.png" type="client" />  					   <file src="Images/115.png" type="client" />  					   <file src="Images/114.png" type="client" />  					   <file src="Images/113.png" type="client" />  					   <file src="Images/112.png" type="client" />  					   <file src="Images/111.png" type="client" />  					   <file src="Images/110.png" type="client" />  					   <file src="Images/99.png" type="client" />  					   <file src="Images/190.png" type="client" />  					   <file src="Images/191.png" type="client" />  					   <file src="Images/280.png" type="client" />  					   <file src="Images/281.png" type="client" />  

ذول موجودين في الملف؟

 

ووين تعريف ملف السيرفر

اها,,,, هههههه مدري كيف نسيته O.o 

شكرا ي شباب ^_^ 

2 hours ago, #\_oskar_/# said:

الكود مافي اي خطاء

ضيف بال meta

<script src="File Name.lua" type="server" />
File Name -- بدلها ب اسم ملف السيرفر حقك

+

يفضل استخدام 


setElementModel

بدل


 setPedSkin

 

يسلمو ي حب ^_^ 

ايش الفرق بينهم :) 

  • Like 1
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...