Jump to content

حل مشكلة كود اضفاء شخصية


Recommended Posts

1 minute ago, medo7 said:

خلاص
 


    skinTable = {    15,55,56,67,    }     addEventHandler("onClientGUIClick",root,    function()    if (source == GUIEditor.button[1]) then    for k,v in pairs(skinTable)do    skin = engineLoadTXD ( "skins/"..v..".txd" )     engineImportTXD ( skin, v )     end    elseif (source == GUIEditor.button[2]) then    for k,v in pairs(skinTable)do    skin = engineLoadTXD ( "skins/"..v..".txd" )     destroyElement ( skin )    engineRestoreModel (v)    end
    end
    end)

 

اخوي بما انك حطيت تعديلي فبدل اسم الازرار

 

    skinTable = {
    15,55,56,67,
    }
     addEventHandler("onClientGUIClick",root,
    function()
    if (source == btn1) then

    for k,v in pairs(skinTable)do
    skin = engineLoadTXD ( "skins/"..v..".txd" ) 
    engineImportTXD ( skin, v ) 
    end
    elseif (source == btn2) then
    for k,v in pairs(skinTable)do
    skin = engineLoadTXD ( "skins/"..v..".txd" ) 
    destroyElement ( skin )
    engineRestoreModel (v)
    end
    end
    end)

 

Link to comment

بردو ماصار شي شخصية ماتبي ترجع لشكلها الاصلي

--SKIN REPLACEMENTS


GUIEditor = {
    button = {},
    window = {}
}

        GUIEditor.window[1] = guiCreateWindow(294, 190, 224, 213, "", false)
        guiWindowSetSizable(GUIEditor.window[1], false)

        GUIEditor.button[1] = guiCreateButton(26, 78, 170, 40, "تشغيل شخصيات زومبي", false, GUIEditor.window[1])
        GUIEditor.button[2] = guiCreateButton(26, 147, 170, 40, "اضفاء شخصيات زومبي", false, GUIEditor.window[1])    
guiSetVisible(GUIEditor.window[1], false)
showCursor(false)
bindKey("m", "down", 
function ()
      guiSetVisible(GUIEditor.window[1], not guiGetVisible (GUIEditor.window[1])) 
      showCursor(guiGetVisible(GUIEditor.window[1]))
end
)

skinTable = {
13,22,56,67,68,69,70,92,97,105,107,108,126,127,128,152,162,167,188,195,206,209,212,229,230,258,264,277,280,287,
}
 addEventHandler("onClientGUIClick",root,
function()
if (source == GUIEditor.button[1]) then

for k,v in pairs(skinTable)do
skin = engineLoadTXD ( "skins/"..v..".txd" ) 
engineImportTXD ( skin, v ) 
end
elseif (source == GUIEditor.button[2]) then
for k,v in pairs(skinTable)do
skin = engineLoadTXD ( "skins/"..v..".txd" ) 
destroyElement ( skin )
engineRestoreModel (v)
end
end
end)

اتفطلوو جربوه يمكن يكون خطا من عندي لاني  زهقت اتمنا تحملوه وتجربوه بدي حل 

وشكر لكم وشكرااا جزيلا الي تعب 

Edited by momar5600
Link to comment
1 minute ago, momar5600 said:

بردو ماصار شي شخصية ماتبي ترجع لشكلها الاصلي


--SKIN REPLACEMENTS


GUIEditor = {
    button = {},
    window = {}
}

        GUIEditor.window[1] = guiCreateWindow(294, 190, 224, 213, "", false)
        guiWindowSetSizable(GUIEditor.window[1], false)

        GUIEditor.button[1] = guiCreateButton(26, 78, 170, 40, "تشغيل شخصيات زومبي", false, GUIEditor.window[1])
        GUIEditor.button[2] = guiCreateButton(26, 147, 170, 40, "اضفاء شخصيات زومبي", false, GUIEditor.window[1])    
guiSetVisible(GUIEditor.window[1], false)
showCursor(false)
bindKey("m", "down", 
function ()
      guiSetVisible(GUIEditor.window[1], not guiGetVisible (GUIEditor.window[1])) 
      showCursor(guiGetVisible(GUIEditor.window[1]))
end
)

skinTable = {
13,22,56,67,68,69,70,92,97,105,107,108,126,127,128,152,162,167,188,195,206,209,212,229,230,258,264,277,280,287,
}
 addEventHandler("onClientGUIClick",root,
function()
if (source == GUIEditor.button[1]) then

for k,v in pairs(skinTable)do
skin = engineLoadTXD ( "skins/"..v..".txd" ) 
engineImportTXD ( skin, v ) 
end
elseif (source == GUIEditor.button[2]) then
for k,v in pairs(skinTable)do
skin = engineLoadTXD ( "skins/"..v..".txd" ) 
destroyElement ( skin )
engineRestoreModel (v)
end
end
end)

 

اخوي طيب اكتب باف 8

debugscript 3

وصور الصوره اللي تطلع وارفعها لنا اخوي

Link to comment
  • Moderators

 

جرب

 



GUIEditor = {
    button = {},
    window = {}
}

GUIEditor.window[1] = guiCreateWindow(294, 190, 224, 213, "", false)
guiWindowSetSizable(GUIEditor.window[1], false)

GUIEditor.button[1] = guiCreateButton(26, 78, 170, 40, "تشغيل شخصيات زومبي", false, GUIEditor.window[1])
GUIEditor.button[2] = guiCreateButton(26, 147, 170, 40, "اضفاء شخصيات زومبي", false, GUIEditor.window[1])    
guiSetVisible(GUIEditor.window[1], false)
showCursor(false)


bindKey("m", "down", 
function ()
	guiSetVisible(GUIEditor.window[1], not guiGetVisible (GUIEditor.window[1])) 
	showCursor(guiGetVisible(GUIEditor.window[1]))
end
)

skinTable = {
	13,22,56,67,68,69,70,92,97,105,107,108,126,127,128,152,162,167,188,195,206,209,212,229,230,258,264,277,280,287,
}
tables = {}


 addEventHandler("onClientGUIClick",root,
function()
	if (source == GUIEditor.button[1]) then
		for k,v in pairs(skinTable)do
			if ( fileExists( ""..v..".txd" ) ) then 
				local skin = engineLoadTXD ( ""..v..".txd" ) 
				engineImportTXD ( skin, v ) 
				tables [k] = skin
			end
		end
	elseif (source == GUIEditor.button[2]) then
		for k,v in pairs(skinTable)do
			if ( fileExists( ""..v..".txd" ) ) then 
				if tables[k] then 
					destroyElement ( tables[k] )
					tables[k] = nil
				end
			end
		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...