Ja[B]er[X]Pro Posted January 24, 2016 Share Posted January 24, 2016 السلام عليكم ورحمة الله وبركاته ابي فنكشنات سويت صنع شخصية كل 30 تانية ابي عند دخول لاعب للماركر يبدأ يجيه شخصيات وهو فقط يقدر يشوفها وعندما تصير 5 سويت ماركر يفتح لوحة ابي عند الضغط على زر البيع باللوحة اذا كان عند الاعب 5 شخصيات يعطيه فلوس ويمسح الشخصيات Link to comment
Ja[B]er[X]Pro Posted January 24, 2016 Author Share Posted January 24, 2016 للي ما معه كل الفنكشنات يقدر يعطني الي يعرفها Link to comment
shwaeki Posted January 24, 2016 Share Posted January 24, 2016 table createMarker "onClientMarkerHit" setTimer createPed table.insert "onClientGUIClick" destroyElement triggerServerEvent givePlayerMoney Link to comment
Ja[B]er[X]Pro Posted January 24, 2016 Author Share Posted January 24, 2016 ممكن شرح table + table.insert ?? Link to comment
shwaeki Posted January 24, 2016 Share Posted January 24, 2016 https://forum.multitheftauto.com/viewtopic.php?f=164&t=50471 Link to comment
Ja[B]er[X]Pro Posted January 24, 2016 Author Share Posted January 24, 2016 ما فهمت table.insert اعرف الجداول Link to comment
shwaeki Posted January 24, 2016 Share Posted January 24, 2016 هو انتا لحقت تشوف الشرح شوفة بفهم كلشي Link to comment
Ja[B]er[X]Pro Posted January 24, 2016 Author Share Posted January 24, 2016 هو انتا لحقت تشوف الشرح شوفة بفهم كلشي شفته من قبل Link to comment
shwaeki Posted January 24, 2016 Share Posted January 24, 2016 https://forum.multitheftauto.com/viewtopic.php?f ... 1516&hilit Link to comment
Ja[B]er[X]Pro Posted January 24, 2016 Author Share Posted January 24, 2016 https://forum.multitheftauto.com/viewtopic.php?f=160&t=73697&p=681516&hilit شكراً لك Link to comment
Ja[B]er[X]Pro Posted January 24, 2016 Author Share Posted January 24, 2016 كيف اخليها تلحقني؟ Link to comment
shwaeki Posted January 24, 2016 Share Posted January 24, 2016 مثال على بيد بلحقك ped = createPed(0, getElementPosition(localPlayer)) addEventHandler("onClientRender", root, function() local x, y, z = getElementPosition(localPlayer) local tx, ty, tz = getElementPosition(ped) local dis = getDistanceBetweenPoints2D(x, y, tx, ty) if dis > 2 then setPedControlState(ped, "forwards", true) else setPedControlState(ped, "forwards", false) end setPedRotation(ped, findRotation(tx, ty, x, y)) end) function findRotation(x1,y1,x2,y2) local t = -math.deg(math.atan2(x2-x1,y2-y1)) if t < 0 then t = t + 360 end return t end Link to comment
Ja[B]er[X]Pro Posted January 24, 2016 Author Share Posted January 24, 2016 مثال على بيد بلحقك ped = createPed(0, getElementPosition(localPlayer)) addEventHandler("onClientRender", root, function() local x, y, z = getElementPosition(localPlayer) local tx, ty, tz = getElementPosition(ped) local dis = getDistanceBetweenPoints2D(x, y, tx, ty) if dis > 2 then setPedControlState(ped, "forwards", true) else setPedControlState(ped, "forwards", false) end setPedRotation(ped, findRotation(tx, ty, x, y)) end) function findRotation(x1,y1,x2,y2) local t = -math.deg(math.atan2(x2-x1,y2-y1)) if t < 0 then t = t + 360 end return t end شكراً 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