Jump to content

طلوب فنكش


Recommended Posts

السلام عليكم

شباب مطلوب فنكش مثلا انا حاط ماركر ان لي يلمسها وينتقل هو الادمن ممنوع العضو اذا العضو لمسها يعطيه سلاب اما اذا الادمن ينتقل على المكان لي احط الاحداثيات عليه

وسلام عليكم

Link to comment
addEventHandler("onMarkerHit", root, function ( hitElement ) 
      if source == Marker then  ----------- Marker = اسم الماركر حقك 
            if getElementType( hitElement ) == "player" then 
                 if ( isObjectInACLGroup("user."getAccountName(getPlayerAccount(hitElement) ), aclGetGroup("Admin") ) ) then 
                         spawnPlayer(hitElement, x, y, z)   --- x , y , z = الاحداثيات 
                  else 
                         setElementHealth(hitElement, 0) 
                 end 
            end 
      end 
end ) 

Link to comment

تفضل ذا الكود

حق اذا انت معك رتبه معينه ينقلك

addEventHandler("onMarkerHit", root, 
function ( player ) 
     local accName = getAccountName ( getPlayerAccount ( player ) ) 
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "xxx" ) ) then  
if source == mar then end --- حط اسم الماركر مكان mar 
if getElementType( player ) == "player" then end 
setElementPosition ( player,x,y,z)--- احداثيات 
else 
killPlayer(player) 
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...