Jump to content

iMr.SFA7

Members
  • Posts

    2,013
  • Joined

  • Last visited

Everything posted by iMr.SFA7

  1. Ped = createPed(7, 2447.8935546875, -1962.7099609375, 13.546875, 180) setElementFrozen ( Ped, true ) addEventHandler('onClientPedDamage',Ped,cancelEvent) local skins = { "(skin Dealer Weapon: 7)" } GUIEditor = { label = {}, button = {}, window = {}, memo = {}, gridlist = {} } GUIEditor.window = guiCreateWindow(345, 90, 379, 544, "Dealer Weapon Job", false) guiWindowSetSizable(GUIEditor.window, false) --GUIEditor.label = guiCreateLabel(9, 27, 275, 219, "", false, GUIEditor.window) --guiSetFont(GUIEditor.label, "default-bold-small") GUIEditor.memo = guiCreateMemo(13, 30, 356, 166, "يجب اخذ الوظيفة وايصال الطلبات لربح المال", false, GUIEditor.window) guiMemoSetReadOnly(GUIEditor.memo, true) GUIEditor.aceptar = guiCreateButton(54, 487, 94, 41, "Take Job", false, GUIEditor.window) GUIEditor.cancelar = guiCreateButton(244, 487, 88, 41, "الغاء", false, GUIEditor.window) GUIEditor.gridlist = guiCreateGridList(10, 236, 357, 227, false, GUIEditor.window) guiGridListSetSelectionMode(GUIEditor.gridlist,2) _skins = guiGridListAddColumn(GUIEditor.gridlist, "Personal selection", 0.9) guiSetVisible(GUIEditor.window, false) for index, skin in ipairs ( skins ) do local row = guiGridListAddRow ( GUIEditor.gridlist ) guiGridListSetItemText ( GUIEditor.gridlist, row, _skins, tostring ( skin ), false, false ) end addEventHandler ( "onClientGUIClick", guiRoot, function ( ) if ( source == GUIEditor.aceptar ) then local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist ) if ( row and col and row ~= -1 and col ~= -1 ) then local skinName = guiGridListGetItemText ( GUIEditor.gridlist, row, 1 ) if ( skinName == "(skin Dealer Weapon: 7)" ) then triggerServerEvent ( "setBarcoWeapon", localPlayer, 7 ) end guiSetVisible ( GUIEditor.window, false ) showCursor ( false ) else outputChatBox ( "Error: press Enter To your Skin Or press Exit", 255, 0, 0 ) end elseif ( source == GUIEditor.cancelar ) then guiSetVisible ( GUIEditor.window, false ) showCursor ( false ) end end ) function pe () if guiGetVisible (GUIEditor.window) == true then else showCursor (true) guiSetVisible (GUIEditor.window,true) end end addEvent ("MinerWeapon", true) addEventHandler ("MinerWeapon",root, pe) addEvent ( "barco_set_locationWeapon", true ) addEventHandler ( "barco_set_locationWeapon", root, function ( x, y, z ) marker = createMarker ( x, y, z - 1, "cylinder", 2.5, 235, 141, 19, 153 ) blip = createBlipAttachedTo ( marker, 41 ) addEventHandler ( "onClientMarkerHit", marker, onBarcoStopHit ) end ) function onBarcoStopHit ( hitPlayer ) if ( getElementType ( hitPlayer ) == "player" ) then triggerServerEvent ( "pizza_finishWeapon", localPlayer ) if isElement ( blip ) then destroyElement ( blip ) end if isElement ( marker ) then removeEventHandler ( "onClientMarkerHit", marker, onBarcoStopHit ) destroyElement ( marker ) end end end function destroy ( ) if isElement ( blip ) then destroyElement ( blip ) end if isElement ( marker ) then removeEventHandler ( "onClientMarkerHit", marker, onBarcoStopHit ) destroyElement ( marker ) end end addEventHandler ("onClientPlayerVehicleExit",localPlayer,destroy) addEventHandler ( "onClientPlayerWasted", localPlayer,destroy) GUIEditor_Button = {} GUIEditor_Grid = {} GUIEditor_Marker = {} GUIEditor_Window = {} vehicleId = {559}--1279.17859 -805.24109 86.12299 GUIEditor_Marker[1] = createMarker(2454.3662109375, -1973.693359375, 13.546875-1,"cylinder",2,245,0,0) -- السيارة GUIEditor_Marker[2] = createMarker(2447.8935546875, -1962.7099609375, 13.546875,"cylinder",3,245,0,0,0) -- الكلام فوق البيد local x,y = guiGetScreenSize() local x = x - 208 local y = y - 321 GUIEditor_Window[1] = guiCreateWindow(432, 152, 211, 297,"Dealer Weapon Job",false) guiSetVisible(GUIEditor_Window[1],false) guiSetAlpha(GUIEditor_Window[1],1) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(9, 22, 192, 228,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) column = guiGridListAddColumn(GUIEditor_Grid[1],"vehicle name",0.9) GUIEditor_Button[2] = guiCreateButton(9, 255, 81, 33,"Select",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(127, 255, 74, 33,"Close",false,GUIEditor_Window[1]) for i,id in ipairs ( vehicleId ) do guiGridListSetItemText ( GUIEditor_Grid[1], guiGridListAddRow( GUIEditor_Grid[1] ), column, getVehicleNameFromModel( id ), false, false ) end ------------------------------------------------------------------------------------------------------ addEventHandler ("onClientMarkerHit", GUIEditor_Marker[1], function( player ) if getPlayerTeam( player ) and getTeamName( getPlayerTeam( player ) ) == 'Dealer Weapon' and not isPedInVehicle( player ) and player == localPlayer then x999,y999,z999 = getElementPosition( player ) setElementFrozen ( player, true ) guiSetVisible(GUIEditor_Window[1],true) showCursor( true ) end end ) addEventHandler('onClientGUIClick', root, function() if ( source == GUIEditor_Button[1] ) then guiSetVisible(GUIEditor_Window[1],false) showCursor( false ) setElementFrozen ( localPlayer, false ) elseif ( source == GUIEditor_Button[2] ) then local name = guiGridListGetItemText( GUIEditor_Grid[1], guiGridListGetSelectedItem ( GUIEditor_Grid[1] ), 1 ) triggerServerEvent('gvoaWeapon', getLocalPlayer(), name) guiSetVisible(GUIEditor_Window[1],false) setElementFrozen ( localPlayer, false ) showCursor( false ) end end ) ------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------- addEventHandler("onClientRender", getRootElement(), function() local x, y, z = getElementPosition (GUIEditor_Marker[2]) 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+2) if(sx) and (sy) then local distance = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if(distance < 100) then dxDrawText("Dealer Weapon Job", sx, sy, sx, sy, tocolor(245,0,0, 1000), 2-(distance/100), "arial", "center", "center") dxDrawText("Dealer Weapon Job", sx, sy, sx, sy, tocolor(245,0,0, 1000), 2-(distance/100), "arial", "center", "center") end end end end) addEventHandler("onClientResourceStart", resourceRoot, function() lvlpn = guiCreateWindow(373, 142, 286, 414, "", false) guiWindowSetSizable(lvlpn, false) guiWindowSetSizable(lvlpn,false) guiSetVisible(lvlpn,false) memo = guiCreateMemo(11, 228, 261, 176, "Leve-1 - 100\nLeve-2 - 200\nLeve-3 - 300\nLeve-4 - 400\nLeve-5 - 500\nLeve-6 - 600\nLeve-7 - 700\nLeve-8 - 800", false, lvlpn) label1 = guiCreateLabel(20, 57, 97, 15, "الـــمستوى الاول", false, lvlpn) guiLabelSetColor(label1, 227, 97, 51) label2 = guiCreateLabel(14, 82, 36, 15, "", false, lvlpn) guiLabelSetColor(label2, 253, 245, 24) levellabaln = guiCreateLabel(54, 81, 84, 16, "", false, lvlpn) label3 = guiCreateLabel(20, 111, 87, 15, "الــمستوى الثاني", false, lvlpn) guiLabelSetColor(label3, 227, 97, 51) label4 = guiCreateLabel(14, 136, 36, 16, "Level :", false, lvlpn) guiLabelSetColor(label4, 253, 245, 24) label5 = guiCreateLabel(57, 136, 84, 16, "", false, lvlpn) label6 = guiCreateLabel(193, 183, 69, 15, "تبقى :", false, lvlpn) guiLabelSetColor(label6, 254, 23, 23) label7 = guiCreateLabel(20, 32, 65, 25, "", false, lvlpn) label8 = guiCreateLabel(91, 32, 100, 25, "", false, lvlpn) label9 = guiCreateLabel(20, 183, 121, 15, "للوصول للمستوى الاخر", false, lvlpn) guiLabelSetColor(label8, 41, 175, 0) label11 = guiCreateLabel(145, 185, 48, 13, "0", false, lvlpn) end ) bindKey ( "F4", "down", function ( ) local player = getLocalPlayer () local playerTeam = getPlayerTeam ( player ) local getplayernameDiverjob = getPlayerName (player) local TeamName = getTeamName ( playerTeam ) if ( TeamName == "Dealer Weapon" ) then guiSetVisible ( lvlpn, not guiGetVisible ( lvlpn ) ) showCursor ( not isCursorShowing( ) ) local level = getElementData(localPlayer, "TotalpointDiverjob") or 0 if ( level ) then guiSetText(label2, level) guiSetText(label7 , getplayernameDiverjob) if level >= 100 then guiSetText(label2, "1") end if level >= 200 then guiSetText(label2, "2") end if level >= 300 then guiSetText(label2, "3") end if level >= 400 then guiSetText(label2, "4") end if level >= 500 then guiSetText(label2, "5") end if level >= 600 then guiSetText(label2, "6") end if level >= 700 then guiSetText(label2, "7") end if level >= 800 then guiSetText(label2, "8") end end end end )
  2. هنا حنآ ما نبرمج عنك آذآ كنت تبي الكود جآهز فـ هذآ مآهو القسم المنآسب القسم هذآ نسآعدك لا أكثر مهوب نكتب الأكواد عنك ~ =))
  3. table createPed setElementFrozen bindKey setElementModel setCameraMatrix triggerServerEvent spawnPlayer
  4. شغآل عندي سويت مليون آنتحآر يحفظ الأسلحة ذذذذ
  5. hospitalsTable = { { 1179.22803,-1323.52087,14.15908}, { 1606.85559,1822.30957,10.82031}, { -2659.85767,632.98505,14.45313}, } addEventHandler("onPlayerWasted", root, function() local weapons = convertWeaponsToJSON(source) setElementData(source,"tempWeapons",weapons) minHospital = math.random ( #hospitalsTable ) spawnPlayer ( source, hospitalsTable[minHospital][1], hospitalsTable [minHospital][2], hospitalsTable [minHospital][3] ) end ) addEventHandler("onPlayerSpawn", root, function () local weapons = getElementData(source,"tempWeapons") if (weapons) then giveWeaponsFromJSON(source, weapons) end end ) function convertWeaponsToJSON(player) local weaponSlots = 12 local weaponsTable = {} for slot=1, weaponSlots do local weapon = getPedWeapon( source, slot ) local ammo = getPedTotalAmmo( source, slot ) if (weapon > 0 and ammo > 0) then weaponsTable[weapon] = ammo end end return toJSON(weaponsTable) end function giveWeaponsFromJSON(player, weapons) if (weapons and weapons ~= "") then for weapon, ammo in pairs(fromJSON(weapons)) do if (weapon and ammo) then giveWeapon(player, tonumber(weapon), tonumber(ammo)) end end end end
  6. على العموم كلكم معدلين على القيم مود ومدري وش وفي النهآية وآحد مشتريه من آبو شنب ورآح نشره ~
  7. "onClientClick" addEventHandler showCursor isMouseInPosition -- Useful Functions removeEventHandler "onClientRender"
  8. آنسخ الكود مرة ثآنية وسؤال اللبل الي اسمه levellabaln موجود بوظيفة المآركر ؟ لأني ما اشوفه بالنافذة
  9. طيب خلنآ الحين نسويها بدون ترآيقر وبدون حفظ نشوف رآح تضبط ولا لا ؟ جرب هذآ وطبعاً أنت تقول ماركر مع أني ما أشوف مآركر بالكود جرب ذا GUIEditor = { window = {}, label = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(373, 142, 286, 414, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1],false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.memo[1] = guiCreateMemo(11, 228, 261, 176, "Leve-1 - 100\nLeve-2 - 200\nLeve-3 - 300\nLeve-4 - 400\nLeve-5 - 500\nLeve-6 - 600\nLeve-7 - 700\nLeve-8 - 800", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(20, 57, 97, 15, "الـــمستوى الاول", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 227, 97, 51) GUIEditor.label[2] = guiCreateLabel(14, 82, 36, 15, "Level :", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 253, 245, 24) GUIEditor.label[9] = guiCreateLabel(54, 81, 84, 16, "0", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(20, 111, 87, 15, "الــمستوى الثاني", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[3], 227, 97, 51) GUIEditor.label[4] = guiCreateLabel(14, 136, 36, 16, "Level :", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 253, 245, 24) GUIEditor.label[10] = guiCreateLabel(57, 136, 84, 16, "0", false, GUIEditor.window[1]) GUIEditor.label[5] = guiCreateLabel(193, 183, 69, 15, "تبقى :", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 254, 23, 23) GUIEditor.label[6] = guiCreateLabel(20, 32, 65, 25, "Your Name:", false, GUIEditor.window[1]) GUIEditor.label[7] = guiCreateLabel(91, 32, 100, 25, "", false, GUIEditor.window[1]) GUIEditor.label[8] = guiCreateLabel(20, 183, 121, 15, "للوصول للمستوى الاخر", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[8], 41, 175, 0) GUIEditor.label[11] = guiCreateLabel(145, 185, 48, 13, "0", false, GUIEditor.window[1]) end ) bindKey ( "F4", "down", function ( ) local playerTeam = getPlayerTeam ( localPlayer ) local TeamName = getTeamName ( playerTeam ) if ( TeamName == "D" ) then guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( not isCursorShowing( ) ) local lvl = getElementData(localPlayer, "TotalpointDiverjob") or 0 guiSetText(GUIEditor.label[2], "Level : "..lvl.."") local getplayernameDiverjob = getPlayerName (localPlayer) guiSetText(GUIEditor.label[6] , "Your Name: "..getplayernameDiverjob.."") if lvl >= 200 then guiSetText(levellabaln, "1") end if lvl >= 200 then guiSetText(levellabaln, "2") end if lvl >= 300 then guiSetText(levellabaln, "3") end if lvl >= 400 then guiSetText(levellabaln, "4") end if lvl >= 500 then guiSetText(levellabaln, "5") end if lvl >= 600 then guiSetText(levellabaln, "6") end if lvl >= 700 then guiSetText(levellabaln, "7") end if lvl >= 800 then guiSetText(levellabaln, "8") end end end )
  10. كذآ ؟ levellabaln بالكلنت مافهمت ليه حاط اذا اللبل يسواي كذا تحط باللبل وليه مسوي الترايقر من اساسه وجآيب الأكاونت داتا واصلاً مافي أكاونت دآتآ وعندك أخطاء ثآنية بس جآوبني عن السؤالين الي فوق ^
  11. السآلفة يبيلها حسآبآت و تستخدم هـ الوظائف dxDrawRectangle dxCreateRenderTarget getElementMatrix dxSetRenderTarget
  12. خبر عاجل قبل قليل لا حول ولا قوة الا بالله شاب عمره 17 سنة كان يكلم صديقه بالهاتف اثناء القيادة مسرعا وفجاه لاحول ولا قوة إلا بالله خلص رصيده
  13. الى الآن مسوي 3 موآضيع عن هـ الموضوع أولاً ما تقدر تحط صورة على الحآئط ! بالبدآية المفروض أنت تكون مسوي التكسد ببرآمج يعني تصممه txd shop أنصحك تستخدم برنآمج وبعدها تستخدم هـ الأكواد لتبديل الاوبجكت function Replace ( ) TXD = engineLoadTXD ( "txdFile.txd" ) engineImportTXD ( TXD, 46 ) end addEventHandler("onClientResourceStart",resourceRoot, function () setTimer ( Replace, 1000, 1) end ) رقم 46 هو الاوبجكت الي بتبدله وضيف ملف الاوبجكت الي هو التكسد للميتا وحط هـ الكود بملف كلنت وضيفه للميتا وثآني مرة يآليت لا تسب خلق الله !
  14. function chatbox( text, type) if ( getSerialData ( getPlayerSerial ( source ), "TagState" ) == "Enable" ) then return end if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("king Dirft")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF* [ #CC0000king Dirft#FFFFFF ] x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [king Dirft] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("king of time")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF* [#FF0000 king of time#FFFFFF ] x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [king of time] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("V.I.P")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF* [ #00FF00V.I.P#FFFFFF ] x" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [V.I.P] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("polise")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF* [#336600 polise#FFFFFF ] x" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [polise] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("polise")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF* [#0033FF Moderator1#FFFFFF ] x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Moderator1] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator1")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF* [ #000066Moderator1#FFFFFF ] x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Moderator1] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator2")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF* [ #000066Moderator2#FFFFFF ] x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Moderator2] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator3")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF* [ #000066Moderator3#FFFFFF ] x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Moderator2] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator1")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF* [ #00FFCCSuperModerator1#FFFFFF ] x" .. getPlayerName ( source ) .. ": " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [superModerator1] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator2")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF* [ #669999SuperModerator2#FFFFFF ] x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [V.I.P] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator2")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#0099ff* [ مرشح للأدمنية ] x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [مرشح] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin1")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF* [#FFFF00 Admin #FFFFFF ] x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Admin] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF* [#99CC00 Head.Admin#FFFFFF ] x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Head.Admin] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("professional Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF* [#660000 professional Admin#FFFFFF ] x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [professional Admin] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin.TOP")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF* [ #990000Admin.TOP#FFFFFF ] x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Admin.TOP] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin boss")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF* [ #00ff00Admin boss#FFFFFF ] x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Admin boss] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("King of server")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF* [ #ff0000King of server#FFFFFF ] x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [King of server] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Big.Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF* [ #FFFF00Big.Admin#FFFFFF ] x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [big.Admin] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("prince.Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF* [ #CC9933prince.Admin#FFFFFF ] x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [prince.Admin] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("KING ADMIN")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF* [ #990066KING ADMIN#FFFFFF ] x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [KING ADMIN] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin General")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF* [ #CC0099Admin General#FFFFFF ] x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Admin General] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin official")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF* [ #CCFFFFAdmin official#FFFFFF ] x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Admin official] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("AdminMNTMAH")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF* [ #FF6633AdminH#FFFFFFMNTMAH ] x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [AdminMNTMAH] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF* [#660000 Console#669999 ] x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Console] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF[ play ] x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [play] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("console")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF[ نائـــــب صـــاحب الســيرفــر ] x" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [نائب صاحب السيرفر] " .. getPlayerName ( source ) .. ": " .. text) elseif type == 0 then cancelEvent ( ) local r, g, b = getPlayerNametagColor(source) outputChatBox ( " " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. text ) end end addEventHandler("onPlayerChat", getRootElement(), chatbox) function s3d() outputChatBox ( "#00bbcc=#000000= #Ff0000Script #00bbccTAG #ff0000v.3 #000000By #ff0000SAEF-ADMIN.s=#00bbcc=", source, 0, 0, 0, true ) end addEventHandler("onPlayerJoin", getRootElement(), s3d) function getSerialData(serial,key) if ( key and type(serial) == "string") then value = getElementData(root,serial.."&"..key) end return value end
  15. يعني أنت موب مركب تآج أدمن ؟ ويكرر ؟ مستحيل يكرر لأني مسوي كانسل ايفينت تأكد أن مافي سكربت يسوي ايفينت الكتابة بالشآت ؟
  16. function pe () if guiGetVisible (GUIEditor.window) == true then else showCursor (true) guiSetVisible (GUIEditor.window,true) end end addEvent ("MinerPizz", true) addEventHandler ("MinerPizz",root, pe) addEvent ( "barco_set_locationPizz", true ) addEventHandler ( "barco_set_locationPizz", root, function ( x, y, z ) marker = createMarker ( x, y, z - 1, "cylinder", 2.5, 235, 141, 19, 153 ) blip = createBlipAttachedTo ( marker, 41 ) addEventHandler ( "onClientMarkerHit", marker, onBarcoStopHit ) end ) function onBarcoStopHit ( hitPlayer ) if ( getElementType ( hitPlayer ) == "player" ) and ( hitPlayer == localPlayer ) then triggerServerEvent ( "pizza_finishPizz", localPlayer ) if isElement ( blip ) then destroyElement ( blip ) end if isElement ( marker ) then removeEventHandler ( "onClientMarkerHit", marker, onBarcoStopHit ) destroyElement ( marker ) end end end function destroy ( ) if isElement ( blip ) then destroyElement ( blip ) end if isElement ( marker ) then removeEventHandler ( "onClientMarkerHit", marker, onBarcoStopHit ) destroyElement ( marker ) end end addEventHandler ("onClientPlayerVehicleExit",localPlayer,destroy) addEventHandler ( "onClientPlayerWasted", localPlayer,destroy) GUIEditor_Button = {} GUIEditor_Grid = {} GUIEditor_Marker = {} GUIEditor_Window = {} vehicleId = {448}--1279.17859 -805.24109 86.12299 GUIEditor_Marker[1] = createMarker(1224.5068359375, -900.4482421875, 42.898097991943-1,"cylinder",2,255,255,0,255) -- السيارة GUIEditor_Marker[2] = createMarker(1209.6396484375, -904.720703125, 43.020980834961,"cylinder",3,255,0,0,0) -- الكلام فوق البيد local x,y = guiGetScreenSize() local x = x - 208 local y = y - 321 GUIEditor_Window[1] = guiCreateWindow(432, 152, 211, 297,"Pizz Job",false) guiSetVisible(GUIEditor_Window[1],false) guiSetAlpha(GUIEditor_Window[1],1) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(9, 22, 192, 228,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) column = guiGridListAddColumn(GUIEditor_Grid[1],"vehicle name",0.9) GUIEditor_Button[2] = guiCreateButton(9, 255, 81, 33,"Select",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(127, 255, 74, 33,"Close",false,GUIEditor_Window[1]) for i,id in ipairs ( vehicleId ) do guiGridListSetItemText ( GUIEditor_Grid[1], guiGridListAddRow( GUIEditor_Grid[1] ), column, getVehicleNameFromModel( id ), false, false ) end ------------------------------------------------------------------------------------------------------ addEventHandler ("onClientMarkerHit", GUIEditor_Marker[1], function( player ) if getPlayerTeam( player ) and getTeamName( getPlayerTeam( player ) ) == 'Pizz' and not isPedInVehicle( player ) and player == localPlayer then x999,y999,z999 = getElementPosition( localPlayer ) setElementFrozen ( localPlayer, true ) guiSetVisible(GUIEditor_Window[1],true) showCursor( true ) end end ) addEventHandler('onClientGUIClick', root, function() if ( source == GUIEditor_Button[1] ) then guiSetVisible(GUIEditor_Window[1],false) showCursor( false ) setElementFrozen ( localPlayer, false ) elseif ( source == GUIEditor_Button[2] ) then local name = guiGridListGetItemText( GUIEditor_Grid[1], guiGridListGetSelectedItem ( GUIEditor_Grid[1] ), 1 ) triggerServerEvent('gvoaPizz', getLocalPlayer(), name) guiSetVisible(GUIEditor_Window[1],false) setElementFrozen ( localPlayer, false ) showCursor( false ) end end ) ------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------- addEventHandler("onClientRender", getRootElement(), function() local x, y, z = getElementPosition (GUIEditor_Marker[2]) 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+2) if(sx) and (sy) then local distance = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if(distance < 100) then dxDrawText("Pizz Job", sx, sy, sx, sy, tocolor(255, 255, 0, 1000), 2-(distance/100), "arial", "center", "center") dxDrawText("Pizz Job", sx, sy, sx, sy, tocolor(255, 255, 0, 1000), 2-(distance/100), "arial", "center", "center") end end end end)
  17. الرجآل يقول أبي واحد يبرمج لي قيم مود هجولة سؤالي هنا لك أنت آيش نفهم من " قيم مود هجولة " ؟ play قيم مود هجولة هو قيم مود الـ ودايم أشوفك تقتبس رد آي احد وتمسكه انت مالك خبرة ما تعرف تبرمج لا والله أنت المبرمج الكبير
  18. حيآكك في آي وقت / Any Time !
  19. function pe () if guiGetVisible (GUIEditor.window) == true then else showCursor (true) guiSetVisible (GUIEditor.window,true) end end addEvent ("MinerPizz", true) addEventHandler ("MinerPizz",root, pe) addEvent ( "barco_set_locationPizz", true ) addEventHandler ( "barco_set_locationPizz", root, function ( x, y, z ) marker = createMarker ( x, y, z - 1, "cylinder", 2.5, 235, 141, 19, 153 ) blip = createBlipAttachedTo ( marker, 41 ) addEventHandler ( "onClientMarkerHit", marker, onBarcoStopHit ) end ) function onBarcoStopHit ( hitPlayer ) if ( getElementType ( hitPlayer ) == "player" ) and ( hitPlayer == localPlayer ) then triggerServerEvent ( "pizza_finishPizz", localPlayer ) if isElement ( blip ) then destroyElement ( blip ) end if isElement ( marker ) then removeEventHandler ( "onClientMarkerHit", marker, onBarcoStopHit ) destroyElement ( marker ) end end end function destroy ( ) if isElement ( blip ) then destroyElement ( blip ) end if isElement ( marker ) then removeEventHandler ( "onClientMarkerHit", marker, onBarcoStopHit ) destroyElement ( marker ) end end addEventHandler ("onClientPlayerVehicleExit",root,destroy) addEventHandler ( "onClientPlayerWasted", localPlayer,destroy) GUIEditor_Button = {} GUIEditor_Grid = {} GUIEditor_Marker = {} GUIEditor_Window = {} vehicleId = {448}--1279.17859 -805.24109 86.12299 GUIEditor_Marker[1] = createMarker(1224.5068359375, -900.4482421875, 42.898097991943-1,"cylinder",2,255,255,0,255) -- السيارة GUIEditor_Marker[2] = createMarker(1209.6396484375, -904.720703125, 43.020980834961,"cylinder",3,255,0,0,0) -- الكلام فوق البيد local x,y = guiGetScreenSize() local x = x - 208 local y = y - 321 GUIEditor_Window[1] = guiCreateWindow(432, 152, 211, 297,"Pizz Job",false) guiSetVisible(GUIEditor_Window[1],false) guiSetAlpha(GUIEditor_Window[1],1) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(9, 22, 192, 228,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) column = guiGridListAddColumn(GUIEditor_Grid[1],"vehicle name",0.9) GUIEditor_Button[2] = guiCreateButton(9, 255, 81, 33,"Select",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(127, 255, 74, 33,"Close",false,GUIEditor_Window[1]) for i,id in ipairs ( vehicleId ) do guiGridListSetItemText ( GUIEditor_Grid[1], guiGridListAddRow( GUIEditor_Grid[1] ), column, getVehicleNameFromModel( id ), false, false ) end ------------------------------------------------------------------------------------------------------ addEventHandler ("onClientMarkerHit", GUIEditor_Marker[1], function( player ) if getPlayerTeam( player ) and getTeamName( getPlayerTeam( player ) ) == 'Pizz' and not isPedInVehicle( player ) and player == localPlayer then x999,y999,z999 = getElementPosition( localPlayer ) setElementFrozen ( localPlayer, true ) guiSetVisible(GUIEditor_Window[1],true) showCursor( true ) end end ) addEventHandler('onClientGUIClick', root, function() if ( source == GUIEditor_Button[1] ) then guiSetVisible(GUIEditor_Window[1],false) showCursor( false ) setElementFrozen ( localPlayer, false ) elseif ( source == GUIEditor_Button[2] ) then local name = guiGridListGetItemText( GUIEditor_Grid[1], guiGridListGetSelectedItem ( GUIEditor_Grid[1] ), 1 ) triggerServerEvent('gvoaPizz', getLocalPlayer(), name) guiSetVisible(GUIEditor_Window[1],false) setElementFrozen ( localPlayer, false ) showCursor( false ) end end ) ------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------- addEventHandler("onClientRender", getRootElement(), function() local x, y, z = getElementPosition (GUIEditor_Marker[2]) 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+2) if(sx) and (sy) then local distance = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if(distance < 100) then dxDrawText("Pizz Job", sx, sy, sx, sy, tocolor(255, 255, 0, 1000), 2-(distance/100), "arial", "center", "center") dxDrawText("Pizz Job", sx, sy, sx, sy, tocolor(255, 255, 0, 1000), 2-(distance/100), "arial", "center", "center") end end end end)
×
×
  • Create New...