Jump to content

تم الفأده بنقاح


Recommended Posts

  • Replies 77
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

طيب وش الخطأ في ذذ الكود

    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
ي رأجل مدري ي عني الخطأ من المارك ؟

وش هو نوع الخطأ هل الماركر ما تظهر؟؟

هل لمى تلمس الماركر الأمر ما يشتغل؟؟

؟؟debug وش يقول الـ

Edited by Guest
Link to comment
    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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...