Jump to content

تعديل كود


Dr.Xen

Recommended Posts

السلام عليكم

معي كود بسس ذي ماركر اول ما تلمس يموت ابيه اول ما تلمس وانت موب من القروب ينقلك لمكان@

        marker = createMarker ( 270.89999389648,-1267.5,63.299999237061, "cylinder", 28, 255, 255, 0, 0 ) 
          
        -------- 
        function kill(thePlayer) 
            local accName = getAccountName (getPlayerAccount(thePlayer)) 
            if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "SDA7" ) ) then 
                killPed ( thePlayer ) 
            outputChatBox("This vehicle is only for (SDA7) group!", player, 255, 0, 0) 
            end 
        end 

Link to comment
       marker = createMarker ( 270.89999389648,-1267.5,63.299999237061, "cylinder", 28, 255, 255, 0, 0 ) 
          
        -------- 
        function kill(thePlayer) 
            local accName = getAccountName (getPlayerAccount(thePlayer)) 
            if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "SDA7" ) ) then 
                killPed ( thePlayer ),(SDA7) 
            outputChatBox("This vehicle is only for (SDA7) group!", player, 255, 0, 0) 
            end 
        end 

غير مجرب .

Link to comment
       marker = createMarker ( 270.89999389648,-1267.5,63.299999237061, "cylinder", 28, 255, 255, 0, 0 ) 
          
        -------- 
        function kill(thePlayer) 
            local accName = getAccountName (getPlayerAccount(thePlayer)) 
            if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "SDA7" ) ) then 
                killPed ( thePlayer ),(SDA7) 
            outputChatBox("This vehicle is only for (SDA7) group!", player, 255, 0, 0) 
            end 
        end 

غير مجرب .

ما غيرت شي ..

ما زبط

Link to comment
-- # Server Side .. 
  
local marker = createMarker ( 270.89999389648,-1267.5,63.299999237061, 'cylinder', 28, 255, 255, 0, 0 ) 
  
addEventHandler('onMarkerHit',marker, 
        function ( player ) 
            if getElementType ( player ) == 'player' then 
            local Acc = getAccountName ( getPlayerAccount ( player ) )  
            if not isObjectInACLGroup ( 'user.'..Acc, aclGetGroup ( 'SDA7' ) ) then 
                setElementPosition ( player,x,y,z ) 
                outputChatBox("This vehicle is only for (SDA7) group!", 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...