Jump to content

abdalbaset

Members
  • Posts

    170
  • Joined

  • Last visited

Everything posted by abdalbaset

  1. like that? local Exitdoor = createMarker ( 2349.1000976563, 2473.8999023438, 37.799999237061, "cylinder", 1.5, 150, 0, 0, 255 ) function Exitd ( player ) if ( source == Exitdoor ) then if ( getElementType ( player ) == "player" ) then fadeCamera ( player, false, 1, 0, 0, 0 ) setTimer ( fadeCamera, 1000, 1, player, true, 1 ) setTimer ( setElementPosition, 1000, 1, player, 0, 2297.1000976563,2427.8999023438,9.8999996185303 ) end end end addEventHandler ( "onMarkerHit", getRootElement() ,Exitd ) local Doorentry = createMarker ( 2297.1000976563, 2427.8999023438, 9.8999996185303, "cylinder", 1.5, 255, 0, 0, 255 ) function Doore ( player ) if ( source == Doorentry ) then if ( getElementType ( player ) == "player" ) then fadeCamera ( player, false, 1, 0, 0, 0 ) setTimer ( fadeCamera, 1000, 1, player, true, 1 ) setTimer ( setElementPosition, 1000, 2, player, 0,2349.1000976563,2473.8999023438, 37.799999237061 ) end end end addEventHandler ( "onMarkerHit", getRootElement(), Doore ) i have mistack idk where but its not working
  2. i am trying to make marker moving me from place in Main world(intrior 0) to another marker that is in main world too
  3. its not working man now when i enter the marker its just make me back to the same marker its not going to the other one
  4. its moving me to this and i didnt want to go to intrior just move me to main world
  5. i cant enter my servr and wiriting ther [16:02:00] ERROR: Not processing resource 'freeroam' as it has duplicates on dif ferent paths: Path #1: "resources\[editor]\freeroam" Path #2: "resources\[gamemodes]\[freeroam]\freeroam" [16:02:00] ERROR: Problem with resource: play; Failed to link to freeroam [16:02:00] Resources: 223 loaded, 1 failed [16:02:01] Querying game-monitor.com master server... failed! (302: Moved tempor help me guys
  6. abdalbaset

    help me

    how i can make marker moving me from place to another but only in main world this script buged fix it plez local Exitdoor = createMarker( 2290.9851, 2473.5014, 38.6875, "cylinder", 1.5, 150, 0, 0, 255 ) function Exitd( player ) if (source == Exitdoor) then if getElementType(player) == "player" then fadeCamera ( player, false, 1, 0, 0, 0 ) setTimer ( fadeCamera, 1000, 1, player, true, 1 ) setTimer ( setElementPosition, 1000, 1, player, 2306.4257, 2456.0712, 10.8203 ) setTimer ( setElementInterior, 1000, 1, player, 0, 2306.4257, 2456.0712, 10.8203 ) end end end addEventHandler ("onMarkerHit", getRootElement() ,Exitd ) local Doorentry = createMarker(2306.4257, 2456.0712, 10.8203, "cylinder", 1.5, 255, 0, 0, 255 ) function Doore( player ) if (source == Doorentry) then if getElementType(player) == "player" then fadeCamera ( player, false, 1, 0, 0, 0 ) setTimer ( fadeCamera, 1000, 1, player, true, 1 ) setTimer(setElementPosition, 1000, 1, player, 2290.9851, 2473.5014, 38.6875) setTimer ( setElementInterior, 1000, 1, player, 0, 2290.9851, 2473.5014, 38.6875 ) end end end addEventHandler ("onMarkerHit", getRootElement(), Doore )
  7. can you give me new code
  8. its not working:( (ineed metal file and clent?)
  9. guys whene i respawen in hosptel i be in world i cant see anythink what the worong in my script addEventHandler("onResourceStart", resourceRoot, function() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) repeat until spawnPlayer ( player, 1186.4000244141, -1325.0999755859, 13.199999809265, 90, math.random(19,25) ) fadeCamera(player, true) setCameraTarget(player, player) setPlayerTeam (player, nil) end function spawnWasted(player) repeat until spawnPlayer ( player, -2655.02, 625.30, 14.45, 0, math.random(19,25)) repeat until spawnPlayer ( player, 1178, -1323.6999511719, 13.699999809265, 0, math.random(19,25) , 625.30, 14.45, 0, math.random(19,25)) fadeCamera(player, true) setCameraTarget(player, player) setPlayerTeam (player, nil) takePlayerMoney ( player, 150 ) end addEventHandler("onPlayerLogin", root, function() spawn(source) end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawnWasted, 1800, 1, source) end )
  10. why this script not working? object = createobject(980,1545.6999511719,-1627,15.199999809265) marker = creatmarker(980,1545.6999511719,-1627,15.199999809265,"cylinder",6,100,0,0,100) function gateo(player)--to name our function local data =getElementData (player,"job") if (data=="police")then moveObject(airportgate,500,980,545.6999511719,-1627,8) else outputchatbox("sory,you're not policeman you cant enter",player,255,0,0) end addEventhandler("onMarkhit",gateo) function gatec(player) moveObject(object,980,1545.6999511719,-1627,15.199999809265) end addeventhandler("onMarkLeave",root,gatec)
  11. guys idk alot of think about scripting but any one help me how i can make movng gate(i need moving gate script)
  12. what the worong now? markerpv_1 = createMarker( 1566.9652099609, -1610.640625, 12.3828125, "cylinder", 2, 0, 0, 255, 255 ) markerpv_2 = createMarker( 3112.8000488281, -703.59997558594, 10.5, "cylinder", 2, 0, 0, 255, 255 ) markerpv_3 = createMarker( 2256.3000488281, 2443.8999023438, 10.800000190735, "cylinder", 2, 0, 0, 255, 255 ) markerpv_4 = createMarker( -1599.8000488281, 651.79998779297, 7.1999998092651, "cylinder", 2, 0, 0, 255, 255 ) local vehicles = {} function spawnVehp(id) local x, y, z = getElementPosition(source) if isElement(vehicles[source]) then destroyElement(vehicles[source]) end vehicles[source] = createVehicle(id, x + 2, y, z) warpPedIntoVehicle(source, vehicles[source]) end addEvent("CreVehicePv",true) addEventHandler("CreVehicePv", root, spawnVehp) addEventHandler("onPlayerQuit", root, function() if isElement(vehicles[source]) then destroyElement(vehicles[source]) vehicles[source] = nil end end) function showGUIpv(hitPlayer) if hitPlayer and getElementType(hitPlayer) == "player" then if ( getPlayerTeam ( hitPlayer ) == getTeamFromName ( "police" ) ) then triggerClientEvent (hitPlayer,"showGUIpv",getRootElement(),hitPlayer) else warnText("vehicles for police only!",hitPlayer) end end end addEventHandler("onMarkerHit",markerpv,showGUIpv)
  13. MY script not working idk why markerpv = createMarker( 1566.9652099609, -1610.640625, 12.3828125, "cylinder", 2, 0, 0, 255, 255 ) markerpv = createMarker( 3112.8000488281, -703.59997558594, 10.5, "cylinder", 2, 0, 0, 255, 255 ) markerpv = createMarker( 2256.3000488281, 2443.8999023438, 10.800000190735, "cylinder", 2, 0, 0, 255, 255 ) markerpv = createMarker( -1599.8000488281, 651.79998779297, 7.1999998092651, "cylinder", 2, 0, 0, 255, 255 ) local vehicles = {} function spawnVehp(id) local x, y, z = getElementPosition(source) if isElement(vehicles[source]) then destroyElement(vehicles[source]) end vehicles[source] = createVehicle(id, x + 2, y, z) warpPedIntoVehicle(source, vehicles[source]) end addEvent("CreVehicePv",true) addEventHandler("CreVehicePv", root, spawnVehp) addEventHandler("onPlayerQuit", root, function() if isElement(vehicles[source]) then destroyElement(vehicles[source]) vehicles[source] = nil end end) function showGUIpv(hitPlayer) if hitPlayer and getElementType(hitPlayer) == "player" then if ( getPlayerTeam ( hitPlayer ) == getTeamFromName ( "police" ) ) then triggerClientEvent (hitPlayer,"showGUIpv",getRootElement(),hitPlayer) else warnText("vehicles for police only!",hitPlayer) end end end addEventHandler("onMarkerHit",markerpv,showGUIpv)
  14. abdalbaset

    MTA problem

    i dont know what i schold do
  15. i try it but wirirnig there(warning :not loding resource "myscript.lua" what i have to do?
  16. abdalbaset

    can you explane

    any one explan to me what i have to do with this code and where i have to put it (what file) marker = createMarker(x, y, z,"corona",2,0,255,0) addEventHandler("onClientMarkerHit",marker, function() local vh = getPedOccupiedVehicle ( source ) vehicles = { --[[YOUR ID'S HERE, SEPARATED BY A COMA (Ex: 1, 2, 3)]] } nm = tonumber ( math.random( #vehicles ) ) setElementModel ( vh, nm ) end) and sory if it was stupid question
  17. yah i mean spawner like car spawner
  18. i make server but i didnt know how to make spowner if video possble
×
×
  • Create New...