طيب هذه هي الاكواد
هذا حق البوابة
local Door = createObject (980,1285.0999755859,-1652.0999755859,15.39999961853,0,0,90)
local markerDoor = createMarker (1285.0999755859,-1652.0999755859,15.39999961853,"cylinder",9,0,0,0,0)
function OpenObject ( player )
if isElementWithinMarker ( player, markerDoor ) then
local accName = getAccountName ( getPlayerAccount ( player ) )
if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "SWAT" ) ) then
if not Open then
moveObject ( Door, 2000,1285.0999755859,-1652.0999755859,20 )
else
moveObject ( Door, 2000, 1285.0999755859, -1652.0999755859, 15.39999961853 )
end
Open = not Open
else
outputChatBox ( "* You must be 'SWAT' !", player, 200, 0, 0, true )
end
end
end
addEventHandler ( "onResourceStart", resourceRoot,
function ( )
for _, v in ipairs ( getElementsByType ( "player" ) ) do
bindKey ( v, "tab", "down", OpenObject )
end
end
)
addEventHandler ( "onPlayerJoin", root,
function ( )
bindKey ( source, "tab", "down", OpenObject )
end
)
وهذا حق التاج
local root = getRootElement()
function chatbox(text, msgtype)
local account = getAccountName(getPlayerAccount(source))
local name = getPlayerName(source)
cancelEvent()
if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then
outputChatBox("#FF0000°•~█|الأدارة العامة|█~•°#FFFFFF#ff0000" .. name .. ":#bbbbbb " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P")) then
outputChatBox("#BF00E8 °•~█|V.I.P|█~•°#FFFFFF#ff0000" .. name .. ":#bbbbbb " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("HED.ADMIN")) then
outputChatBox("#999999°•~█|نائب إدارة السيرفر|█~•°#FFFFFF#ff0000" .. name .. ":#bbbbbb " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Army.manger")) then
outputChatBox("#00ffff°•~█|قائد قوات الجيش|█~•°#FFFFFF#ff0000" .. name .. ":#bbbbbb " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then
outputChatBox("#FF0000°•~█|OwNeR | ألأدارة|█~•°#aaaaaa#ff0000" .. name ..":#bbbbbb " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("FBI.manger")) then
outputChatBox("#ffff00°•~█|قأئد الـFBI|█~•°#FFFFFF#ff0000" .. name ..":#CC0000 " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Police.man")) then
outputChatBox("#2AFF00°•~█|Major | لواء|█~•°#FFFFFF#ff0000" .. name .. ":#CC0000 " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Vote")) then
outputChatBox("#0099ff°•~█|مـــرشــح|█~•°#FFFFFF#ff0000" .. name .. ":#00ffff " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("King")) then
outputChatBox("#330033~°•~█|ملــك|█~•°#ffffff#ff0000" .. name .. ":#00ffff " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then
outputChatBox("#0000ff°•~█|زائر|█~•°#FFFFFF#ff0000" .. name .. ":#00ffff " .. text, root, 255, 255, 255, true)
end
end
addEventHandler("onPlayerChat", root, chatbox)
شوف الصورة كاملة
:] اتمني الرد