3tibe511 Posted July 8, 2013 Share Posted July 8, 2013 السلام عليكم ابي اخلي لمن المس الماركر يطلعه من التيم وش هي الفنكشات Link to comment
iPrestege Posted July 8, 2013 Share Posted July 8, 2013 onMarkerHit event getElementType setPlayerTeam nil Link to comment
3tibe511 Posted July 8, 2013 Author Share Posted July 8, 2013 طيب انا شفت في الويكي هاذا RemovePlayerFromTeam هاذا مثال ولا فنكش Link to comment
iPrestege Posted July 8, 2013 Share Posted July 8, 2013 طيب انا شفت في الويكي هاذا RemovePlayerFromTeam هاذا مثال ولا فنكش Wiki : This function is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be an alternative (usually more generic) way of performing what it once did. :# Link to comment
3tibe511 Posted July 8, 2013 Author Share Posted July 8, 2013 وش المشكلة function removes ( source) local theTeam = getPlayerTeam ( source ) if theTeam then setPlayerTeam ( source, nil ) end end addEventHandler ( "onMarkerHit", getRootElement(), removes ) اخذت هاذا من الويكي وطبقت عليه Link to comment
iPrestege Posted July 8, 2013 Share Posted July 8, 2013 function removes ( v ) if getElementType ( v ) == 'player' then local theTeam = getPlayerTeam ( v ) if theTeam then setPlayerTeam ( v, nil ) end end end addEventHandler ( "onMarkerHit", getRootElement(), removes ) تبية لكل الماركرات؟ مسوية روت آنت ^^ Link to comment
3tibe511 Posted July 8, 2013 Author Share Posted July 8, 2013 ذذ انا ساحب على البرمجة كثير ونسيت طيب هو كذا؟ function removes ( source) local theTeam = getPlayerTeam ( source ) if theTeam then setPlayerTeam ( source, nil ) end end addEventHandler ( "onMarkerHit" , Door, removes ) Link to comment
iPrestege Posted July 8, 2013 Share Posted July 8, 2013 function removes ( v ) if getElementType ( v ) == 'player' then local theTeam = getPlayerTeam ( v ) if theTeam then setPlayerTeam ( v, nil ) end end end addEventHandler ( "onMarkerHit",Door, removes,false ) Link to comment
3tibe511 Posted July 8, 2013 Author Share Posted July 8, 2013 الماركر ماطلعني من التيم والدي بوق مايقول شي Link to comment
iPrestege Posted July 8, 2013 Share Posted July 8, 2013 جرب غير ذي : setPlayerTeam ( v, nil ) To : setPlayerTeam ( v, nil,nil ) Link to comment
فاّرس Posted July 8, 2013 Share Posted July 8, 2013 جرب غير ذي : setPlayerTeam ( v, nil ) To : setPlayerTeam ( v, nil,nil ) bool setPlayerTeam ( player thePlayer, team theTeam ) كيف يجي ارقومنت ثالث ذذ ؟ Link to comment
iPrestege Posted July 8, 2013 Share Posted July 8, 2013 جرب غير ذي : setPlayerTeam ( v, nil ) To : setPlayerTeam ( v, nil,nil ) bool setPlayerTeam ( player thePlayer, team theTeam ) كيف يجي ارقومنت ثالث ذذ ؟ انتظر ردهـ .. Link to comment
iPrestege Posted July 8, 2013 Share Posted July 8, 2013 -_-" متاكد انك بتيم؟ لاني فكيت الادمنية حطيت نفسي بـ تيم سويت الكود execute < صار تدري نزل كودك مع الماركر ورني اجربة Link to comment
3tibe511 Posted July 8, 2013 Author Share Posted July 8, 2013 (edited) local door = createMarker( 390.7548828125, 173.8486328125, 1007.3828125, "cylinder", 1.5, 255, 0, 0, 255 ) function removes ( v ) if getElementType ( v ) == 'player' then local theTeam = getPlayerTeam ( team1 ) if theTeam then setPlayerTeam ( v, nil,nil ) end end end addEventHandler ( "onMarkerHit",door, removes,false ) Edited July 8, 2013 by Guest Link to comment
فاّرس Posted July 8, 2013 Share Posted July 8, 2013 local door = createMarker( 390.7548828125, 173.8486328125, 1007.3828125, "cylinder", 1.5, 255, 0, 0, 255 ) function removes ( v ) if getElementType ( v ) == 'player' then local theTeam = getPlayerTeam ( v ) if theTeam then setPlayerTeam ( v, nil ) end end end addEventHandler ( "onMarkerHit",door, removes ) اكيد بيجي خطأ لان في ارقومنت ثالث ذذ , + الكود شغال مجربه ذذ , تأكد انك بتيم Link to comment
iPrestege Posted July 8, 2013 Share Posted July 8, 2013 (edited) local door = createMarker( 390.7548828125, 173.8486328125, 1007.3828125, "cylinder", 1.5, 255, 0, 0, 255 ) function removes ( v ) if getElementType ( v ) == 'player' then local theTeam = getPlayerTeam ( v ) if theTeam then setPlayerTeam ( v, nil ) end end end addEventHandler ( "onMarkerHit",door, removes ) اكيد بيجي خطأ لان في ارقومنت ثالث ذذ , + الكود شغال مجربه ذذ , تأكد انك بتيم لا خطأ ولا شيء عزيزي هذا بعض الاحيان ماتصير تضيفها تصير جرب بنفسك ^^ أبشرك من أول كود عطيتة شغال Edited July 8, 2013 by Guest Link to comment
iPrestege Posted July 8, 2013 Share Posted July 8, 2013 تأكد الميتا لاني متاكد انة غلطان ذذ؟ Link to comment
3tibe511 Posted July 8, 2013 Author Share Posted July 8, 2013 (edited) الميتا صحيح Edited July 8, 2013 by Guest Link to comment
iPrestege Posted July 8, 2013 Share Posted July 8, 2013 والله مدري انا جربت اول كود عطيتك شغال تأكد انة سيرفر يمكن ملخبط!؟ Link to comment
3tibe511 Posted July 8, 2013 Author Share Posted July 8, 2013 ههه انا متأكد انه سيرفر ابي اجرب افصله في مجلد بالحاله Link to comment
3tibe511 Posted July 8, 2013 Author Share Posted July 8, 2013 طلع لي في الدي بوق warning: script/server.lua Bad argument @ 'getPlayerTeam' 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