./BlackBird# Posted September 25, 2012 Share Posted September 25, 2012 هل في كود يجيب عدد اللاعبين في الماركر؟ Link to comment
TAPL Posted September 25, 2012 Share Posted September 25, 2012 الكود function getPlayerContInMarker(theMarker) i = 0 for _, player in ipairs(getElementsByType("player")) do if isElementWithinMarker(player, theMarker) then i = i + 1 end end return i end مثال على طريقة الأستخدام marker = createMarker = (...) addCommandHandler("cont", function(player) local cont = getPlayerContInMarker(marker) outputChatBox("There are "..cont.." players in the marker", player,255,255,255,true) end) .ملاحظة: الكود ما جربته إذا في أي مشكلة عطني خبر Link to comment
RLP[Farouk] Posted September 25, 2012 Share Posted September 25, 2012 وش هو الماركر؟؟؟؟؟؟؟؟ Link to comment
TAPL Posted September 25, 2012 Share Posted September 25, 2012 وش هو الماركر؟؟؟؟؟؟؟؟ A marker is a 3D model in the world that can highlight a particular point or area, often used to instruct players where to go to perform actions such as entering buildings. https://wiki.multitheftauto.com/wiki/CreateMarker Link to comment
./BlackBird# Posted September 26, 2012 Author Share Posted September 26, 2012 WARNING:Loading script failed: marker\1.lua:10 unexpected symbol near '=' Link to comment
hassan.k.s.a Posted September 26, 2012 Share Posted September 26, 2012 WARNING:Loading script failed: marker\1.lua:10 unexpected symbol near '=' أتأكد من نسخك للكود ممكن انك زدت = في ألأكواد Link to comment
./BlackBird# Posted September 26, 2012 Author Share Posted September 26, 2012 خخخ والله انك صادق الحين بجرب Link to comment
./BlackBird# Posted September 26, 2012 Author Share Posted September 26, 2012 كفوو اشتغل شكرا 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