Jump to content

Dimos7

Members
  • Posts

    1,546
  • Joined

  • Last visited

Everything posted by Dimos7

  1. Dimos7

    enter nicki [help

    No try yourself make it if you can't then hire someone do it for you
  2. getPlayerIP getPlayerSerial
  3. You can check player ip and serial and see if he has account then make sure that player has 3 accounts i will suggest you use a database for that
  4. Dimos7

    enter nicki [help

    getAccountName setPlayerName onPlayerLogin onPlayerChangeNick
  5. getElementsByType getElementPosition getPedBonePosition getScreenFromWorldPosition isLineOfSightClear getPlayerName getPlayerNametagColor dxDrawText
  6. Dimos7

    Help

    For that exist the event i give you
  7. Dimos7

    Help

    Not working because the event you using is for reguler weapons not costum
  8. Dimos7

    Help

    test = createWeapon ( 'deagle' , Vector3 ( getElementPosition ( localPlayer ) ) )) addEventHandler ( 'onClientWeaponFire' , root , function (hitElement, hitX, hitY, hitZ, x, y, z) setPedAimTarget ( localPlayer , hitX, hitY, hitZ, x, y, z, ) fireWeapon ( test ) end )
  9. marker = {} marker[1] = createMarker(1075.7607421875, -1287.2705078125, 79.064178466797, "corona", 3.5, 255, 255, 0, 255) setElementInterior(marker[1], 1) setElementDimension (marker[1], 36 ) function TelePort(Element, hitElement) setElementInterior(Element, 0) setElementDimension (Element, 0) setElementDimension(hitElement, 0) setTimer(setElementInterior, 10, 1, Element, 0) setTimer(setElementInterior, 10, 1, hitElement, 0) setElementPosition(Element, 1230.5107421875, 302.2041015625, 19.619340896606, true) setElementFrozen(Element, true) setTimer(setElementFrozen, 1000, 1,Element, false) end addEventHandler("onMarkerHit",marker[1], function (player) if getElementType(player)=="player" then local vehicle = getPedOccupiedVehicle(player) if vehicle then local pTeam = getPlayerTeam(player) if pTeam and getTeamName(pTeam) == 'Gendarmerie Royale' then TelePort(vehicle, player) return end outputChatBox ('You are not in a team',player, 255, 0, 0 ) else outputChatBox ('You do not have a Vehicle!',player, 255, 0, 0 ) end end end) hmm i see dimension of player not be in code so i dd it
  10. marker = {} marker[1] = createMarker(1217.0947265625, 357.6181640625, 19.413511276245, "corona", 3.5, 255, 255, 0, 255) function TelePort(Element, hitElement) setElementInterior(Element, 1) setElementDimension (Element, 36 ) setTimer(setElementInterior, 1000, 1, Element, 1) setTimer(setElementInterior, 1000, 1, hitElement, 1) setElementPosition(Element, 1099.146484375, -1300.3564453125, 79.0625, true) setElementFrozen(Element, true) setTimer(setElementFrozen, 1000, 1,Element, false) end addEventHandler("onMarkerHit",marker[1], function (player) if getElementType(player)=="player" then local vehicle = getPedOccupiedVehicle(player) if vehicle then local pTeam = getPlayerTeam(player) if pTeam and getTeamName(pTeam) == 'Gendarmerie Royale' then TelePort(vehicle, player) return end outputChatBox ('You are not in a team',player, 255, 0, 0 ) else outputChatBox ('You do not have a Vehicle!',player, 255, 0, 0 ) end end end) Try this
  11. i guess you can make marker at those position with red colors and make the visible when its dark
  12. Use /debugscipt 3 for see errors or warnings in code
  13. marker = createMarker(1220.44140625, 354.8740234375, 18.40625, "corona", 1.5, 255, 255, 0, 255) function teleport(player) if isElement(player) and getElementType(player)=="player" then local vehicle=getPedOccupiedVehicle(player) if source == marker then if getTeamName(getPlayerTeam(player)) == "police" then fadeCamera(player, false) setTimer( fadeCamera, 1000, 1, player, true) setTimer(setElementInterior, 1000, 1, vehicle, 0) setTimer(setElementPosition, 1000, 1, vehicle, 1277.8544921875, 332.865234375, 19.40625, true) setElementFrozen(vehicle, true) setTimer(setElementFrozen, 1000, 1, vehicle, false) end end end end addEventHandler("onMarkerHit", root , teleport) Make sure the name of team is police with lower not p upper
  14. createMarker triggerClientEvent dxDrawText
  15. Note: Client side IsPedInVehicle can be unreliable. Solution is to use: not getPedOccupiedVehicle(ped)
  16. Dimos7

    Ped Health

    dxDrawRectangle DXDrawBorderedRectangle
  17. setTimer setVehicleEngineState getVehicleEngineState isPedInVehicle getPedOccupiedVehicle getPedOccupiedVehicleSeat bindKey
  18. MarkerCAS = createMarker ( 1228.583984375, 289.650390625, 19.5546875, "arrow", 1.5, 255, 255, 255, 255 ) MarkerSAID = createMarker ( 1664.4736328125, 3561.16015625, 9994.0859375, "arrow", 1.5, 255, 255, 255, 255 ) setElementInterior(MarkerCAS, 0) setElementInterior(MarkerSAID, 101) setElementDimension (thePlayer, 101 ) function IntSTAFF(thePlayer) if source == MarkerCAS then local pTeam = getPlayerTeam(thePlayer) if getTeamName(pTeam) == "Your team name here" then fadeCamera(thePlayer, false) setTimer( fadeCamera, 1000, 1, thePlayer, true) setTimer(setElementInterior, 1000, 1, thePlayer, 101) setTimer(setElementPosition, 1000, 1, thePlayer, 1658.34375, 3561.16015625, 9994.0859375, true) setTimer(setPedRotation, 1000, 1, thePlayer, 0) end end end addEventHandler("onMarkerHit", getRootElement(), IntSTAFF) function SaidSTAFF(thePlayer) if source == MarkerSAID then local pTeam = getPlayerTeam(thePlayer) if getTeamName(pTeam) == "Your team name here" then fadeCamera(thePlayer, false) setTimer( fadeCamera, 1000, 1, thePlayer, true) setTimer(setElementInterior, 1000, 1, thePlayer, 0) setTimer(setElementPosition, 1000, 1, thePlayer, 1225.5654296875, 313.3662109375, 19.7578125, true) setTimer(setPedRotation, 1000, 1, thePlayer, 0) end end end addEventHandler("onMarkerHit", getRootElement(), saidTAFF )
  19. local marker1 = createMarker(2219.662109375, -1155.7900390625, 1026.6960449219, "arrow", 2, 90,255,255,255) function teleport1(hitPlayer) if isElement(hitPlayer) and getElementType (hitPlayer) == "player" then setElementInterior (hitPlayer , 10, -978.90002441406,1053,1344.3000488281 ) setElementDimension (hitPlayer, 40 ) end end addEventHandler("onMarkerHit", marker1, teleport1) Source of that event is marker try this
  20. I think you need be on server side for that to work
  21. setTimer ( function ( ) local time = getRealTime () local hours = time.hour local minutes = time.minute local seconds = time.second local D ={1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23} for _, hour in ipairs(D) do if hours == hour and minutes == 0 and seconds == 0 then outputChatBox("", root, 255, 255, 255, true) end end end, 1000, 0 )
×
×
  • Create New...