Jump to content

مطلوب فنكش


Recommended Posts

جـرب , * .

# Server Side . 
local Marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 160 ) 
  
local Admin = "YourAcl" 
  
addEventHandler ("onMarkerHit", Marker, 
function (player) 
  if getElementType (player) == "player" then 
   if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup(Admin)) then 
    outputChatBox ("* [ أهـلا وسـهلا بـك ] .", player, 255, 160, 0) 
     setElementPosition ( player, x, y, z ) 
      else 
     outputChatBox ("* [ مـمـنوع الـدخول غـير الأدمن ] .", player, 255, 0, 0) 
    killPed(player) 
    end 
  end 
end 
) 
Link to comment

ممكن تعطيني الكود بس اكتب كلمه باف 8

local Admin = "Admin" 
addEventHandler ("smod", root, 
function (player) 
  if getElementType (player) == "player" then 
   if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup(Admin)) then 
    outputChatBox ("* [ أهـلا وسـهلا بـك ] .", player, 255, 160, 0) 
    setElementPosition ( player,315.87811,984.22278,1959.09131) 
    setElementInterior ( entered, 5 ) 
                    setElementDimension ( entered, 9  ) 
        else 
    outputChatBox ("* [ ممنوع دخول الماب هذا غير الادمن .", player, 255, 0, 0) 
    killPed(player) 
    end 
  end 
end 
) 

حطيت فيه انه ينقله على ماب وهمي

Link to comment

, جـرب *

# Server Side . 
local Admin = "Console" 
  
addCommandHandler('Console', 
function (player) 
  if getElementType (player) == "player" then 
   if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup(Admin)) then 
    outputChatBox ("* [ أهـلا وسـهلا بـك ] .", player, 255, 160, 0) 
     setElementPosition ( player, 8, 4, 3 ) 
       else 
     outputChatBox ("* [ مـمـنوع الـدخول غـير الأدمن ] .", player, 255, 0, 0) 
    killPed(player) 
    end 
  end 
end 
) 
Link to comment

, جـرب كـذأإ *

local Admin = "Console" 
  
addCommandHandler('Console', 
function (player) 
  if getElementType (player) == "player" then 
   if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup(Admin)) then 
    outputChatBox ("* [ أهـلا وسـهلا بـك ] .", player, 255, 160, 0) 
     setElementPosition ( player, 8, 4, 3 ) 
       else 
     outputChatBox ("* [ مـمـنوع الـدخول غـير الأدمن ] .", player, 255, 0, 0) 
    killPed(player) 
    end 
  end 
end 
) 
Link to comment

-- Server Side # 
  
addCommandHandler('smod', 
function (player) 
    if ( hasObjectPermissionTo ( player, "general.adminpanel", false ) ) then 
        outputChatBox ("* [ أهـلا وسـهلا بـك ] .", player, 255, 160, 0) 
            setElementPosition ( player, 8, 4, 3 ) 
    else 
            outputChatBox ("* [ مـمـنوع الـدخول غـير الأدمن ] .", player, 255, 0, 0) 
                killPed(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...