Jump to content

aim-killer

Members
  • Content Count

    36
  • Joined

  • Last visited

Community Reputation

0 Neutral

About aim-killer

  • Rank
    Rat

Details

  • Gang
    Mr.Lonely
  1. aim-killer

    help

    addCommandHandler
  2. well.. paintjobs aside what about the other upgradable parts getVehicleCompatibleUpgrades returns ?
  3. by putting getVehicleCompatibleUpgrades into a variable we get a table.. i want to know how to know if the returned table contains a specific part for example.. paintjob... if paintjob is available as upgrade then the function i want to imply ... i dont know much about tables so i would like to know more..
  4. try this.. it works but spawns on air and kills me but i think its what u wanted intoMarker = createMarker ( 1153, -1770, 18, "arrow", 1.5, 250, 0, 0, 250 ) function intoTeleport (markerHit, matchingDimension) if (markerHit == intoMarker) then hitplayer = source setElementInterior ( hitplayer, 900, 26, 42, 121 ) end end addEventHandler ( "onPlayerMarkerHit", getRootElement(), intoTeleport ) outMarker = createMarker ( 24, 42, 122.5, "arrow", 1.5, 250, 0, 0, 255 ) setElementInterior(outMarker,900) function outTeleport (markerHit, matchingDimension) if markerHit == outMark
  5. interior: The interior you want to set the element to. Valid values are 0 to 255. https://wiki.multitheftauto.com/wiki/SetElementInterior
  6. there is no end i missed and its working by the way there is not interior 900 i think you wanted to change the dimension to 900 not interior on marker hit and can you post your current code ? and explain what you want ur script to happen
  7. Its better if you use "onPlayerMarkerHit" because its only triggered when a player hits a marker onPlayerMarkerHit -- triggered only when a player enters a marker markerHit -- the marker that got hit matchingDimension -- if its in the same dimension as the hit player source -- is the player who got hit by the way when changing element interior it dose not change the dimension, it stays the same intoMarker = createMarker ( 1153, -1770, 18, "arrow", 1.5, 250, 0, 0, 250 ) function intoTeleport (markerHit, matchingDimension) if (markerHit == intoMarker) then hitplayer = source
  8. your if statement is wrong .. i think you are trying to make it like this : if (hitElement == "player") then -- bla bla bla end and by the way changing the dimension wont get the player out
  9. -.- ... look at the first picture below : Opened file: C:\program files\MTA San Andreas 1.3\server\mods\deathmatch\resources\poo\script.lua .. notice something? poo ! and look at the second pic dir : ...mods\deathmatch\resources\myserver.. two different folders i guess.. or i am wrong
  10. you need to create an event that takes money on serverside which has to be triggered when you click the button addEvent -- create event addEventHandler -- addEventHandler for the event created triggerServerEvent -- when button clicked trigger server event takePlayerMoney -- take money (serverside funtion) you can see exampled on wiki
  11. addEvent("StartJobTrigger",true) addEventHandler("StartJobTrigger",root,startJob) this after the function and then triggerEvent bool triggerEvent ( string eventName, element baseElement, [ var argument1, ... ] )
  12. aim-killer

    tELEPORT

    or u can use onPlayerMarkerHit which is triggered when a player hits a marker try this : -- server side teleportmaker = createMarker(2034.5029296875, 1545.4658203125, 9.5, 'cylinder', 2.0, 25, 1, 1, 90) function teleport( markerHit, matchingDimension ) if markerHit == teleportmaker and matchingDimension then -- if the marker hit by player is teleportmarker and same dimension player = source playername = getPlayerName(player) outputChatBox( playername.." has teleported", getRootElement(), 255, 255, 0 ) setElementPosition ( player, 2495.4013671875, -1681
  13. onClientMarkerHit is triggered when a player enters a marker not a vehicle. onClientMarkerHit player hitPlayer, bool matchingDimension you tried to get ElementModel using hitElement which is not a vehicle..and no need of (getElementType(hitElement) == "vehicle") because isPedinVehicle will be true only if the player is in a vehicle... i think it will work now .. function startJob() local id = getElementModel(source) if (id == 403) or (id == 515) or (id == 456) then local x, y, z = unpackMarkers() jobMarker = createMarker(x, y, z, "cylinder", 4, 255, 255, 0, 255) jobBlip = creat
×
×
  • Create New...