Jump to content

تمت الإفادة من K1NG )مشكلة الجروب سيستم والسيرفر


Recommended Posts

شباب انا نزلت الجروب سيستم وحطيت الكود حق الاخ OSAMA

وما اشتغل شوفوا الصورة توضح المشكلة

اللمشكلة الثانية التاج يكتب مرتين ورا بعد بالشات

532706653.jpg

Edited by Guest
Link to comment

طيب هذه هي الاكواد

هذا حق البوابة

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)   

شوف الصورة كاملة

:)

:] اتمني الرد

Link to comment
طيب هذه هي الاكواد

هذا حق البوابة

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)   

شوف الصورة كاملة

:)

:] اتمني الرد

وانت تبيه على قروب .. عشان كذا قلي القروب سستم الي مركبه حق مين ؟ ACL الكود الأول حق البوابة مافيه اخطاء لكن هو معمول على قروب

...

.بالنسبة للكود الثاني حق التاج مافيه اخطاء، لكن تأكد انه انت منت مشغل سكربت ثاني يخرج نص بالشات .. مثل الفري روم

Link to comment
طيب كيف اخليها قروبات داخل اللعبه للي هو قروب سستم

والجروب سستم حق العقرب

* Server Side:

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 
        if getElementData ( player, "Group" ) == "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 
) 

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...