Lunix|xT Posted January 8, 2014 Share Posted January 8, 2014 (edited) شباب انا نزلت الجروب سيستم وحطيت الكود حق الاخ OSAMA وما اشتغل شوفوا الصورة توضح المشكلة اللمشكلة الثانية التاج يكتب مرتين ورا بعد بالشات Edited January 8, 2014 by Guest Link to comment
K1NG Posted January 8, 2014 Share Posted January 8, 2014 اطرح الأكواد وقول الي تبيه .. لأنه باين منت عارف تعدلها على مطلبكـ SWAT مفروض تكون بقروب او عصابة وبالنسبة للتاج .. اطرح الأكواد Link to comment
Lunix|xT Posted January 8, 2014 Author Share Posted January 8, 2014 طيب هذه هي الاكواد هذا حق البوابة 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
K1NG Posted January 8, 2014 Share Posted January 8, 2014 طيب هذه هي الاكوادهذا حق البوابة 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
Lunix|xT Posted January 8, 2014 Author Share Posted January 8, 2014 طيب كيف اخليها قروبات داخل اللعبه للي هو قروب سستم والجروب سستم حق العقرب Link to comment
K1NG Posted January 8, 2014 Share Posted January 8, 2014 طيب كيف اخليها قروبات داخل اللعبه للي هو قروب سستموالجروب سستم حق العقرب * 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
Lunix|xT Posted January 8, 2014 Author Share Posted January 8, 2014 K1NG يالبي قلبك يا والله أنك كفووووووو Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now