Jump to content

طلب كود مهم جداا


Recommended Posts

مافهمتك قصدك مكان الي يدخلة غير التيم المحدد ينقلة لبرا

يب

مثلا : واحد راح يدخل المكان يقوله لا انت لست شرطي ويعطيه سلاب

createColRectangle 
Event: "onColShapeHit" 
getElementType 
getPlayerTeam 
getTeamName 
killPed 
outputChatBox 

Link to comment

Server

  
addEvent("enksar",true) 
addEventHandler("enksar",root, 
    function() 
        local acc=getPlayerAccount(client) 
        if(isObjectInACLGroup("user."..getAccountName(acc),aclGetGroup("Admin"))) then   
            outputChatBox( "*  تم دخولك للمنطقة المحمية", source, math.random(255), math.random(255), math.random(255), true ) 
     else 
             outputChatBox( "* انت غير موجود في تيم الادمن ", source, math.random(255), math.random(255), math.random(255), true ) 
setElementHealth(source,0) 
    end 
  end 
) 
  

Celint

  
_marker = createMarker ( 2290.748046875, 532.40942382813, 0.897346496582, 'cylinder', 5, r, g, b, a ) 
  
addEventHandler ( 'onClientMarkerHit', _marker, function ( _player ) 
        if _player == localPlayer then 
   triggerServerEvent ( "enksar", localPlayer) 
        end 
end ) 
  
  

: )

جرب : )

Link to comment
Server
  
addEvent("enksar",true) 
addEventHandler("enksar",root, 
    function() 
        local acc=getPlayerAccount(client) 
        if(isObjectInACLGroup("user."..getAccountName(acc),aclGetGroup("Admin"))) then   
            outputChatBox( "*  تم دخولك للمنطقة المحمية", source, math.random(255), math.random(255), math.random(255), true ) 
     else 
             outputChatBox( "* انت غير موجود في تيم الادمن ", source, math.random(255), math.random(255), math.random(255), true ) 
setElementHealth(source,0) 
    end 
  end 
) 
  

Celint

  
_marker = createMarker ( 2290.748046875, 532.40942382813, 0.897346496582, 'cylinder', 5, r, g, b, a ) 
  
addEventHandler ( 'onClientMarkerHit', _marker, function ( _player ) 
        if _player == localPlayer then 
   triggerServerEvent ( "enksar", localPlayer) 
        end 
end ) 
  
  

: )

جرب : )

-,-

createColRectangle 
Event: "onColShapeHit" 
getElementType 
getPlayerTeam 
getTeamName 
killPed 
outputChatBox 

مشكووورر
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...