MR:X Posted December 13, 2012 Share Posted December 13, 2012 بسم الله الرحمن الرحيم اريد كود عندما يلمس اللاعب الماركر يأخذ ادمن مثل Moderator ورأيت ذا https://wiki.multitheftauto.com/wiki/AclGroupAddObject وما اعرف له وشكراً Link to comment
TD[M]ER Posted December 13, 2012 Share Posted December 13, 2012 --- server side Marker = createMarker( x,y,z,'cylinder',size,255,255,0,0 ) function admin ( ) aclGroupAddObject (aclGetGroup("Admin"), "user.**") end addEventHandler("onMarkerHit", Marker, admin) والله اعتقد اعتقد كذا :] هذا اللي اعرفهه ماجربتهه ولا قيد جربته انت شوف عاد Link to comment
silver-89 Posted December 13, 2012 Share Posted December 13, 2012 --- server side Marker = createMarker( x,y,z,'cylinder',size,255,255,0,0 ) function admin ( ) aclGroupAddObject (aclGetGroup("Admin"), "user.**") end end addEventHandler("onMarkerHit", Marker, admin) والله اعتقد اعتقد كذا :] هذا اللي اعرفهه ماجربتهه ولا قيد جربته انت شوف عاد اظن لازم تعطي صلاحيات للمود في قروب الادمن Link to comment
iPrestege Posted December 13, 2012 Share Posted December 13, 2012 --- server side Marker = createMarker( x,y,z,'cylinder',size,255,255,0,0 ) function admin ( ) aclGroupAddObject (aclGetGroup("Admin"), "user.**") end addEventHandler("onMarkerHit", Marker, admin) والله اعتقد اعتقد كذا :] هذا اللي اعرفهه ماجربتهه ولا قيد جربته انت شوف عاد + getPlayerAccount getAccountName Link to comment
TD[M]ER Posted December 13, 2012 Share Posted December 13, 2012 --- server side Marker = createMarker( x,y,z,'cylinder',size,255,255,0,0 ) function admin ( ) local account = getAccountName(getPlayerAccount(source)) aclGroupAddObject (aclGetGroup("Admin"), user." .. account") end addEventHandler("onMarkerHit", Marker, admin) Link to comment
./BlackBird# Posted December 13, 2012 Share Posted December 13, 2012 --- server side Marker = createMarker( x,y,z,'cylinder',size,255,255,0,0 ) function admin (element) if(getElementType(element)=='player')then local account = getAccountName(getPlayerAccount(element)) aclGroupAddObject (aclGetGroup("Admin"),"user." .. account) end addEventHandler("onMarkerHit", Marker, admin) كود دمار يجيب حساب الماركر خخخخخخخخخخخخخخ Link to comment
iPrestege Posted December 13, 2012 Share Posted December 13, 2012 (edited) ^^ تدمير Edited December 13, 2012 by Guest Link to comment
TAPL Posted December 13, 2012 Share Posted December 13, 2012 marker = createMarker(x, y, z, "cylinder", 2.5, 255, 255, 0, 0) addEventHandler("onMarkerHit", marker function(player) if getElementType(player) == "player" then local account = getPlayerAccount(player) if account and not isGuestAccount(account) then aclGroupAddObject(aclGetGroup("Admin"), "user."..getAccountName(account)) end end end) Link to comment
MR:X Posted December 13, 2012 Author Share Posted December 13, 2012 اعرف وحطيت سيرفر من زمان وما سار Link to comment
3NAD Posted December 13, 2012 Share Posted December 13, 2012 عطه صلاحية أدمن + شيك على الأخطاء من debugscript 3 Link to comment
TAPL Posted December 13, 2012 Share Posted December 13, 2012 marker كودي فيه فاصله ناقصه بعد كلمة التعديل marker = createMarker(x, y, z, "cylinder", 2.5, 255, 255, 0, 0) addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" then local account = getPlayerAccount(player) if account and not isGuestAccount(account) then aclGroupAddObject(aclGetGroup("Admin"), "user."..getAccountName(account)) end end end) Link to comment
MR:X Posted December 13, 2012 Author Share Posted December 13, 2012 اعطيته صلاحية لاكن المشكلة تكون في ( القوس ما بيتقفل Link to comment
MR:X Posted December 13, 2012 Author Share Posted December 13, 2012 اعطيته صلاحيةلاكن المشكلة تكون في ) القوس ما بيتقفل Link to comment
TAPL Posted December 13, 2012 Share Posted December 13, 2012 اعطيته صلاحيةلاكن المشكلة تكون في ( القوس ما بيتقفل marker كودي فيه فاصله ناقصه بعد كلمةالتعديل marker = createMarker(x, y, z, "cylinder", 2.5, 255, 255, 0, 0) addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" then local account = getPlayerAccount(player) if account and not isGuestAccount(account) then aclGroupAddObject(aclGetGroup("Admin"), "user."..getAccountName(account)) end end end) Link to comment
MR:X Posted December 13, 2012 Author Share Posted December 13, 2012 شكراً اخي تابل بس اقدر احط اذا اخذ مشرف يكتب بالشات : لقد اخذ اللاعب مشرف ؟ Link to comment
TAPL Posted December 13, 2012 Share Posted December 13, 2012 شكراً اخي تابلبس اقدر احط اذا اخذ مشرف يكتب بالشات : لقد اخذ اللاعب مشرف ؟ marker = createMarker(x, y, z, "cylinder", 2.5, 255, 255, 0, 0) addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" then local account = getPlayerAccount(player) if account and not isGuestAccount(account) then aclGroupAddObject(aclGetGroup("Admin"), "user."..getAccountName(account)) outputChatBox("مشرف "..getPlayerName(player).." لقد اخذ اللاعب", root, 255, 255, 255, true) end 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