KaZoOzh Posted June 28, 2013 Share Posted June 28, 2013 (edited) طلب كود ماركر الي يدخله يخش interior Edited June 30, 2013 by Guest Link to comment
S4MuEL Posted June 28, 2013 Share Posted June 28, 2013 if isObjectInACLGroup getAccountName getPlayerAccount aclGetGroup getElementType setElementInterior then Event : "onMarkerHit" Link to comment
S4MuEL Posted June 28, 2013 Share Posted June 28, 2013 Marker = createMarker(...) addEventHandler("onMarkerHit", Marker, function ( player ) if ( getElementType ( player ) == ( "player" ) ) then if ( isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Admin" ) ) ) then outputChatBox("تم الدخول",player,255,0,0) setElementInterior(player,6) else outputChatBox("غير مصرح لكـ بأن تدخل آلمنزل",player,255,0,0) end end end ) آلأنتريور تقدر تغيرهـ ، سطر 7 .. Link to comment
KaZoOzh Posted June 28, 2013 Author Share Posted June 28, 2013 طيب وش الخطأ في ذذ الكود Marker = createMarker(2486.71484,14.07031,-1645.35388,'Cylinder', 1.5, 0, 0, 255, 150 ); addEventHandler("onMarkerHit", Marker, function ( player ) if ( getElementType ( player ) == ( "player" ) ) then if ( isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Admin" ) ) ) then outputChatBox("تم الدخول",player,255,0,0) setElementInterior(player,7) else outputChatBox("غير مصرح لكـ بأن تدخل آلمنزل",player,255,0,0) end end end ) Link to comment
KaZoOzh Posted June 28, 2013 Author Share Posted June 28, 2013 ي رأجل مدري ي عني الخطأ من المارك ؟ Link to comment
AHMAD1234 Posted June 28, 2013 Share Posted June 28, 2013 (edited) ي رأجل مدري ي عني الخطأ من المارك ؟ وش هو نوع الخطأ هل الماركر ما تظهر؟؟ هل لمى تلمس الماركر الأمر ما يشتغل؟؟ ؟؟debug وش يقول الـ Edited June 28, 2013 by Guest Link to comment
AHMAD1234 Posted June 28, 2013 Share Posted June 28, 2013 لمست المارك م جأ شي يعني انت تلمس الماركر وما يصير شي..؟ Link to comment
KaZoOzh Posted June 28, 2013 Author Share Posted June 28, 2013 لمست المارك م جأ شي يعني انت تلمس الماركر وما يصير شي..؟ بضبط !... Link to comment
S4MuEL Posted June 28, 2013 Share Posted June 28, 2013 @Ahmad , هآذي يوم تكون بـ إنتريور ويسحبكـ شخص آو تروح بـ مكآن بآلخريطةة .. هو يقولكـ مآ لمس آلمآركر آبد Link to comment
KaZoOzh Posted June 28, 2013 Author Share Posted June 28, 2013 اي المس الماركر م يجي شي ابد Link to comment
iPrestege Posted June 28, 2013 Share Posted June 28, 2013 حط احداثيات لانة الانترور بس ينقلك حط 3 احداثيات بعد اي دي الانترور Link to comment
KaZoOzh Posted June 28, 2013 Author Share Posted June 28, 2013 يمكن احطه في ملف سيرفر ول ! Link to comment
S4MuEL Posted June 28, 2013 Share Posted June 28, 2013 آلخطأ من آلميتآ .. حطـ آلتآيب server Link to comment
AHMAD1234 Posted June 28, 2013 Share Posted June 28, 2013 setElementInterior(hitPlayer,14) setElementPosition(hitPlayer,204.33232116699,-166.63243103027,1000.5234375) edit: يصير كذا كودك Marker = createMarker(2486.71484,14.07031,-1645.35388,'Cylinder', 1.5, 0, 0, 255, 150 ); addEventHandler("onMarkerHit", Marker, function ( player ) if ( getElementType ( player ) == ( "player" ) ) then if ( isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Admin" ) ) ) then outputChatBox("تم الدخول",player,255,0,0) setElementInterior(player,14) setElementPosition(player,204.33232116699,-166.63243103027,1000.5234375) else outputChatBox("غير مصرح لكـ بأن تدخل آلمنزل",player,255,0,0) end end 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