Jump to content

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


Recommended Posts

  • Replies 77
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

     marker = createMarker( 1857.47180,827.18615 ,9.39790, "cylinder", 2, 255, 255, 0, 255 ) 
        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

هآذي مآهي ميتآ =\ ،

وآلكود يصير كذآ -_-

         marker = createMarker( 1857.47180,827.18615 ,9.39790, "cylinder", 2, 255, 255, 0, 255 ) 
            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

server side !!!

function markerHit (hitPlayer, matchingDimension) 
  if getElementType(hitPlayer) == "player" then 
  if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then 
  if (source == Marker) then 
    setElementInterior(hitPlayer,14) 
    setElementPosition(hitPlayer,204.33232116699,-166.63243103027,1000.5234375) 
    outputChatBox ( "* #ff0000welcome back",player,255,0,0,true) 
    end 
    else 
    outputChatBox ( "* #ff0000you are not admin!",player,255,0,0,true) 
    end 
    end 
    end 
addEventHandler ("onMarkerHit", getRootElement(), markerHit) 

Edit:

:arrowup:جرب اللي فوق

Edited by Guest
Link to comment
server side !!!
function markerHit (hitPlayer, matchingDimension) 
  if getElementType(hitPlayer) == "player" then 
  if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then 
  if (source == Marker) then 
    setElementInterior(hitPlayer,14) 
    setElementPosition(hitPlayer,204.33232116699,-166.63243103027,1000.5234375) 
    outputChatBox ( "* #ff0000welcome back",player,255,0,0,true) 
    end 
    else 
    outputChatBox ( "* #ff0000you are not admin!",player,255,0,0,true) 
    end 
    end 
    end 
addEventHandler ("onMarkerHit", getRootElement(), markerHit) 

Edit:

:arrowup:جرب اللي فوق

مآ يحتآج !

matchingDimension

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...