hassan.k.s.a Posted July 23, 2012 Share Posted July 23, 2012 (edited) * Edited March 25, 2013 by Guest Link to comment
Tete omar Posted July 23, 2012 Share Posted July 23, 2012 استخدم GUIEditor أسهل لك حمل من هنا: https://community.multitheftauto.com/ind ... ils&id=141 Link to comment
hassan.k.s.a Posted July 23, 2012 Author Share Posted July 23, 2012 (edited) * Edited March 25, 2013 by Guest Link to comment
Tete omar Posted July 23, 2012 Share Posted July 23, 2012 onClientGUIClick guiGetScreenSize guiCreateStaticImage createPed createVehicle setPedSkin warpPedIntoVehicle playSound -- اذا تبي يجي صوت بالناسبة للسيارات والشخصيات لازم تسوي table عليهم واستخدم onPlayerJoin Link to comment
hassan.k.s.a Posted July 23, 2012 Author Share Posted July 23, 2012 (edited) * Edited March 25, 2013 by Guest Link to comment
Tete omar Posted July 23, 2012 Share Posted July 23, 2012 وش فايدة خلق شخصيه + سياره ؟ولا قصدك وضيفة table هي الي تطلعهم في السكرين ؟ يب , خذ الاي دي حق كل شخصيه وسياره تبيها وحطها بال table بس سوي 2 table عشان لا شي يتلخبط Link to comment
hassan.k.s.a Posted July 23, 2012 Author Share Posted July 23, 2012 (edited) * Edited March 25, 2013 by Guest Link to comment
Tete omar Posted July 23, 2012 Share Posted July 23, 2012 زي كذا hassan = {} -- هنا بين القوسين تحط الاي دي حق السياره الي تبيها -- مثلاً -- hassan = { --540, 456 الخ ... --} hassanksa = {} -- هنا بين القوسين تحط الايدي حق الشخصيه الي تبيها -- مثلاً -- hassanksa = { --14, 0, 123 الخ... --} function hassanAgain() hassan[1] = createVehicle(getElementModel(getRootElement()), x, y, z, rx, ry, rz) hassanksa[1] = createPed(getElementModel(getRootElement()), x, y, z, rx, ry, rz) end Link to comment
hassan.k.s.a Posted July 23, 2012 Author Share Posted July 23, 2012 (edited) * Edited March 25, 2013 by Guest Link to comment
Tete omar Posted July 23, 2012 Share Posted July 23, 2012 ممكن ليش لا استخدم setCameraMatrix -- هذي تحط الكام في منطقة بعيد عن الاعب وحط المكان الي تبي السيارات تظهر فيه Link to comment
hassan.k.s.a Posted July 23, 2012 Author Share Posted July 23, 2012 (edited) * Edited March 25, 2013 by Guest Link to comment
Tete omar Posted July 23, 2012 Share Posted July 23, 2012 fadeCamera هذي مو لازم يعني لمن يتسوالك سباون يجيك شاشة سودة بعدين ينزلك في المنطقة المحددة الخ .. المهم سويها onPlayerJoin Link to comment
hassan.k.s.a Posted July 23, 2012 Author Share Posted July 23, 2012 (edited) * Edited March 25, 2013 by Guest Link to comment
TAPL Posted July 23, 2012 Share Posted July 23, 2012 addEvent("car1",true) addEventHandler("car1",root, function() if (getPlayerMoney(source) >= 605000) then takePlayerMoney(source,605000) local x, y, z = getElementPosition(source) vehicle = createVehicle(411, x, y, z) warpPedIntoVehicle(source, vehicle) outputChatBox("#ffffff"..getPlayerName(source).." #ffffff Buy Car ...", root, 255, 0, 0, true) else outputChatBox("You don't have $605000 to buy car", source, 255, 0, 0, true) end end) Link to comment
hassan.k.s.a Posted July 23, 2012 Author Share Posted July 23, 2012 (edited) * Edited March 25, 2013 by Guest Link to comment
TAPL Posted July 23, 2012 Share Posted July 23, 2012 صورة كبر الشاشة local image = guiCreateStaticImage(0.0,0.0,1.0,1.0,"xxx.png",true) بالنسبة للمربع ذا الصورة فيها مربع فاضي بالفوتوشوب و تحتاج تستخدم ذا عشان تحط الكاميرا على مكان السيارات أو الشخصية https://wiki.multitheftauto.com/wiki/setCameraMatrix Link to comment
hassan.k.s.a Posted July 23, 2012 Author Share Posted July 23, 2012 (edited) * Edited March 25, 2013 by Guest Link to comment
TAPL Posted July 23, 2012 Share Posted July 23, 2012 بالويكي موجود مثال https://wiki.multitheftauto.com/wiki/SetCameraMatrix Link to comment
hassan.k.s.a Posted July 23, 2012 Author Share Posted July 23, 2012 (edited) * Edited March 25, 2013 by Guest Link to comment
Al3grab Posted July 23, 2012 Share Posted July 23, 2012 Vehz = {} addEvent("sonata2012",true) addEventHandler("sonata2012",root, function() if (getPlayerMoney(source) >= 605000) then takePlayerMoney(source,605000) if Vehz[source] then if isElement(Vehz[source]) then destroyElement(Vehz[source]) end end local x, y, z = getElementPosition(source) Vehz[source] = createVehicle(411, x, y, z) warpPedIntoVehicle(source, Vehz[source]) setCameraMatrix(source, x-2,y-3,z,x,y,z) -- change the math numbers fadeCamera(source, false) setTimer ( fadeCamera , 50000, 1 ,source,true) setTimer ( destroyElement , 50000, 1, Vehz[source]) outputChatBox("#ffffff"..getPlayerName(source).." #ffffff Buy Car ...", root, 255, 0, 0, true) else outputChatBox("You don't have $605000 to buy car", source, 255, 0, 0, true) end end) Link to comment
hassan.k.s.a Posted July 23, 2012 Author Share Posted July 23, 2012 Thanks All Very Goog Al3grb 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