Jump to content

iMr.3a[Z]eF

Members
  • Posts

    862
  • Joined

  • Last visited

Everything posted by iMr.3a[Z]eF

  1. i didnt copied that -_-'
  2. this will works as far as i know -- server local adminACL = {} adminACL[1] = { "Admin" } adminACL[2] = { "SuperModerator" } adminACL[3] = { "Moderator" } adminACL[4] = { "Console" } addCommandHandler("update", function(source) local playerAcc = getPlayerAccount(source) local accName = getAccountName(playerAcc) for _, objects in ipairs(adminACL) do if isObjectInACLGroup ("user."..accName, aclGetGroup ( adminACL[1] ) ) or isObjectInACLGroup ("user."..accName, aclGetGroup ( adminACL[2] ) ) or isObjectInACLGroup ("user."..accName, aclGetGroup ( adminACL[3] ) ) or isObjectInACLGroup ("user."..accName, aclGetGroup ( adminACL[4] ) ) then triggerClientEvent(source, "onAdminCommandUpdate", source) end end end ) --Client addEvent("onAdminCommandUpdate", true) addEventHandler("onAdminCommandUpdate", root, function() guiSetVisible(updatePanel, true) showCursor(true) end )
  3. YOU'LL HAVE TO BE IN ALL GROUPS
  4. function destroyBlip() if ( isVehicleBlown ( vehicleC ) ) then destroyElement(blip) end end addEventHandler("onVehicleExplode", vehicleC, onvehblow)
  5. what do you mean by "locked"?
  6. start over this page it can helps you https://wiki.multitheftauto.com/wiki/Sc ... troduction
  7. You have no idea what I have created in the past, I AM NOT A NAB SCRIPTER. TAKE ME SERIOUSLY!@! -_-" dude, i'll never help if i dont know the problem if you dont tell me about "debugscript 3"
  8. I script client side. pls take me seriously, I am not a nab. why dont you write in Console "F8" debugscript 3 and hope that information is wrong.
  9. i dont understand you do you mean that you want to make 2 gamemods in 1 server?
  10. createMarker "onMarkerHit" -- event setPedAnimation
  11. or he can use this https://community.multitheftauto.com/ind ... ls&id=2540
  12. nope write the whole script you made if its private you can connect me at private MSG
  13. ex: local wnd = guiCreateWindow ( 0, 0, 0.5, 0.4, "Information", true ) addCommandHandler('info', -- the command for open the window function ( ) guiSetVisible ( wnd,true ); -- gElement = the window end ); wnd = the window that you made it.
  14. 1- are you sure about the weapon's position 2- be sure abot the codes side is client
  15. addCommandHandler('info', -- the command for open the window function ( ) guiSetVisible ( gElement,true ); -- gElement = the window end );
  16. iMr.3a[Z]eF

    Resource

    did you unzipped it make it as folder then put it in resources Files
  17. do you mean you want to set Players Colors? setPlayerNametagColor EDIT: use [lua][ /lua] Please,.,
  18. you have to select your weapon by scrolling or pressing q or e
  19. you deleted Admin Group while you using the Panel by mistake be careful
  20. And why triggering? try this GUIEditor = { button = {}, window = {}, staticimage = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(239, 37, 886, 690, "Admin Commands", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF21AEFF") GUIEditor.label[1] = guiCreateLabel(10, 102, 566, 114, "Staff Area Gate Commands", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 33, 174, 255) GUIEditor.label[2] = guiCreateLabel(73, 169, 291, 110, "Main Entrance - /mainstaffo ", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 43, 159, 27) GUIEditor.label[3] = guiCreateLabel(73, 154, 289, 141, "Main Entrance Closed - /mainstaffc", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[3], 43, 159, 27) GUIEditor.label[4] = guiCreateLabel(52, 206, 310, 63, "Entrance to Staff Area through Car Park - /cpo", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 43, 159, 27) GUIEditor.label[5] = guiCreateLabel(52, 222, 359, 112, "Entrance to Staff Area through Car Park Closed - /cpc", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 43, 159, 27) GUIEditor.button[1] = guiCreateButton(262, 579, 377, 101, "Close", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFD10000") GUIEditor.label[6] = guiCreateLabel(52, 251, 256, 112, "Car Park Entrance - /cpopen", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[6], 43, 159, 27) GUIEditor.label[7] = guiCreateLabel(52, 266, 242, 39, "Car Park Entrance Closed - /cpclosed", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[7], 43, 159, 27) GUIEditor.staticimage[1] = guiCreateStaticImage(374, 144, 391, 234, ":PLAGUEScriptEditor/images/examples/shruk.png", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.staticimage[1], "ImageColours", "tl:FFD10000 tr:FFD10000 bl:FFD10000 br:FFD10000") GUIEditor.label[8] = guiCreateLabel(0, 0, 488, 164, "Admin Team - Commands", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[8], "default-bold-small") GUIEditor.label[9] = guiCreateLabel(389, 455, 376, 134, "Fly - /superman", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[9], 59, 18, 236) GUIEditor.label[10] = guiCreateLabel(389, 474, 147, 86, "Admin Skin - /staffskin", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[10], 59, 18, 236) GUIEditor.label[11] = guiCreateLabel(372, 392, 368, 67, "Misc Commands", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[11], "sa-header") guiLabelSetColor(GUIEditor.label[11], 0, 172, 209) end ) addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[1] then guiSetVisible(GUIEditor_window[1], false) showCursor(false) addCommandHandler( "adminhelp", function () guiSetVisible( GUIEditor_window[1], true ) setTimer( function () showCursor( true ) end, 1000,1) end )
  21. local marker = createMarker(-2596.625, 579.358, 14, 'cylinder', 2.0, 255, 0, 0, 150) addEventHandler("onClientMarkerHit",root, function(h) if h == localPlayer and source == marker then addEventHandler("onClientRender",root,drawText) setElementFrozen ( h, true ) triggerServerEvent ( "onMarker", localPlayer) end end ) function drawText() dxDrawText("Prees 'C' To Exit!",423.0,601.0,623.0,637.0,tocolor(255,255,255,255),2.0,"clear","left","top",false,false,false) end function undo( ) removeEventHandler("onClientRender", root,drawText) setElementFrozen ( localPlayer, false ) triggerServerEvent ( "onMarker2", localPlayer ) end bindKey ( "c", "down", undo )
  22. download the original Admin Panel or write the whole script of APanel a file calls "admin_main"
×
×
  • Create New...