Professional Posted November 22, 2014 Share Posted November 22, 2014 السلام عليكم اريد فنكش مثال دائره يدخلها الادمنيه فقط اذا لمسها الاعب ياخذ السلاب واذا لمسها الادمن تقنله على الماب لي راح اعمله Link to comment
EH10 Posted November 22, 2014 Share Posted November 22, 2014 جـرب , * . # 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
Professional Posted November 22, 2014 Author Share Posted November 22, 2014 ممكن تعطيني الكود بس اكتب كلمه باف 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
EH10 Posted November 22, 2014 Share Posted November 22, 2014 وضح , . قصدك ااذا كتبت كلمة من الكونسل , ينقلك عالم وهمي ؟, Link to comment
Professional Posted November 22, 2014 Author Share Posted November 22, 2014 لا اذا كتب الادمن كلمه في الاف 8 ينقله واذا لاعب كتب يقله ممنوع ويقتله Link to comment
EH10 Posted November 22, 2014 Share Posted November 22, 2014 , جـرب * # 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
Professional Posted November 22, 2014 Author Share Posted November 22, 2014 ما عم يعمل Link to comment
EH10 Posted November 22, 2014 Share Posted November 22, 2014 , جـرب كـذأإ * 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
فاّرس Posted November 22, 2014 Share Posted November 22, 2014 -- 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
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