Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. guiGridListGetSelectedItem getPlayerName getPlayerSerial guiGridListSetItemText triggerServerEvent triggerClientEvent isObjectInACLGroup -- For Save Text And Data : SQL or XML executeSQLQuery or: dbExec dbQuery dbPoll or xmlCreateFile xmlLoadFile xmlNodeSetValue xmlCreateChild xmlFindChild xmlSaveFile xmlUnloadFile xmlNodeGetValue
  2. انا اقصد سوي بالايديتور < # > بس عشان آبين لك #
  3. guiSetPosition setTimer guiGetVisible
  4. انسى اللوحة اللي عطيتك خلاص شوف الوظائف اللي فوق اللوحة خاصة بالادمنية يوم شفتها اغلب اكوادها مرتبطة فيها فـ من الصعب تنسخها
  5. We do not accept requests in this section!
  6. مدري انلحست ماحصلت ملف السيرفر >!< استخدم الوظائف : guiCreateGridList guiGridListAddRow guiCreateEdit guiGridListGetSelectedItem guiGetText guiGridListSetItemText guiSetVisible guiSetText triggerServerEvent triggerClientEvent isObjectInACLGroup -- For Save Text And Data : SQL or XML executeSQLQuery or: dbExec dbQuery dbPoll or xmlCreateFile xmlLoadFile xmlNodeSetValue xmlCreateChild xmlFindChild xmlSaveFile xmlUnloadFile xmlNodeGetValue
  7. خذهـ من الادمنية ملف : --[[********************************** * * Multi Theft Auto - Admin Panel * * gui\admin_report.lua * * Original File by lil_Toady * **************************************]] aReportForm = nil function aReport ( player ) if ( aReportForm == nil ) then local x, y = guiGetScreenSize() aReportForm = guiCreateWindow ( x / 2 - 150, y / 2 - 150, 300, 300, "Contact Admin", false ) guiCreateLabel ( 0.05, 0.11, 0.20, 0.09, "Category:", true, aReportForm ) guiCreateLabel ( 0.05, 0.21, 0.20, 0.09, "Subject:", true, aReportForm ) guiCreateLabel ( 0.05, 0.30, 0.20, 0.07, "Message:", true, aReportForm ) aReportCategory = guiCreateEdit ( 0.30, 0.10, 0.65, 0.09, "Question", true, aReportForm ) guiEditSetReadOnly ( aReportCategory, true ) aReportDropDown = guiCreateStaticImage ( 0.86, 0.10, 0.09, 0.09, "client\\images\\dropdown.png", true, aReportForm ) guiBringToFront ( aReportDropDown ) aReportCategories = guiCreateGridList ( 0.30, 0.10, 0.65, 0.30, true, aReportForm ) guiGridListAddColumn( aReportCategories, "", 0.85 ) guiSetVisible ( aReportCategories, false ) guiGridListSetItemText ( aReportCategories, guiGridListAddRow ( aReportCategories ), 1, "Question", false, false ) guiGridListSetItemText ( aReportCategories, guiGridListAddRow ( aReportCategories ), 1, "Suggestion", false, false ) guiGridListSetItemText ( aReportCategories, guiGridListAddRow ( aReportCategories ), 1, "Cheater/Moder", false, false ) guiGridListSetItemText ( aReportCategories, guiGridListAddRow ( aReportCategories ), 1, "Other", false, false ) aReportSubject = guiCreateEdit ( 0.30, 0.20, 0.65, 0.09, "", true, aReportForm ) aReportMessage = guiCreateMemo ( 0.05, 0.38, 0.90, 0.45, "", true, aReportForm ) aReportAccept = guiCreateButton ( 0.40, 0.88, 0.25, 0.09, "Send", true, aReportForm ) aReportCancel = guiCreateButton ( 0.70, 0.88, 0.25, 0.09, "Cancel", true, aReportForm ) addEventHandler ( "onClientGUIClick", aReportForm, aClientReportClick ) addEventHandler ( "onClientGUIDoubleClick", aReportForm, aClientReportDoubleClick ) end guiBringToFront ( aReportForm ) showCursor ( true ) end addCommandHandler ( "report", aReport ) function aReportClose ( ) guiSetInputEnabled ( false ) if ( aReportForm ) then removeEventHandler ( "onClientGUIClick", aReportForm, aClientReportClick ) removeEventHandler ( "onClientGUIDoubleClick", aReportForm, aClientReportDoubleClick ) destroyElement ( aReportForm ) aReportForm = nil showCursor ( false ) end end function aClientReportDoubleClick ( button ) if ( button == "left" ) then if ( source == aReportCategories ) then if ( guiGridListGetSelectedItem ( aReportCategories ) ~= -1 ) then local cat = guiGridListGetItemText ( aReportCategories, guiGridListGetSelectedItem ( aReportCategories ), 1 ) guiSetText ( aReportCategory, cat ) guiSetVisible ( aReportCategories, false ) end end end end function aClientReportClick ( button ) if ( source == aReportCategory ) then guiBringToFront ( aReportDropDown ) end if ( source ~= aReportCategories ) then guiSetVisible ( aReportCategories, false ) end if ( button == "left" ) then if ( source == aReportAccept ) then if ( ( string.len ( guiGetText ( aReportSubject ) ) < 1 ) or ( string.len ( guiGetText ( aReportMessage ) ) < 5 ) ) then aMessageBox ( "error", "Subject/Message missing." ) else aMessageBox ( "info", "Your message has been submited and will be processed as soon as possible." ) setTimer ( aMessageBoxClose, 3000, 1, true ) local tableOut = {} tableOut.category = guiGetText ( aReportCategory ) tableOut.subject = guiGetText ( aReportSubject ) tableOut.message = guiGetText ( aReportMessage ) triggerServerEvent ( "aMessage", getLocalPlayer(), "new", tableOut ) aReportClose () end elseif ( source == aReportSubject ) then guiSetInputEnabled ( true ) elseif ( source == aReportMessage ) then guiSetInputEnabled ( true ) elseif ( source == aReportCancel ) then aReportClose () elseif ( source == aReportDropDown ) then guiBringToFront ( aReportCategories ) guiSetVisible ( aReportCategories, true ) end end end ولا تنسى تبدل بعض الوظائف خاصة مثل الاخطاء حولها شات بوكس #
  8. iPrestege

    Tops text

    Can you show us that you change it?
  9. سوية بالـ GUIEditor Drawing > DxDrawText > You're Text > RemoveEventHandler > يوخر الكلام بس لازم تايمر عشان تحدد وقت # #
  10. AddEventHandler RemoveEventHandler onClientRender
  11. لا مو ممكن افتح الـ GUIEditor الجديد فية خاصية الـ Dx سوية وبس ويسوي الايفنت تلقائي وتذكر ماراح يجي زين للكل استخدم : guiGetScreenSize #
  12. مافهمت يمكن ؟ DxDrawText onClientRender ؟؟؟
  13. x,y,z = اول ثلااث ارقمنتات احداثياتك # fWidth: The collision cuboid's width = عرض fDepth: The collision cuboid's depth = عمق fHeight: The collision cuboid's height = ارتفاع #
  14. iPrestege

    SOLVED!

    Try : function createTeamsOnStart () MainTeam = createTeam ( "The Professionals", 250, 50,0) end addEventHandler("onResourceStart", resourceRoot, createTeamsOnStart) function setTeam() local account = getPlayerAccount(source) local team = getAccountData (account, "team") if (team) and getTeamFromName(team) then setPlayerTeam(source, getTeamFromName(team)) end end addEventHandler("onPlayerLogin",root,setTeam) function save() local team = getPlayerTeam(source) local account = getPlayerAccount(source) if (team) and not isGuestAccount(account) then setAccountData(account, "team", getTeamName(team)) end end addEventHandler("onPlayerQuit", getRootElement(), save) function unassignTeam() local theTeam = getPlayerTeam ( source ) if theTeam then setPlayerTeam ( source, nil ) end end addEventHandler("onPlayerLogout",getRootElement(), unassignTeam ) addEventHandler ( "onPlayerQuit", root, function ( ) if ( getPlayerTeam ( source ) == MainTeam ) then if ( countPlayersInTeam ( MainTeam ) == 1 ) then destroyElement ( MainTeam ) end end end ) function remove( ) if ( getPlayerTeam ( source ) == MainTeam ) then if ( countPlayersInTeam ( MainTeam ) == 1 ) then destroyElement ( MainTeam ) end end end function login() setTimer(remove,500,0) end addEventHandler("onPlayerLogin",getRootElement(),login) function logout() setTimer(remove,500,0) end addEventHandler("onPlayerLogout",getRootElement(),logout) addEventHandler("onPlayerQuit", getRootElement(), logout)
  15. No problem and use Dx Library .
  16. I,Think that what you are trying to do? try this (; firstMissionMarker = createMarker ( 1699.88647, -2259.09521, 38.5, "cylinder", 1.5, 255, 255, 0, 125 ) setElementInterior ( firstMissionMarker, 2) addEventHandler("onClientMarkerHit",firstMissionMarker, function (plr) if (getElementType(plr) == "player") then addEventHandler("onClientRender",root,Draw); end; end ); addEventHandler("onClientMarkerLeave",firstMissionMarker, function ( plr ) if (getElementType(plr) == "player") then removeEventHandler("onClientRender",root,Draw); end; end ); function Draw() dxDrawRectangle(368, 208, 520, 354, tocolor(3, 15, 251, 195), true) dxDrawText("The Aviator's Spawn Panel Information.", 479, 226, 725, 257, tocolor(254, 0, 0, 195), 1, "sans", "left", "top", false, false, true, false, false) dxDrawLine(368, 267, 889, 267, tocolor(43, 0, 0, 195), 1, true) dxDrawText("Welcome to the Aviators Gamemode!\n\nThe main focus of this gamemode is to fly around, join airlines hang about,buy houses, meet your friends buy cars and show off your flying skills! If you've loved flying in single player this is the gamemode for you!\n\nHere are the levels\nA student pilot is 0 points : These can fly everything except the Andromada, AT-400, military planes and military helicopters (hydra/hunter)/n /n A Private pilot is 150 points : These can fly everything except the Andromada and AT-400, and military planes and helicopters (hydra/hunter) and flying with the shamal will be x1.5 the amount of money a student pilot earns A Commercial /n /n pilot is 250 points These can fly everything /n except the military planes and helicopters (hydra/hunter) Army pilots is 500 points : These can fly everything /n In an airline, all airplanes of the airline can be used not matter what \"level\" you are", 396, 272, 871, 503, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, true, true, false, false) end; #
×
×
  • Create New...