./BlackBird# Posted September 25, 2012 Posted September 25, 2012 هل في كود يجيب عدد اللاعبين في الماركر؟
TAPL Posted September 25, 2012 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) .ملاحظة: الكود ما جربته إذا في أي مشكلة عطني خبر
TAPL Posted September 25, 2012 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
./BlackBird# Posted September 26, 2012 Author Posted September 26, 2012 WARNING:Loading script failed: marker\1.lua:10 unexpected symbol near '='
hassan.k.s.a Posted September 26, 2012 Posted September 26, 2012 WARNING:Loading script failed: marker\1.lua:10 unexpected symbol near '=' أتأكد من نسخك للكود ممكن انك زدت = في ألأكواد
./BlackBird# Posted September 26, 2012 Author Posted September 26, 2012 خخخ والله انك صادق الحين بجرب
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