
PaiN^
Members-
Posts
2,258 -
Joined
-
Last visited
Everything posted by PaiN^
-
Very nice, You really have a great talent .
-
There are ways to decompile scripts, but no one will help you with that here ( because that's steeling ! ) . And there are also many ways to compile scripts, I like this one : DZEK's On-line LUA compiler
-
سهلة للي يعرفولها, أنا قبل ما كنت أقدر استخدمها و كانت معقدتني جدا, بس الحمد لله عرفتلها كيف وقلت خلني افيد غيري + ^^ منور
-
It makes no sens at all to give the player money with onPlayerQuit ! And why are you doing this : function busJob(thePlayer) local theVehicle = getPedOccupiedVehicle (thePlayer) local id = getElementModel(theVehicle) if id == 431 or id == 437 or id == 582 or id == 556 or id == 459 or id == 428 or id == 498 or id == 508 or id == 413 then local x, y, z = getNewBusLocation(thePlayer, 1) setElementData(thePlayer,"buszp",0) setElementData(thePlayer,"busData",1) else end end addEventHandler("onVehicleEnter",rootElement,busJob) function busStart(thePlayer) local theVehicle = getPedOccupiedVehicle (thePlayer) local id = getElementModel(theVehicle) if id == 431 or id == 437 or id == 582 or id == 556 or id == 459 or id == 428 or id == 498 or id == 508 or id == 413 then outputChatBox("Otobus&Minibus gorevini baslatmak icin haritada belirtilen noktaya gidin!", thePlayer, 255, 255, 0) end end addEventHandler("onVehicleEnter",rootElement,busStart) Instead of : function busJob(thePlayer) local id = getElementModel(source) if busses[id] then local x, y, z = getNewBusLocation(thePlayer, 1) setElementData(thePlayer,"buszp",0) setElementData(thePlayer,"busData",1) outputChatBox("Otobus&Minibus gorevini baslatmak icin haritada belirtilen noktaya gidin!", thePlayer, 255, 255, 0) end end addEventHandler("onVehicleEnter",rootElement,busJob) Try this server side : local rootElement = getRootElement( ) local busses = { [431] = true, [437] = true, [582] = true, [456] = true, [459] = true, [428] = true, [498] = true, [508] = true, [413] = true } local busTable = { [1]={1269.98, -1852.29, 13.3828},[2]={1181.87, -1796.36, 13.3984},[3]={1164.47, -1712.17, 13.7231},[4]={1038.74, -1712.84, 13.4254},[5]={1037.64, -1558.29, 13.3862}, [6]={1061.46, -1443.02, 13.4006},[7]={1051.46, -1396.45, 13.4565},[8]={825.122, -1395.14, 13.3444},[9]={648.371, -1395.33, 13.3444},[10]={635.96, -1252.67, 17.1576}, [11]={554.18, -1122.47, 27.2105},[12]={238.52, -1170.34, 19.5841},[13]={-43.18, -1354.07, 11.2299},[14]={-284.8, -1642.00, 15.5116},[15]={-354.4, -1831.65, 22.2320}, [16]={-348.6, -2125.50, 28.3879},[17]={-174.6, -2413.64, 35.6235},[18]={-36.62, -2711.40, 42.0042},[19]={-315.0, -2800.08, 57.5757},[20]={-757.3, -2764.34, 74.7090}, [21]={-1141, -2850.020, 67.7570},[22]={-1569, -2742.080, 48.5795},[23]={-1966, -2547.510, 38.2349},[24]={-2191, -2370.410, 30.5065},[25]={-2212, -2264.740, 30.5055}, [26]={-2102, -2078.130, 63.1302},[27]={-1820, -1726.650, 29.1070},[28]={-1400, -1648.350, 45.1570},[29]={-1144, -1899.890, 77.5020},[30]={-802.3, -1785.11, 92.2070}, [31]={-758.6, -1454.05, 87.8020},[32]={-652.7, -1420.18, 90.4095},[33]={-572.8, -1070.35, 23.5500},[34]={-372.0, -823.054, 28.4015},[35]={-189.6, -938.291, 35.3530}, [36]={-55.70, -858.507, 13.7823},[37]={-113.0, -402.609, 1.10380},[38]={-221.9, 187.8397, 8.88888},[39]={-63.88, 551.1700, 9.22222},[40]={323.85, 753.2600, 6.15222}, [41]={740.54, 657.1210, 10.7505},[42]={1099.8, 803.8835, 10.7070},[43]={1556.6, 831.4191, 6.80807},[44]={1785.1, 798.4346, 11.2008},[45]={1605.7, 116.6938, 37.2020}, [46]={1701.3, -644.311, 41.8010},[47]={1635.6, -884.206, 52.5121},[48]={1798.2, -1037.61, 39.4545},[49]={2223.8, -1137.70, 25.6588},[50]={2269.0, -1209.68, 23.9119}, [51]={2196.8, -1382.42, 23.8575},[52]={2110.5, -1427.29, 23.8566},[53]={2002.0, -1459.51, 13.4255},[54]={1842.8, -1508.62, 13.3936},[55]={1819.2, -1865.68, 13.4469}, [56]={1779.7, -1917.97, 13.4165},[57]={1811.2, -1890.22, 13.4372},[58]={1798.6, -1830.07, 13.4257},[59]={1680.3, -1859.67, 13.4131},[60]={1468.2, -1869.85, 13.4074}, } createBlip( 1256.6, -1812.2, 13.41, 55, 3, 0, 0, 255, 255, 0, 250 ) function getNewBusLocation( thePlayer, ID ) local x, y, z = busTable[ID][1], busTable[ID][2], busTable[ID][3] triggerClientEvent( thePlayer, "bus_set_location", thePlayer, x, y, z ) return x, y, z end function busJob( thePlayer ) local id = getElementModel( source ) if busses[id] then local x, y, z = getNewBusLocation( thePlayer, 1 ) setElementData( thePlayer,"buszp", 0 ) setElementData( thePlayer,"busData", 1 ) outputChatBox( "Otobus&Minibus gorevini baslatmak icin haritada belirtilen noktaya gidin!", thePlayer, 255, 255, 0 ) end end addEventHandler( "onVehicleEnter", rootElement, busJob ) addEvent( "bus_finish", true ) addEventHandler( "bus_finish", rootElement, function( client ) if not isPedInVehicle( client ) then return end if not busses[getElementModel( getPedOccupiedVehicle( client ) )] then return end local zarp = getElementData( client, "buszp" ) local money = math.random( 10, 20 ) setElementData( client, "buszp", zarp + money ) if #busTable == tonumber( getElementData( client, "busData" ) ) then setElementData( client, "busData", 1 ) else setElementData( client, "busData", tonumber( getElementData( client, "busData" ) ) + 1 ) end getNewBusLocation( client, tonumber( getElementData( client, "busData" ) ) ) end ) function giveMoney( thePlayer ) local id = getElementModel( source ) if busses[id] then local gpm = getElementData( thePlayer, "buszp" ) if gpm > 0 then givePlayerMoney( thePlayer, tonumber( gpm ) ) outputChatBox( "Kazandiginiz miktar " .. gpm .. " $", thePlayer, 0, 140, 240 ) setElementData( thePlayer, "buszp", 0 ) end end end addEventHandler( "onVehicleExit", rootElement, giveMoney )
-
This resource helps you to add cool effects to any GUI element using interpolateBetween function in a much easier way . ____________________________ 1. Export the function guiAddInterpolateEffect from the resource . 2. That's it . * Syntax : guiAddInterpolateEffect( element gui_element, int startX, int startY, int startW, int startH, int endX, int endY, int endW, int endH, int progress string positionEasingType, string sizeEasingType, bool showing ) * Parameters : - gui_element : The GUI element you wish to add effects on . - startX, startY, startW, startH : The starting coordinates and measurements of the GUI element . - endX, endY, endW, endH : The ending coordinates and measurements of the GUI element . - progress : The progress of the movment in seconds . - positionEasingType : The easing type that effects the position of the GUI element . - sizeEasingType : The easing type that effects the size of the GUI element . / To check easing types, Click Here - showing : Should the window disapper after the effect or not . ____________________________ You can download the resource from my community page, Here ____________________________ And That's it , Comment your opinions, ideas and reports here or at the community site . See ya
-
السلام عليكم و رحمة الله و بركآته ؛ _______________________ GIE ( GUI Interpolate Effects ) تم بفضل الله و توفيقه الإنتهاء من مشروع في راسي من فترة, إلي هو _______________________ و اللي من خلالها تقدر تضيف تأثيرات جميلة جدا لطريقة عرض النوافذ interpolateBetween طبعا أغلبكم يعرف الوظيفة . لكن طريقتها صعبة شوي للبعض, حتى أنا كنت متعقد منها, فقررت إني أسوي هذا المود إللي يسهل إستخدامها بشكل رائع _______________________ 1. من المود guiAddInterpolateEffect تقوم باستخراج وظيفة 2. إستعملها و إنتهيت * Syntax : guiAddInterpolateEffect( element gui_element, int startX, int startY, int startW, int startH, int endX, int endY, int endW, int endH, int progress string positionEasingType, string sizeEasingType, bool showing ) * Parameters : - gui_element : اللي تبغ تضيف له التأثير GUI النافذة أو عنصر الـ - startX, startY, startW, startH : إحداثيات البداية حقت النافذة إللي بتضيف لها التأثير - endX, endY, endW, endH : إحداثيات النهاية حقت النافذة اللي بتضيف لها التأثير - progress : المدة اللي يستغرقها التأثير بالثواني - positionEasingType : إللي يأثر في احداثيات الموقع easing نوع الـ - sizeEasingType : إللي يأثر في احداقيات الحجم easing نوع الـ / تقدر تشوفها من هنا easing أنواع الـ - showing : هل تختفي النافذة أو تبقى ظاهرة بعد نهاية التأثير _______________________ https://community.multitheftauto.com/index.php?p=resources&s=details&id=7812 : من هنا و بكذا نكون خلصنا, فما كان صوابا فبتوفيق من ربي, وما أخطأت فيه فبقدر من ربي _______________________ و السلآم خير ختآم ؛
-
انت كل اللي سويته انك صممت اللوحة ! و القسم غلط !
-
هذا راح ياخذ كل اسلحته لمن يخرج من الفريق اللي هو فيه local xx = createTeam( "xxxxxx", 55, 55, 55 ) function unassignTeam( source ) local team = getPlayerTeam( source ) if team then for i = 1, 12 do takeWeapon( source, i ) end end setPlayerTeam( source, xx ) end addCommandHandler( "outteam", unassignTeam )
-
لا مو ممكن الكود كامل, هذا منتدى للتعليم مو الطلبات ممكن يفيدك غيري, بس أنا اعذرني ما راح أسويه لك
-
و عليكم السلام GUIEditor النافذة سويها بالـ و بالنسبة لفتح النافذة للآدمن فقط استخدم : -- server addCommandHandler getPlayerAccount getAccountName isObjectInACLGroup triggerClientEvent -- client guiSetVisible showCursor و بالنسبة لإعطاء الأدمنية لوقت معين استخدم : getPlayerFromName getPlayerAccount getAccountName aclGroupAddObject setTimer aclGroupRemoveObject و القسم خطأ
-
و عليكم السلام و رحمه الله و بركاته بالنسبة لطلبك الأول أعتقد استخدم : createMarker "onMarkerHit" getElementData or getPlayerTeam moveObject setTimer killTimer killPed -------------- "onPlayerWasted" getElementData or getPlayerTeam spawnPlayer و بالنسبة لطلبك الثاني : createMarker "onMarkerHit" getElementHealth + setElementHealth و القسم خطأ
-
مبدع كعادتك يا سورآ لاهنت عالطرح الجميل و المفيد و في انتظار ابداعاتك
-
مود جميل و فكرته رائعة الصراحة ! Alcatraz أبدعت يا
-
Then, Contact the author of the script . No one can help you more than him .
-
Replace the script with this : --[ Scoreboard flag ]-- --[ by 3aSH8_aLsHrq ]-- --[ [email protected] ]-- exports.scoreboard:addScoreboardColumn( "Home" ) function showcountry( source ) local flag = exports.admin:getPlayerCountry( source ) or "N/A" if not flag or flag == "N/A" then setElementData( source, "Home", "N/A" ) else setElementData( source, "Home", ":admin/client/images/flags/".. flag .. ".png" ) end end addEventHandler( "onResourceStart", resourceRoot, function( ) for k,v in ipairs( getElementsByType( "player" ) ) do showcountry( v ) end end ) addEventHandler( "onPlayerJoin", root, showcountry )
-
The Best مو jafar الداتا تسويها للماركر مو للاعب, و انت تقصد
-
@ abxf : I don't think that element data is the best way to do it . @ iMr.3a[Z]eF : Why use "setElementPosition" while you have "moveObject" ? @ DYNAMO : Not tested, But Try this : local Elevator = createObject( 3885, 1525.546875, -1352.9073486328, 328.25183105469, 0 , 0 , 0 ) local level = 0 local levels = { [ 0 ] = { x, y, z }, [ 1 ] = { x, y, z }, [ 2 ] = { x, y, z } } function checkTheLevel( ) if level and tonumber( level ) then if level >= #levels - 1 then level = 0 else level = level + 1 end return level end return false end function moveElevator( ) local nextLevel = checkTheLevel( ) if nextLevel then local x, y, z = unpack( levels[ nextLevel ] ) moveObject( Elevator, 6000, x, y, z ) end end addCommandHandler( "swat3", moveElevator )
-
Events : onClientGUIClick or onClientGUIDoubleClick Functions : guiGridListGetSelectedItem - guiGridListGetItemText - triggerServerEvent - createVehicle ( - warpPedIntoVehicle ) .
-
ترى يا ذا بيست في ناس تشوف الاكواد اللي نحن نسويها صعبة و طلاسم و كذا ذذ انت لو تتعلم شويتين بتحس انها سهلة جدا وسخيفة
-
أجل لازم تكلم دعمهم ذذ و القسم غلط
-
في فرق بين النقد البناء و النقد الهدام يا ذا بيست استمر وننتظر الافضل منك AhmeD~9MoD و بداية حلوة يا
-
Try triggering an event from the userpanel and then add it handler to your script . e.g. : -- Something like this on your userpanel givePlayerMoney( player, amount ) triggerEvent( "onPlayerGetMoney", player, amount ) And then, But in the other code : addEvent( "onPlayerGetMoney", true ) addEventHandler( "onPlayerGetMoney", root, function( amount ) local current_money = getElementData( source, "MyMoney" ) setElementData( source, "MyMoney",current_money + amount ) end )