AliAlanzi Posted October 10, 2017 Share Posted October 10, 2017 (edited) انا عندي لوحه ابي داخل ل gridlist يطلع اسم اي شخص جمبي او كل الي بالسيرفر اللافضل الي جمبي Edited October 10, 2017 by Ghost-Gamer Link to comment
iMr ~ MnHmAr Posted October 10, 2017 Share Posted October 10, 2017 (edited) https://wiki.multitheftauto.com/wiki/GuiGridListAddPlayers ادخل و شوف هذا اليوزفل يجيب لك كل الاعبين المتصلين بـ قريد ليست Edited October 10, 2017 by iMr ~ MnHmAr Link to comment
Ahmed Ly Posted October 10, 2017 Share Posted October 10, 2017 function refreshgirdlist () for _,v in ipairs ( getElementsByType ( "player" ) ) do x,y,z = getElementPosition(localPlayer) x1,y1,z1 = getElementPosition(v) Distance = getDistanceBetweenPoints3D (x,y,z,x1,y1,z1) if Distance <= 50 then -- your code end end end Link to comment
AliAlanzi Posted October 18, 2017 Author Share Posted October 18, 2017 On 10/10/2017 at 20:58, Ahmed Ly said: function refreshgirdlist () for _,v in ipairs ( getElementsByType ( "player" ) ) do x,y,z = getElementPosition(localPlayer) x1,y1,z1 = getElementPosition(v) Distance = getDistanceBetweenPoints3D (x,y,z,x1,y1,z1) if Distance <= 50 then -- your code end end end --your code كود حق لوحه ولا وشش Link to comment
+Source|> Posted October 18, 2017 Share Posted October 18, 2017 2 hours ago, Ghost-Gamer said: --your code كود حق لوحه ولا وشش function refreshgirdlist () guiGridListClear(yourgrid) for _,v in ipairs ( getElementsByType ( "player" ) ) do x,y,z = getElementPosition(localPlayer) x1,y1,z1 = getElementPosition(v) Distance = getDistanceBetweenPoints3D (x,y,z,x1,y1,z1) if Distance <= 50 then -- your code اتوقع مثل guiGridListSetItemText end end end Link to comment
Adham Posted October 18, 2017 Share Posted October 18, 2017 أفضل isElementInRange https://wiki.multitheftauto.com/wiki/IsElementInRange 1 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