-
Posts
868 -
Joined
-
Last visited
Everything posted by hassan.k.s.a
-
هذا يخلي الشاشه سوداء حمراء زرقاء يرجعها عيديه ..~# fadeCamera -- setCameraMatrix ذاه راح يوجه الكامرا من جهه لجهه getCameraMatrix راح ياخذ احداثيات ال setCameraMatrix وبـ النسبه لـ setCameraInterior اتوقع راح يوجه الكامرا على ألغرفه الي مو في interior 0 -- getCameraInterior هذا راح ياخذ انت في اي غرفه موجهه كاميرتك ..~#
-
+ while بالنسبه لـ elseif بدل ماتكرر ال if if if بأمكآنك تحط الأولى بس if والباقي elseif و end تكون وحده ..
-
جرب -- client edit = guiCreateEdit(20,20,20,20,"",false) button = guiCreateButton(20,40,20,20,"Create",false) addEventHandler("onClientGUIClick",guiRoot,function() if source == button then triggerServerEvent("CreateTeam",localPlayer,guiGetText(edit)) end end) -- server addEvent("CreateTeam",true) addEventHandler("CreateTeam",getRootElement(),function(edit) createTeam(tostring(edit)) setPlayerTeam(source,getTeamFromName(tostring(edit))) end)
-
وضح شوي تبيه مثلا لو مات شخص وهو بعصابة >تيم> ا CoLoNeL ينتقل لـ مقره ؟
-
-- server addCommandHandler("pos", function (player) local x,y,z = getElementPosition(player) outputChatBox("* x : " .. x .. " y : " .. y .. " z : " .. z .. "",root,0,255,0,true) end )
-
سكربت جميل وفيه تطور , لاهنت على الطر .. بالتوفيق ~#
-
سلامات مو كلها صحيحة ! وريني مثال فيه خطأ
-
بدايه جميله .. بالتوفيق ~ُ#
-
مو لازم عالم وهمي
-
ممكن اسويه لك بـ مقابل
-
+ Event : onPlayerLogin Event : onResoureStart
-
جرب -- Server addEvent("XX",true) addEventHandler("XX",getRootElement(),function(e1,e2) local file = xmlLoadFile("FileName.xml") or xmlCreateFile("FileName.xml"," Says") xmlNodeSetValue(xmlCreateChild(file, "Says"), ""..e1.."") xmlNodeSetValue(xmlCreateChild(file, "Says"), ""..e2.."") xmlSaveFile(file) xmlUnloadFile(file) end) -- اذا تبغى يجي الي بالفراغ الاول + الي بالفراغ الثاني + اسم الاعب بـ سطر واحد addEvent("XX",true) addEventHandler("XX",getRootElement(),function(e1,e2) local file = xmlLoadFile("FileName.xml") or xmlCreateFile("FileName.xml"," Says") xmlNodeSetValue(xmlCreateChild(file, "Says"), "Name Player : "..getPlayerName(source).." **** "..e1.." ***** "..e2.."") xmlSaveFile(file) xmlUnloadFile(file) end) -- Client addEventHandler("onClientGUIClick",guiRoot,function() if source == اسم الزر then triggerServerEvent("XX",localPlayer,guiGetText(للفراغ ألأولEditاسم ال),guiGetText(للفراغ الثانيEditاسم ال)) end end)
-
سكربت جميل ومفيد لاهنت على الطرح
-
https://community.multitheftauto.com/ind ... ls&id=5212 https://community.multitheftauto.com/ind ... ls&id=5259 https://community.multitheftauto.com/ind ... ls&id=5309 https://community.multitheftauto.com/ind ... ls&id=5720 DONE
-
والله فنكشن روعه لاهنت على طرحه ضيفه هنا https://wiki.multitheftauto.com/wiki/Useful_Functions
-
مافهمت وضح اكثر
-
Example : >>Server Side Only<< team = createTeam("Test",255,255,255) setTeamFriendlyFire(team,false)
-
مو بأي حآله تستخدم source على حسب موقعها .
-
خخخخخخخخخخخخخ حتى الكفره نسخ بالعقل ولصق بالكتابه !
-
--Server addCommandHandler("KickAllPlayer",function() for i,v in ipairs(getElementsByType("player")) do kickPlayer(v,"Maintenance") end end) اضف المود بقروب ادمن
-
العفو + اخر كود مايجيب لاق جرب اخر كود طرحته لك
-
جرب ذا احسن -- Client function getElementSpeed(element,unit) if unit == nil then unit = 0 end if isElement ( element ) then local x,y,z = getElementVelocity ( element ) if ( unit == "mph" or unit == 1 or unit == "1" ) then return ( x^2 + y^2 + z^2 ) ^ 0.5 * 100 else return ( x^2 + y^2 + z^2 ) ^ 0.5 * 1.61 * 100 end else return false end end setTimer(function() local Veh = getPedOccupiedVehicle(localPlayer) local Speed = getElementSpeed(Veh,"kmh") if Speed > 120 then if isElement(sound) then destroyElement(sound) end local sound = playSound("name.mp3") setSoundVolume(sound,0.9) else setSoundVolume(sound,0) end end,700,0)
-
جرب -- Client addEventHandler("onClientRender",getRootElement(),function() triggerServerEvent("getSpeed",localPlayer) end) addEvent("StartSound",true) addEventHandler("StartSound",getRootElement(),function() local sound = playSound("name.mp3") setSoundVolume(sound,0.9) end) addEvent("StopSound",true) addEventHandler("StopSound",getRootElement(),function() destroyElement(sound) end) -- Server function getElementSpeed(element,unit) if unit == nil then unit = 0 end if isElement ( element ) then local x,y,z = getElementVelocity(element) if ( unit == "mph" or unit == 1 or unit == "1" ) then return ( x^2 + y^2 + z^2 ) ^ 0.5 * 100 else return ( x^2 + y^2 + z^2 ) ^ 0.5 * 1.61 * 100 end else return false end end addEvent("getSpeed",true) addEventHandler("getSpeed",getRootElement(),function() local Veh = getPedOccupiedVehicle(source) local Speed = getElementSpeed (Veh,"kmh") if Speed > 120 then triggerClientEvent(source,"StartSound",source) else triggerClientEvent(source,"StopSound",source) end end)