Jump to content

iMr.SFA7

Members
  • Posts

    2,013
  • Joined

  • Last visited

Everything posted by iMr.SFA7

  1. getPlayerWantedLevel-- سوي تحقق ان نجوم اللاعب 1 setPlayerWantedLevel-- بعدها حط نجوم اللاعب 2 -- وبعدها سوي تحقق انها 1 وحطها 2 وبعدها سوي تحقق انها 2 وحطها 3
  2. أسخدم الفنكشن الي عطاك الاخ بعطيك مثآال مثال تبي تعطي اللاعب 5 نجوم function (thePlayer) setPlayerWantedLevel (thePlayer , 5 )
  3. الانترنت عندك ضعيف أو جهازك ضعيف
  4. local marker = createMarker(x,y,z) function hitmarker(hit) if getElementType(hit) ~= "player" then return end triggerClientEvent (hit,"show",hit) end addEventHandler("onMarkerHit",marker,hitmarker)
  5. حياك الله بأي وقت ^^
  6. آممم جرب jobMarker1 = createMarker(1546.029296875, -1681.7529296875, 13.558256149292-1,"cylinder",2,0,0,0,0) jobPed = createPed(267,1546.029296875, -1681.7529296875, 13.558256149292,89) jobBlip = createBlip(1546.029296875, -1681.7529296875, 13.558256149292,56) setBlipVisibleDistance(jobBlip,170) setElementFrozen(jobPed,true) addEventHandler("onClientPedDamage",root, function () if source == jobPed then cancelEvent() end end) local x,y = guiGetScreenSize() addEventHandler("onClientMarkerHit",resourceRoot, function (hit) if source == jobMarker1 and hit == localPlayer then if getElementType(hit) == "player" and getPlayerTeam(hit) ~= getTeamFromName("Police") then if not isPedInVehicle(hit) then if getPlayerWantedLevel(hit) == 0 then guiSetVisible(GUIEditor.window[1],true) showCursor(true) else outputChatBox ( "لآتستطيع آنت مطلوب " ) end else outputChatBox ( "لآتستطيع فتح النافذه وانت في السياره") end else outputChatBox ( "آنت بالفعل في فريق الشرطه") end end end) GUIEditor = { gridlist = {}, window = {}, button = {} } local x = x - 332 local y = y - 333 GUIEditor.window[1] = guiCreateWindow(345, 90, 379, 544, "Police", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(54, 487, 94, 41, "Take Job", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(244, 487, 88, 41, "الغاء", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") Memo1 = guiCreateMemo(13, 30, 356, 166, "وظيفة شرطي قم باخذ الوظيفه وسجن المجرمين ", false, GUIEditor.window[1]) guiMemoSetReadOnly(Memo1, true) GUIEditor.gridlist[1] = guiCreateGridList(10, 236, 357, 227, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.3) guiGridListAddColumn(GUIEditor.gridlist[1], "Skin Number", 0.3) guiGridListAddColumn(GUIEditor.gridlist[1], "Skin Name", 0.3) for i = 1, 3 do guiGridListAddRow(GUIEditor.gridlist[1]) end guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "1", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 0, 2, "267", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 0, 3, "Hern", false, false) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1] then local skin = guiGridListGetItemText( GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),2) if skin ~= "" then triggerServerEvent("startJob",localPlayer,skin) guiSetVisible(GUIEditor.window[1],false) showCursor(false) end elseif source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end) addEventHandler("onClientRender", getRootElement(), function() local x, y, z = getElementPosition(jobPed) local x2, y2, z2 = getElementPosition(localPlayer) if(isLineOfSightClear(x, y, z, x2, y2, z2, true, true, false, true)) then local sx, sy = getScreenFromWorldPosition(x, y, z+1.3) if(sx) and (sy) then local distance = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if(distance < 30) then dxDrawText("Police", sx+2, sy+2, sx, sy, tocolor(0,0,0), 2-(distance/20), "arial", "center", "center") dxDrawText("Police", sx, sy, sx, sy, tocolor(5,12,218), 2-(distance/20), "arial", "center", "center") end end end end)
  7. skin = { {"skin1",20,10000}, {"skin2",150,22}, {"skin3",46,333}, } for _,v in ipairs ( skin ) do row = guiGridListAddRow ( GridList ) guiGridListSetItemText(GridList,row,1,v[1],false,false) guiGridListSetItemText(GridList,row,2,v[3],false,false) guiGridListSetItemData( GridList, row, 3, v[2] ) end local ped = createPed(264,337.81802,-7989.18262,16.00000,180) addEventHandler('onClientGUIClick',root, function ( ) local id = guiGridListGetItemData( GridList, guiGridListGetSelectedItem( GridList ), 3 ) if ( source == x ) then guiSetVisible(Buywnd ,false) showCursor(false) elseif ( source == GridList ) then if guiGridListGetSelectedItem ( GridList ) ~= -1 then setElementModel ( ped, id) end end end )
  8. jobMarker1 = createMarker(1546.029296875, -1681.7529296875, 13.558256149292-1,"cylinder",2,0,0,0,0) jobPed = createPed(267,1546.029296875, -1681.7529296875, 13.558256149292,89) jobBlip = createBlip(1546.029296875, -1681.7529296875, 13.558256149292,56) setBlipVisibleDistance(jobBlip,170) setElementFrozen(jobPed,true) addEventHandler("onClientPedDamage",root, function () if source == jobPed then cancelEvent() end end) local x,y = guiGetScreenSize() addEventHandler("onClientMarkerHit",resourceRoot, function (hit) if source == jobMarker1 and hit == localPlayer then if getElementType(hit) == "player" and getPlayerTeam(hit) ~= getTeamFromName("Police") then if not isPedInVehicle(hit) then if ( getPlayerWantedLevel() == 0 ) then guiSetVisible(GUIEditor.window[1],true) showCursor(true) else outputChatBox ( "لآتستطيع آنت مطلوب " ) end else outputChatBox ( "لآتستطيع فتح النافذه وانت في السياره") end else outputChatBox ( "آنت بالفعل في فريق الشرطه") end end end) GUIEditor = { gridlist = {}, window = {}, button = {} } local x = x - 332 local y = y - 333 GUIEditor.window[1] = guiCreateWindow(345, 90, 379, 544, "Police", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(54, 487, 94, 41, "Take Job", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(244, 487, 88, 41, "الغاء", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") Memo1 = guiCreateMemo(13, 30, 356, 166, "وظيفة شرطي قم باخذ الوظيفه وسجن المجرمين ", false, GUIEditor.window[1]) guiMemoSetReadOnly(Memo1, true) GUIEditor.gridlist[1] = guiCreateGridList(10, 236, 357, 227, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.3) guiGridListAddColumn(GUIEditor.gridlist[1], "Skin Number", 0.3) guiGridListAddColumn(GUIEditor.gridlist[1], "Skin Name", 0.3) for i = 1, 3 do guiGridListAddRow(GUIEditor.gridlist[1]) end guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "1", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 0, 2, "267", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 0, 3, "Hern", false, false) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1] then local skin = guiGridListGetItemText( GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),2) if skin ~= "" then triggerServerEvent("startJob",localPlayer,skin) guiSetVisible(GUIEditor.window[1],false) showCursor(false) end elseif source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end) addEventHandler("onClientRender", getRootElement(), function() local x, y, z = getElementPosition(jobPed) local x2, y2, z2 = getElementPosition(localPlayer) if(isLineOfSightClear(x, y, z, x2, y2, z2, true, true, false, true)) then local sx, sy = getScreenFromWorldPosition(x, y, z+1.3) if(sx) and (sy) then local distance = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if(distance < 30) then dxDrawText("Police", sx+2, sy+2, sx, sy, tocolor(0,0,0), 2-(distance/20), "arial", "center", "center") dxDrawText("Police", sx, sy, sx, sy, tocolor(5,12,218), 2-(distance/20), "arial", "center", "center") end end end end)
  9. راجعته مالقيت شيء تقصد ذا السطر ؟ guiGridListSetItemText( GridList, row, 3, skins[2],false,false )
  10. nameColumn = Your Column Name skin = { {"skin1",20,10000}, {"skin2",150,22}, {"skin3",46,333}, } for i,skins in ipairs(skin) do local row = guiGridListAddRow(GridList) guiGridListSetItemText(GridList,row,1,skins[1],false,false) guiGridListSetItemText(GridList,row,2,skins[3],false,false) guiGridListSetItemText( GridList, row, 3, skins[2],false,false ) guiGridListSetItemData( GridList, row, 3, skins[2] ) end ------------------------------------------- local ped = createPed(264,337.81802,-7989.18262,16.00000,180) addEventHandler('onClientGUIClick', root, function () if source == x then guiSetVisible(Buywnd ,false) showCursor(false) elseif source == GridList then if guiGridListGetSelectedItem ( GridList ) ~= -1 then setElementModel ( ped,guiGridListGetItemData ( GridList,guiGridListGetSelectedItem ( GridList ), nameColumn ) ) end end end );
  11. function loginPanel() -- Check if autologin is enabled - If yes, then log the player in, else create and show the userpanel local xmlFile = xmlLoadFile(xmlFileName) if xmlFile then status = xmlNodeGetAttribute(xmlFile,"autologin") if (status == "true") then local username = tostring(xmlNodeGetAttribute(xmlFile,"username")) local password = tostring(xmlNodeGetAttribute(xmlFile,"password")) if not (username == "") and not (password == "") then triggerServerEvent("onRequestAutologin",getLocalPlayer(),username,password) triggerServerEvent("automsave", getLocalPlayer()) end else if blackLoginScreen == true then fadeCamera(false,363.19458007813, -1989.0324707031, 21.265274047852, 31.334917297363) end addEvent("onRequestIncreaseAttempts",true) addEvent("onRequestDisplayPanel",true) function randomimages() return unpack(loginImages[math.random(#loginImages)]) end local screenW, screenH = guiGetScreenSize() mainWindow = guiCreateStaticImage((screenW - 424) / 2, (screenH - 398) / 2, 1920, 1200, "ana/1.jpg", false, mainWindow) guiWindowSetSizable(mainWindow, false) local x, y = guiGetScreenSize() local rx, ry = (x/1440), (y/900) addEventHandler("onClientRender", root, function() dxDrawRectangle (rx*8,ry*2,rx*10,rx*5) end) btnLogin = guiCreateStaticImage(189, 500, 420, 60, "ana/5.jpg", false, mainWindow) Nameplayer = guiCreateLabel(700, 150, 400, 500, "Welcome Mr \ Ms ", false, mainWindow) guiSetFont(Nameplayer, "default-bold-small") guiLabelSetColor(Nameplayer, 0, 0, 0) guiSetFont(Nameplayer, "default-bold-small") function changeLabelColor ( ) guiLabelSetColor ( Nameplayer, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( changeLabelColor, 300, 0 ) btnToggleRegister = guiCreateStaticImage(700, 226, 400, 60, "ana/6.jpg", false, mainWindow) editUsername = guiCreateEdit(210, 330, 143, 28, "", false, mainWindow) editPassword = guiCreateEdit(465, 330, 143, 28, "", false, mainWindow) guiEditSetMasked(editPassword, true) registerWindow = guiCreateWindow(880, 216, 320, 269, "Register Panel", false) centerTheGUI(registerWindow) guiWindowSetSizable(registerWindow, false) guiSetAlpha(registerWindow, 1.00) editRegistrationUsername = guiCreateEdit(69, 43, 182, 25, "", false, registerWindow) editRegistrationPassword = guiCreateEdit(69, 83, 182, 25, "", false, registerWindow) guiEditSetMasked(editRegistrationPassword, true) lblRUsername = guiCreateLabel(14, 49, 59, 19, "UserName", false, registerWindow) lblRPassword = guiCreateLabel(14, 89, 59, 19, "Password", false, registerWindow) btnConfirmRegistration = guiCreateButton(63, 157, 191, 30, "Register", false, registerWindow) guiSetProperty(btnConfirmRegistration, "NormalTextColour", "FFAAAAAA") editRegistrationRepeatPassword = guiCreateEdit(68, 122, 182, 25, "", false, registerWindow) guiEditSetMasked(editRegistrationRepeatPassword, true) lblRepeatPassword = guiCreateLabel(14, 128, 59, 19, "Password", false, registerWindow) btnCancel = guiCreateButton(63, 197, 191, 30, "Cancel", false, registerWindow) guiSetProperty(btnCancel, "NormalTextColour", "FFAAAAAA") guiSetVisible(mainWindow, true) guiSetVisible(mInfo, false) guiSetVisible(registerWindow, false) guiSetInputEnabled(true) showCursor(true) addEventHandler("onClientGUIClick",btnLogin,onClickLogin) addEventHandler("onClientGUIClick",btnToggleRegister,onClickRegisterToggle) addEventHandler("onClientGUIClick",btnPlayAsGuest,onClickGuest) addEventHandler("onClientGUIClick",btnConfirmRegistration,onClickRegisterConfirm) addEventHandler("onClientGUIClick",btnCancel,onClickCancel) addEventHandler("onRequestIncreaseAttempts",getRootElement(),increaseAttempts) attemptedLogins = 0 end xmlUnloadFile(xmlFile) else xmlFileHandler(true) end addEventHandler("onRequestDisplayPanel",getRootElement(),logoutHandler) end
  12. GUIEditor = { label = {}, memo = {} } Hours = guiCreateWindow(195, 79, 431, 411, "Hours Admin | By BiG,#BoSs~", false) guiWindowSetSizable(Hours, false) guiSetProperty(Hours, "CaptionColour", "FEFE0000") guiSetVisible (Hours,false) GUIEditor.label[1] = guiCreateLabel(3, 22, 423, 18, "Plzz IF You want an Admin Collect a Hours .. BiG,#BoSs~", false, Hours) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 249, 228, 4) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) GUIEditor.label[2] = guiCreateLabel(5, 388, 260, 13, "This Panel Created By | BiG,BoSs~", false, Hours) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetColor(GUIEditor.label[2], 19, 70, 233) guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) GUIEditor.label[3] = guiCreateLabel(264, 388, 157, 12, "Server Black Jocker ~", false, Hours) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 235, 124, 16) guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false) GUIEditor.memo[1] = guiCreateMemo(9, 57, 412, 327, "------------------------------------------------------------------------------------------------\n1- V.I.P #~ Hours #~ 15hours\n------------------------------------------------------------------------------------------------\n2- Moderator1 #~ Hours #~ 23hours\n------------------------------------------------------------------------------------------------\n3- Moderator2 #~ Hours #~ 30hours\n------------------------------------------------------------------------------------------------\n4- SupModeraTor1 #~ Hours #~ 40hours\n------------------------------------------------------------------------------------------------\n5- SupModerator2 #~ Hours #~ 50hours\n------------------------------------------------------------------------------------------------\n6- Admin1 #~ Hours #~ 65hours\n------------------------------------------------------------------------------------------------\n7- Admin.Plus #~ Hours #~ 80hours\n------------------------------------------------------------------------------------------------\n8- Admin.ToP #~ Hours #~ 95hours\n------------------------------------------------------------------------------------------------\n9- General.Admin #~ Hours #~ 140hours\n------------------------------------------------------------------------------------------------\n10- (VIP-System) You should win in the Competitions\n------------------------------------------------------------------------------------------------", false, Hours) guiMemoSetReadOnly(GUIEditor.memo[1], true) GUIEditor.label[4] = guiCreateLabel(3, 40, 214, 15, "The Rank .. IF You want To #~", false, Hours) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetColor(GUIEditor.label[4], 95, 245, 5) guiLabelSetHorizontalAlign(GUIEditor.label[4], "center", false) GUIEditor.label[5] = guiCreateLabel(216, 40, 205, 15, "The Hours .. IF You want Rank #~", false, Hours) guiSetFont(GUIEditor.label[5], "default-bold-small") guiLabelSetColor(GUIEditor.label[5], 95, 245, 5) outputChatBox("Hours Admin Panel .. Press F10 .. #BiG,#BoSs~", 40, 255, 80) guiSetVisible (Hours, false) function OpenWin() if guiGetVisible ( Hours ) then guiSetVisible ( Hours, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( Hours, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F10", "down", OpenWin)
  13. iMr.SFA7

    playSound

    OK. Yeah, it was a foolish thing not to add on meta.xml. Sorry you all... And thank you. You are welcome.
  14. function loginPanel() -- Check if autologin is enabled - If yes, then log the player in, else create and show the userpanel local xmlFile = xmlLoadFile(xmlFileName) if xmlFile then status = xmlNodeGetAttribute(xmlFile,"autologin") if (status == "true") then local username = tostring(xmlNodeGetAttribute(xmlFile,"username")) local password = tostring(xmlNodeGetAttribute(xmlFile,"password")) if not (username == "") and not (password == "") then triggerServerEvent("onRequestAutologin",getLocalPlayer(),username,password) triggerServerEvent("automsave", getLocalPlayer()) end else if blackLoginScreen == true then fadeCamera(false,363.19458007813, -1989.0324707031, 21.265274047852, 31.334917297363) end addEvent("onRequestIncreaseAttempts",true) addEvent("onRequestDisplayPanel",true) function randomimages() return unpack(loginImages[math.random(#loginImages)]) end local scrX,scrY = guiGetScreenSize() mainWindow = guiCreateStaticImage(0, 0, 1920, 1200, "ana/1.jpg", false, mainWindow) local w,h = guiGetSize (mainWindow,false) local x,y = (scrX-w)/2,(scrY-h)/2 guiSetPosition (mainWindow,x,y,false) guiWindowSetSizable(mainWindow, false) local x, y = guiGetScreenSize() local rx, ry = (x/1440), (y/900) addEventHandler("onClientRender", root, function() dxDrawRectangle (rx*8,ry*2,rx*10,rx*5) end) btnLogin = guiCreateStaticImage(189, 500, 420, 60, "ana/5.jpg", false, mainWindow) Nameplayer = guiCreateLabel(700, 150, 400, 500, "Welcome Mr \ Ms ", false, mainWindow) guiSetFont(Nameplayer, "default-bold-small") guiLabelSetColor(Nameplayer, 0, 0, 0) guiSetFont(Nameplayer, "default-bold-small") function changeLabelColor ( ) guiLabelSetColor ( Nameplayer, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( changeLabelColor, 300, 0 ) btnToggleRegister = guiCreateStaticImage(700, 226, 400, 60, "ana/6.jpg", false, mainWindow) editUsername = guiCreateEdit(210, 330, 143, 28, "", false, mainWindow) editPassword = guiCreateEdit(465, 330, 143, 28, "", false, mainWindow) guiEditSetMasked(editPassword, true) registerWindow = guiCreateWindow(880, 216, 320, 269, "Register Panel", false) centerTheGUI(registerWindow) guiWindowSetSizable(registerWindow, false) guiSetAlpha(registerWindow, 1.00) editRegistrationUsername = guiCreateEdit(69, 43, 182, 25, "", false, registerWindow) editRegistrationPassword = guiCreateEdit(69, 83, 182, 25, "", false, registerWindow) guiEditSetMasked(editRegistrationPassword, true) lblRUsername = guiCreateLabel(14, 49, 59, 19, "UserName", false, registerWindow) lblRPassword = guiCreateLabel(14, 89, 59, 19, "Password", false, registerWindow) btnConfirmRegistration = guiCreateButton(63, 157, 191, 30, "Register", false, registerWindow) guiSetProperty(btnConfirmRegistration, "NormalTextColour", "FFAAAAAA") editRegistrationRepeatPassword = guiCreateEdit(68, 122, 182, 25, "", false, registerWindow) guiEditSetMasked(editRegistrationRepeatPassword, true) lblRepeatPassword = guiCreateLabel(14, 128, 59, 19, "Password", false, registerWindow) btnCancel = guiCreateButton(63, 197, 191, 30, "Cancel", false, registerWindow) guiSetProperty(btnCancel, "NormalTextColour", "FFAAAAAA") guiSetVisible(mainWindow, true) guiSetVisible(mInfo, false) guiSetVisible(registerWindow, false) guiSetInputEnabled(true) showCursor(true) addEventHandler("onClientGUIClick",btnLogin,onClickLogin) addEventHandler("onClientGUIClick",btnToggleRegister,onClickRegisterToggle) addEventHandler("onClientGUIClick",btnPlayAsGuest,onClickGuest) addEventHandler("onClientGUIClick",btnConfirmRegistration,onClickRegisterConfirm) addEventHandler("onClientGUIClick",btnCancel,onClickCancel) addEventHandler("onRequestIncreaseAttempts",getRootElement(),increaseAttempts) attemptedLogins = 0 end xmlUnloadFile(xmlFile) else xmlFileHandler(true) end addEventHandler("onRequestDisplayPanel",getRootElement(),logoutHandler) end
  15. انا ما فدتني في المواضيع الا موضوع الايفون بس موضوع القيم مود ما حليتني فيه النافذة الرئيسية للقيم مود ايش اسمها ؟
  16. حتى الان حطيت 3 مواضيع اليوم عن مقاسات الشاشة
  17. iMr.SFA7

    playSound

    function onLeave (playerSource) setPlayerTeam (playerSource, nil) triggerClientEvent(playerSource,"onLeaveEvent", playerSource) outputChatBox ("bok") end addCommandHandler ("leave", onLeave) addEvent ("onLeaveEvent", true) addEventHandler ("onLeaveEvent", localPlayer, function () playSound ("sounds/goodbye.mp3") end)
  18. iMr.SFA7

    playSound

    addEvent ("onLeaveEvent", true) addEventHandler ("onLeaveEvent", localPlayer, function () playSound ("sounds/goodbye.mp3") end)
  19. ماله علاقة بالموضوع هذا يتعلق بسرعة الألمنت
×
×
  • Create New...