Ahmed Ly Posted February 19, 2016 Posted February 19, 2016 السلام عليكم وين خطا في هدا كود ؟؟ كلنت function a () playSound("Mp3/scroll.mp3") triggerServerEvent("set_skin_1",localPlayer) end addEventHandler("onClientGUIClick",GUIEditor.button[1] , a , false) سيرفر function nn () id = math.random(46) setPlayerSkin(source,id) end addEvent("set_skin_1",true) addEventHandler("set_skin_1",root,nn)
ivor Posted February 19, 2016 Posted February 19, 2016 سيرفر function nn () id = math.random(46) setPlayerSkin(source,id) end addEvent("set_skin_1",true) addEventHandler("set_skin_1",root,nn) اخوي حط ذا داخل الفنكشن function nn ( id ) مشان ال setPlayerSkin(source,id) الاي دي محتاج الفنكشن جرب وشغل المود و ورينا بعد ماتكتب ب أف8 debugscript 3 وش راح يطلعلك موفق
Ahmed Ly Posted February 19, 2016 Author Posted February 19, 2016 سيرفر function nn () id = math.random(46) setPlayerSkin(source,id) end addEvent("set_skin_1",true) addEventHandler("set_skin_1",root,nn) اخوي حط ذا داخل الفنكشن function nn ( id ) مشان ال setPlayerSkin(source,id) الاي دي محتاج الفنكشن جرب وشغل المود و ورينا بعد ماتكتب ب أف8 debugscript 3 وش راح يطلعلك موفق debugscript [2016-02-19 15:45:57] WARNING: GameMode/s_ahmed.lua(Line 34) [server] setPlayerSkin is deprecated and may not work in future versions. Please replace with setElementModel.
Ahmed Ly Posted February 19, 2016 Author Posted February 19, 2016 مود موحد هاد ام في القيم مود ؟ كيف قصدك ؟
a7zan Posted February 19, 2016 Posted February 19, 2016 استخدم setPlayerSkin بدلاً من setElementModel
Ahmed Ly Posted February 19, 2016 Author Posted February 19, 2016 استخدمsetPlayerSkin بدلاً من setElementModel نفس شي ما يخدم كود و هدا كود كمل كلت GUIEditor = { button = {}, } GUIEditor.button[1] = guiCreateButton(277, 630, 124, 60, "", false) GUIEditor.button[2] = guiCreateButton(625, 636, 124, 49, "", false) GUIEditor.button[3] = guiCreateButton(434, 719, 139, 32, "ok", false) function () dxDrawRectangle(260, 626, 155, 74, tocolor(237, 15, 31, 255), false) dxDrawRectangle(612, 626, 155, 74, tocolor(237, 15, 31, 255), false) dxDrawText(">", 637, 639, 706, 671, tocolor(58, 42, 209, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("<", 284, 641, 378, 695, tocolor(58, 42, 209, 255), 1, "pricedown", "left", "top", false, false, true, false, false) dxDrawRectangle(413, 710, 199, 52, tocolor(97, 238, 12, 255), false) dxDrawText("ok", 453, 717, 566, 754, tocolor(83, 128, 166, 255), 1, "bankgothic", "left", "top", false, false, true, false, false) end addEventHandler("onClientRender", root,) function a () playSound("Mp3/scroll.mp3") triggerServerEvent("set_skin_1",localPlayer) end addEventHandler("onClientGUIClick",GUIEditor.button[1] , a , false) function e () playSound("Mp3/scroll.mp3") triggerServerEvent("set_skin_2",localplayer) end addEventHandler("onClientGUIClick",GUIEditor.button[2] , e , false) سيرفر function nn () id = math.random(46) setElementModel(source,id) end addEvent("set_skin_1",true) addEventHandler("set_skin_1",root,nn) function mm () skin = math.random(46) setElementModel(source,skin) end addEvent("set_skin_2",true) addEventHandler("set_skin_2",root,mm)
ivor Posted February 19, 2016 Posted February 19, 2016 استخدمsetPlayerSkin بدلاً من setElementModel نفس شي ما يخدم كود و هدا كود كمل كلت GUIEditor = { button = {}, } GUIEditor.button[1] = guiCreateButton(277, 630, 124, 60, "", false) GUIEditor.button[2] = guiCreateButton(625, 636, 124, 49, "", false) GUIEditor.button[3] = guiCreateButton(434, 719, 139, 32, "ok", false) function () dxDrawRectangle(260, 626, 155, 74, tocolor(237, 15, 31, 255), false) dxDrawRectangle(612, 626, 155, 74, tocolor(237, 15, 31, 255), false) dxDrawText(">", 637, 639, 706, 671, tocolor(58, 42, 209, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("<", 284, 641, 378, 695, tocolor(58, 42, 209, 255), 1, "pricedown", "left", "top", false, false, true, false, false) dxDrawRectangle(413, 710, 199, 52, tocolor(97, 238, 12, 255), false) dxDrawText("ok", 453, 717, 566, 754, tocolor(83, 128, 166, 255), 1, "bankgothic", "left", "top", false, false, true, false, false) end addEventHandler("onClientRender", root,) function a () playSound("Mp3/scroll.mp3") triggerServerEvent("set_skin_1",localPlayer) end addEventHandler("onClientGUIClick",GUIEditor.button[1] , a , false) function e () playSound("Mp3/scroll.mp3") triggerServerEvent("set_skin_2",localplayer) end addEventHandler("onClientGUIClick",GUIEditor.button[2] , e , false) سيرفر function nn () id = math.random(46) setElementModel(source,id) end addEvent("set_skin_1",true) addEventHandler("set_skin_1",root,nn) function mm () skin = math.random(46) setElementModel(source,skin) end addEvent("set_skin_2",true) addEventHandler("set_skin_2",root,mm) وش تخبصص انت يا خووي عمر ال DX مايمشي مع الGUI جربتها قبل كذا انا اقسم ذا في سكربت وذا ف سكربت مشان لا يحدث اخطاء
Ahmed Ly Posted February 19, 2016 Author Posted February 19, 2016 استخدمsetPlayerSkin بدلاً من setElementModel نفس شي ما يخدم كود و هدا كود كمل كلت GUIEditor = { button = {}, } GUIEditor.button[1] = guiCreateButton(277, 630, 124, 60, "", false) GUIEditor.button[2] = guiCreateButton(625, 636, 124, 49, "", false) GUIEditor.button[3] = guiCreateButton(434, 719, 139, 32, "ok", false) function () dxDrawRectangle(260, 626, 155, 74, tocolor(237, 15, 31, 255), false) dxDrawRectangle(612, 626, 155, 74, tocolor(237, 15, 31, 255), false) dxDrawText(">", 637, 639, 706, 671, tocolor(58, 42, 209, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("<", 284, 641, 378, 695, tocolor(58, 42, 209, 255), 1, "pricedown", "left", "top", false, false, true, false, false) dxDrawRectangle(413, 710, 199, 52, tocolor(97, 238, 12, 255), false) dxDrawText("ok", 453, 717, 566, 754, tocolor(83, 128, 166, 255), 1, "bankgothic", "left", "top", false, false, true, false, false) end addEventHandler("onClientRender", root,) function a () playSound("Mp3/scroll.mp3") triggerServerEvent("set_skin_1",localPlayer) end addEventHandler("onClientGUIClick",GUIEditor.button[1] , a , false) function e () playSound("Mp3/scroll.mp3") triggerServerEvent("set_skin_2",localplayer) end addEventHandler("onClientGUIClick",GUIEditor.button[2] , e , false) سيرفر function nn () id = math.random(46) setElementModel(source,id) end addEvent("set_skin_1",true) addEventHandler("set_skin_1",root,nn) function mm () skin = math.random(46) setElementModel(source,skin) end addEvent("set_skin_2",true) addEventHandler("set_skin_2",root,mm) وش تخبصص انت يا خووي عمر ال DX مايمشي مع الGUI جربتها قبل كذا انا اقسم ذا في سكربت وذا ف سكربت مشان لا يحدث اخطاء خلاص حليت مشكله
Me[Z]oO Posted February 19, 2016 Posted February 19, 2016 استخدمsetPlayerSkin بدلاً من setElementModel نفس شي ما يخدم كود و هدا كود كمل كلت GUIEditor = { button = {}, } GUIEditor.button[1] = guiCreateButton(277, 630, 124, 60, "", false) GUIEditor.button[2] = guiCreateButton(625, 636, 124, 49, "", false) GUIEditor.button[3] = guiCreateButton(434, 719, 139, 32, "ok", false) function () dxDrawRectangle(260, 626, 155, 74, tocolor(237, 15, 31, 255), false) dxDrawRectangle(612, 626, 155, 74, tocolor(237, 15, 31, 255), false) dxDrawText(">", 637, 639, 706, 671, tocolor(58, 42, 209, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("<", 284, 641, 378, 695, tocolor(58, 42, 209, 255), 1, "pricedown", "left", "top", false, false, true, false, false) dxDrawRectangle(413, 710, 199, 52, tocolor(97, 238, 12, 255), false) dxDrawText("ok", 453, 717, 566, 754, tocolor(83, 128, 166, 255), 1, "bankgothic", "left", "top", false, false, true, false, false) end addEventHandler("onClientRender", root,) function a () playSound("Mp3/scroll.mp3") triggerServerEvent("set_skin_1",localPlayer) end addEventHandler("onClientGUIClick",GUIEditor.button[1] , a , false) function e () playSound("Mp3/scroll.mp3") triggerServerEvent("set_skin_2",localplayer) end addEventHandler("onClientGUIClick",GUIEditor.button[2] , e , false) سيرفر function nn () id = math.random(46) setElementModel(source,id) end addEvent("set_skin_1",true) addEventHandler("set_skin_1",root,nn) function mm () skin = math.random(46) setElementModel(source,skin) end addEvent("set_skin_2",true) addEventHandler("set_skin_2",root,mm) وش تخبصص انت يا خووي عمر ال DX مايمشي مع الGUI جربتها قبل كذا انا اقسم ذا في سكربت وذا ف سكربت مشان لا يحدث اخطاء بلا تخبيص كيف ما يمشي Skype :- mezo.prince1 FaceBook :- https://www.facebook.com/medolua YouTube :- http://www.youtube.com/c/MeZoOPriNse
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