Jump to content

3NAD

Members
  • Posts

    1,992
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by 3NAD

  1. Web FTP تروح الـ و مسار mods/deathmatch/resource zip تحط المودات بـ شرط ان يكون مجلد أو meta.xml و داخله مباشرة تلقى الـ و قد يحتاج إلى رستارت السيرفر و بعدين تروح الأدمنية تشغله
  2. ماجاتني من هذا الإميل أي رسالة تأكد انه بريد مو اضافة مسن -_-" [email protected]
  3. setElementInterior (wepMarker, 1) wepMarker = ??
  4. setElementInterior Event "onClientMarkerHit" guiSetVisible
  5. Create another Marker, With Another Event And Function.
  6. myImage = guiCreateStaticImage( 50,50,100,100, "AR.png", false,Window ) Image = true addEventHandler ( "onClientGUIClick", root, function ( ) if source == Button then if Image then guiStaticImageLoadImage ( myImage, "EN.png" ) Image = false else guiStaticImageLoadImage ( myImage, "AR.png" ) Image = true end end end )
  7. تستخدم guiSetVisible اضف ذا بـ سطر 4 guiSetVisible ( JobsWin, true )
  8. vehicleHydra = createVehicle ( 520, -1409.5, 496.0, 11.9, 0, 0, 358.99487304688 ) vehicleHydra2 = createVehicle ( 520, -1419.5, 496.0, 11.9, 0, 0, 358.99487304688 ) deckMarker1 = createMarker ( -1410.3000488281, 506.79998779297, 10, "cylinder", 4, 255, 0, 0, 50 ) deck1 = createObject ( 3114, -1414.4000244141, 505, 9.65, 0, 0, 0.2445068359375 ) deck2 = createObject ( 3114, -1414.4000244141, 505, 8.5, 0, 0, 0.2445068359375 ) setElementAlpha ( deck2, 0 ) attachElements ( deckMarker1, deck1, 5, 0, 0 ) canMove = false addEventHandler ( "onMarkerHit", deckMarker1, function ( hitElement ) if ( getElementType( hitElement ) == "vehicle" ) then attachElements ( hitElement, deck1, 5, 0, 2.37 ) end end , false ) addCommandHandler ( "dck", function ( thePlayer ) if not canMove then moveObject ( deck1, 5000, -1414.4000244141, 520.90002441406, 9.7 ) moveObject ( deck2, 5000, -1414.4000244141, 520.90002441406, 9 ) canMove = true else moveObject ( deck1, 6000, -1414.4000244141, 505, 9.7 ) moveObject ( deck2, 5000, -1414.4000244141, 520.90002441406, 9 ) canMove = false end end ) addCommandHandler ( "detach", function ( thePlayer ) local pVehicle = getPedOccupiedVehicle ( thePlayer ) detachElements ( pVehicle, deck1 ) end )
  9. 3NAD

    Question - Maths

    Did you mean, Like this. label = guiCreateLabel ( 0.855, 0.235, 0.1, 0.1, '0 %', true ) variable = 59 setTimer ( function ( ) variable = variable + 1 guiSetText ( label, variable ..' %' ) if ( variable >= 100 ) then guiLabelSetColor ( label, 0, 255, 255 ) variable = 59 elseif ( variable >= 90 ) then guiLabelSetColor ( label, 0, 0, 255 ) elseif ( variable >= 80 ) then guiLabelSetColor ( label, 255, 255, 0 ) elseif ( variable >= 70 ) then guiLabelSetColor ( label, 255, 0, 0 ) elseif ( variable >= 60 ) then guiLabelSetColor ( label, 0, 255, 0 ) end end , 500, 0 )
  10. 3NAD

    Question - Maths

    Try it and tell me the Results. label = guiCreateLabel ( 0.855, 0.235, 0.1, 0.1, '0 %', true ) variable = 60 setTimer ( function ( ) variable = variable + 1 if variable > 60 then guiLabelSetColor ( label, 0, 255, 0 ) elseif variable > 70 then guiLabelSetColor ( label, 255, 0, 0 ) elseif variable > 80 then guiLabelSetColor ( label, 255, 255, 0 ) elseif variable > 90 then guiLabelSetColor ( label, 0, 0, 255 ) elseif variable > 100 then guiLabelSetColor ( label, 0, 255, 255 ) variable = 60 end end , 50, 0 )
  11. Try it and tell me the results. vehicles = {} function spawnVeh ( id ) if tonumber ( id ) then if isElement ( vehicles[source] ) then removeEventHandler ( "onVehicleStartEnter", vehicles[source], vehicleMilitary ) destroyElement ( vehicles[source] ) end local x, y, z = getElementPosition(source) vehicles[source] = createVehicle ( id, x, y, z ) warpPedIntoVehicle ( source, vehicles[source] ) setVehicleColor ( vehicles[source], 0, 255, 0 ) addEventHandler ( "onVehicleStartEnter", vehicles[source], vehicleMilitary ) else outputChatBox ( "* Error !!", source, 255, 0, 0, true ) end end addEvent ( "CreVehice_group_military", true ) addEventHandler ( "CreVehice_group_military", root, spawnVeh ) function vehicleMilitary ( thePlayer ) if getPlayerTeam ( thePlayer ) ~= getTeamFromName ( "Military" ) then triggerClientEvent ( thePlayer, "message:addMessage", thePlayer, "You are not in the Military!", 255, 0, 0 ) cancelEvent ( ) end end
  12. 3NAD

    setTimer

    You must use getPedOccupiedVehicle
  13. country = exports.admin:getPlayerCountry guiSetText ( myLable, country ) او guiSetText ( myLable, exports.admin:getPlayerCountry )
  14. هذا مثال يعني ماتعرف تاخذ المهم منه ؟؟
  15. viewtopic.php?f=91&t=52626&p=512392&hilit=getPlayerCountry#p512392
  16. 3NAD

    Export, calling

    Try this. function changeAlpha ( _, alphaAmount ) if tonumber ( alphaAmount ) then guiSetAlpha ( RankingBoardDrawing, alphaAmount ) else outputChatBox ( "* Enter Correct Amount : /alpha [amount] ", 255, 0, 0, true ) end --setTimer ( delayedRankingBoardDrawing, 4000 ) end addCommandHandler ( "alpha", changeAlpha ) setTimer is Wrong !
  17. اضف ذا في سطر 7 guiSetVisible ( GUIEditor.staticimage[1], true )
  18. Do you have VPS "At London" for rent ? Ram : 2 GB i will Use it for MTA Servers. # Edited ^
  19. 1- تأكد انك حققت الشرط هذا if wep == 3 and theWL >= 1 then 2- صعب علي التعبير ولكن هو يوجه شخصية اللاعب مثلاً يناظر الشمال و كذا
×
×
  • Create New...