Jump to content

Me[Z]oO

Members
  • Posts

    1,830
  • Joined

  • Last visited

Everything posted by Me[Z]oO

  1. عفوا منور بلاصدار الجاي انسقه
  2. العفو حياك الله
  3. ﻻزم تسوي تريقر warpPedIntoVehicle سيرفر
  4. م حدا رح يوافق هالمقابل المبرمجين يوافقوا عن طريق $
  5. هذا اسمي وم اعرف الكلام ذا كيف عرفته انت ؟ ض
  6. منور انشالله والتوفيق لي ولك
  7. فكره رائعه بسويها انشاء الله مشكور ومنور ااخي
  8. setElementData getElementData
  9. اشرح طريقتك بلفنكشنات
  10. السلام عليكم امم اريد اسوي Forget Password يقدر يرجع حسابه كيف ؟ اريد طريقة (م قصدي جاهز) اقصد الفنكشنات وشكرا
  11. Me[Z]oO

    كود

    هي الي خلتني اغسل يدي 4 مرات ض وكمان في خرابيط بالتايمر 100,100,pla) ??? المهم عطيتك المود خاص اقبله
  12. Me[Z]oO

    كود

    طيب تمام بشوفه ,
  13. addEventHandler ( "onResourceStart", resourceRoot, function() teams = { createTeam ( "Red", 255, 0, 0 ), createTeam ( "Blue", 0, 0, 255 ), } for c, v in ipairs ( teams ) do setElementDimension ( v, 1 ) end end ) --============================================================================================= function SelectTeam ( PlayerTeam ) if ( getElementDimension ( source ) == 1 ) then local TheTeam = getTeamFromName(PlayerTeam) setPlayerTeam(source, TheTeam) spawn() setElementDimension ( source, 1 ) end end addEvent( "SelectTeam", true ) addEventHandler( "SelectTeam", root, SelectTeam ) --================================================================================================ function spawn() if ( getElementDimension ( source ) == 1 ) then TeamName = getTeamName ( getPlayerTeam ( source ) ) if (TeamName) == "Red" then fadeCamera(source,true) setCameraTarget(source,source) spawnPlayer (source, 2462.13135, -1713.80273, 13.51884, math.random (0,288), 46, 0,1) triggerClientEvent ("closee", root ) end ---===================================================================================== if (TeamName) == "Blue" then fadeCamera(source,true) setCameraTarget(source,source) spawnPlayer (source, 2514.08179 ,-1663.66248 ,13.59749, math.random (0,288), 45, 0,1) triggerClientEvent ("closee", root ) end else outputChatBox("خطأ") end end --=============================================================================================== function player_Wasted() if ( getElementDimension ( source ) == 1 ) then setElementData(source,"Mezo",true) setTimer(spawn, 1800, 1, source) end end addEventHandler ( "onPlayerWasted", root, player_Wasted ) addEventHandler('onPlayerSpawn',root, function() if getElementData(source,"Mezo") then setElementDimension(source,1) end end)
  14. هات الاكواد قبل التعديل
  15. هههههههههههههههههههههههه
  16. function player_Wasted() if ( getElementDimension ( source ) == 1 ) then setElementData(source,"Mezo",true) setTimer(spawn, 1800, 1, source) end end addEventHandler ( "onPlayerWasted", root, player_Wasted ) function spawn() TeamName = getTeamName ( getPlayerTeam ( source ) ) if (TeamName) == "Red" then fadeCamera(source,true) setCameraTarget(source,source) spawnPlayer (source, 2462.13135, -1713.80273, 13.51884, math.random (0,288), 46, 0,1) triggerClientEvent ("closee", root ) end if (TeamName) == "Blue" then fadeCamera(source,true) setCameraTarget(source,source) spawnPlayer (source, 2514.08179 ,-1663.66248 ,13.59749, math.random (0,288), 45, 0,1) triggerClientEvent ("closee", root ) end end addEventHandler('onPlayerSpawn',root, function() if getElementData(source,"Mezo") then setElementDimension(source,1) end end )
  17. Me[Z]oO

    كود

    -- Client Side local key = "o" GUIEditor.window is delete function Show_Hide() if guiGetVisible(GUIEditor.window[1]) == false then guiSetVisible(GUIEditor.window[1], true) showCursor(true) else guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end bindKey(key,"down",Show_Hide) for id = 400, 611 do if getVehicleNameFromModel(id) ~= "" then local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], row, 2, getVehicleNameFromModel(id), false, false) guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, tostring(id), false, false) end end addEventHandler( 'onClientGUIClick', root, function() local sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) local ID = guiGridListGetItemText(GUIEditor.gridlist[1],sel,1) if (source == GUIEditor.button[1]) then triggerServerEvent("SpawnMyVehicle", localPlayer, ID) elseif (source == GUIEditor.button[2]) then triggerServerEvent("DestroyMyVehicle", localPlayer) elseif (source == GUIEditor.button[5]) then triggerServerEvent( 'WVehicleToMe', localPlayer ) elseif (source == GUIEditor.button[4]) then triggerServerEvent( 'WMEToVehicle', localPlayer ) end end ) addEventHandler( 'onClientGUIClick', root, function() if (source == GUIEditor.button[6]) then guiSetVisible( GUIEditor.window[1], false) guiSetInputEnabled(false) showCursor(false) outputChatBox('[RentSystem]: تم قفل لوحة نظام الاستئجار ',255,0,0,true ) end end ) addEventHandler("onClientGUIClick", root,function() if source == GUIEditor.checkbox[2] and guiCheckBoxGetSelected (GUIEditor.checkbox[2]) == true then triggerServerEvent('StartRandomColor',localPlayer) elseif source == GUIEditor.checkbox[2] and guiCheckBoxGetSelected (GUIEditor.checkbox[2]) == false then triggerServerEvent('StopRandomColor',localPlayer) end end ) -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[3] and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == true then triggerServerEvent('Create',localPlayer) elseif source == GUIEditor.checkbox[3] and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == false then triggerServerEvent('Destroy',localPlayer) end end ) addEventHandler('onClientGUIClick',root,function () if source == GUIEditor.checkbox[4] then triggerServerEvent('VehicleDamageProof',localPlayer) end end) -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[1] and guiCheckBoxGetSelected (GUIEditor.checkbox[1]) == true then triggerServerEvent('nitro',localPlayer) elseif source == GUIEditor.checkbox[1] and guiCheckBoxGetSelected (GUIEditor.checkbox[1]) == false then triggerServerEvent('StopNitro',localPlayer) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function () if ( source == GUIEditor.button[3] ) then triggerServerEvent("FixCar",root) end end ) setTimer(function() guiSetProperty(GUIEditor.checkbox[1], "NormalTextColour", string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 50, 0) server side vehicle = {} --Server Side addEvent('SpawnMyVehicle', true) addEventHandler( 'SpawnMyVehicle', root, function ( ID ) if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local SerialPlayer , x, y, z = getPlayerSerial(source) , getElementPosition(source) vehicle[source] = createVehicle( tonumber(ID), x + 2, y + 2, z + 1) setElementData(vehicle[source],'VehicleSerial',SerialPlayer) warpPedIntoVehicle ( source, vehicle[source] ) outputChatBox('[RentSystem]: مرحبا بك في سيارتك ', source ,0,255,0,true ) end ) addEvent( 'DestroyMyVehicle', true ) addEventHandler( 'DestroyMyVehicle', root, function ( ) if not isElement(vehicle[source]) then outputChatBox("[RentSystem]: ليس هناك سيارة لازالتها", source, 255, 0, 0, true) else if vehicle[source] and isElement(vehicle[source]) then destroyElement(vehicle[source]) outputChatBox('[RentSystem]: تم ازالة سيارتك بنجاح ', source ,0,255,0,true ) end end end ) addEvent( 'WVehicleToMe', true ) addEventHandler( 'WVehicleToMe', root, function() if not isElement(vehicle[source]) then outputChatBox("[RentSystem]: ليس هناك سيارة لسحبها", source, 255, 0, 0, true) else local x, y, z = getElementPosition(source) setElementPosition(vehicle[source], x, y, z) warpPlayerIntoVehicle(source, vehicle[source]) outputChatBox('[RentSystem]: تم نقلك الي سحب سيارتك بنجاح ', source ,0,255,0,true ) end end ) addEvent( 'WMEToVehicle', true ) addEventHandler( 'WMEToVehicle', root, function() if not isElement(vehicle[source]) then outputChatBox("[RentSystem]: ليس هناك سيارة لنقلك لها", source, 255, 0, 0, true) else local x, y, z = getElementPosition(vehicle[source]) setElementPosition(source, x, y, z) warpPlayerIntoVehicle(source, vehicle[source]) outputChatBox('[RentSystem]: تم نقلك الي سيارتك بنجاح ', source ,0,255,0,true ) end end ) addEventHandler("onPlayerQuit",root, function () if vehicle[source] and isElement(vehicle[source]) then destroyElement(vehicle[source]) end end ) addEvent("StartRandomColor", true) addEventHandler('StartRandomColor', root,function( ) local vehicle = getPedOccupiedVehicle(source) Timer = setTimer(function( ) setVehicleColor(vehicle, math.random(0,255), math.random(0,255), math.random(0,255) ) end, 100,0) outputChatBox('[RentSystem]: لقد تم تشغيل الأوان العشوائية بنجاح ', source) end) addEvent("StopRandomColor", true) addEventHandler('StopRandomColor',root, function () if isTimer( Timer) then return killTimer(Timer) end end ) --server Object = { } addEvent('Create', true) addEventHandler('Create',root, function ( ) outputChatBox('[RentSystem]: لقد تم اظهار السهم بنجاح ', source ,0 , 255, 0 , true ) local Interior , Dimension , xPosition, yPosition, zPosition = getElementInterior( source ) , getElementDimension( source) , getElementPosition( source ) Object[source] = createObject(1318,xPosition, yPosition + 3, zPosition ) setElementInterior( Object[source] , Interior ) setElementDimension( Object[source] , Dimension ) addEvent('Delete', true) addEventHandler('Delete',root, function ( ) if ( isElement( Object[source] ) ) then outputChatBox("[RentSystem]: تم اخفاء السهم بنجاح", source, 255, 0, 0, true) destroyElement( Object[source] ) end end ) end ) addEvent('VehicleDamageProof',true) addEventHandler('VehicleDamageProof',root,function () local vehicle = getPedOccupiedVehicle ( source ) if vehicle then isProof = isVehicleDamageProof(vehicle) setVehicleDamageProof(vehicle, not isProof) outputChatBox(isProof and "تم حماية السياره من الانفجار" or "تم فك الحمايه") end end) addEvent('nitro', true) addEventHandler('nitro',root, function ( ) local Veh = getPedOccupiedVehicle ( source ) addVehicleUpgrade(Veh,1010) end ) addEvent("StopNitro", true) addEventHandler('StopNitro',root, function () local Veh = getPedOccupiedVehicle ( source ) if not addVehicleUpgrade(Veh,1010) then return end removeVehicleUpgrade(Veh,1010) end ) --Server addEvent('FixCar', true) addEventHandler( 'FixCar', root, function ( ) if isPedInVehicle ( source ) then local Veh = getPedOccupiedVehicle ( source ) fixVehicle(Veh) outputChatBox('[RentSystem]: تم اصلاح سيارتك بنجاح ', source ,0,255,0,true ) else outputChatBox('[RentSystem]: لايوجد سيارة لاصلاحها ', source ,0,255,0,true ) end end )
×
×
  • Create New...