Jump to content

Jack_Miller

Members
  • Posts

    17
  • Joined

  • Last visited

Everything posted by Jack_Miller

  1. To do List: -start your server - type /register NAME PASSWORD eg: /register jack_miller lolapassword -- or register in console without the / - shut down your server - go in: MTA\server\mods\deathmatch - open acl.xml - find the admin category - add under: - (just the same just with your (registred) name) - start your server - /login NAME PASSWORD - /debugscript 3 - be happy
  2. You mean with an eventHandler?
  3. Hi Guys. I don't use ACL on my Server, so everyone can start, restart and stop resources...that sucks.. Yesterday i finished a scipt exactly like the normal /start, /stop and /restart. removeCommandHandler don't work on it. So where is the normal /start function in? I searched in the standard resources but didn't find it...
  4. Hi, i have here another problem i dosn't understand... just look at this: player = lp if getPedWeapon ( lp ) == 43 or getElementData ( lp, "isInHighNoon" ) or isPedDead ( lp ) then Info: yes...here are no ends or a: function() It's just because debugscript say's me following: attempt to call global 'isPedDead' (a nil value) what i have to do that isPedDead works?^^
  5. BinSlayer1, IT WORKS, HOLY F****** SHIT this fuck resource crashed my script....ohr yeah, nice... thanks to all who (tried) to help me
  6. Why nobody can helps me with such a simple script? @BinSlayer1 you tested it right? but now there are other locations where the player will be teleport to...the coordinates are random choosed...what is the problem?^^ there must be a solution... Again: - Markers will be created (script will be loaded...) - Player will be teleported - Nope - gives a Chat output - Nope - debugscript show a error or warning or shice like that? - Nope... So the fail must be inside the function, right? Its not a scripting failure, because debugscript accept it... Maybe we should think about the: if (getElementType(player) == "player") and (isPedInVehicle(player) == false) then
  7. Jap, the end is on line 36 the script itself will be loaded....i see the marker's ingame... Äähm...here, i add a chat output...but no debugscript error or a output, just nothing... function turmrauf ( player ) if (getElementType(player) == "player") and (isPedInVehicle(player) == false) then setElementPosition ( player, 1140.5888671875, 780.9228515625, 30.747257232666 ) outputChatBox ( "lolol", player, 125, 0, 0 ) end end addEventHandler ( "onMarkerHit", MillerTurmRauf, turmrauf ) function turmrunter ( player ) if (getElementType(player) == "player") and (isPedInVehicle(player) == false) then setElementPosition ( player, 195.0408935547, 765.76519775391, 8.4228067398071 ) outputChatBox ( "upupup", player, 125, 0, 0 ) end end addEventHandler ( "onMarkerHit", MillerTurmRunter, turmrunter )
  8. The Debugger shows no error or something...just nothing... heres the code of the lua again: MillerTurmRauf = createMarker ( -1145.0408935547, 714.76519775391, 3.4228067398071, "cylinder", 1, 255, 0, 0 ) MillerTurmRunter = createMarker ( -1137.5888671875, 713.9228515625, 46.747257232666, "cylinder", 1, 255, 0, 0 ) --[[function turmrauf (player, dim) if getElementType ( player ) == "player" then setElementInterior ( player, 1, -1138.5888671875, 713.9228515625, 46.747257232666 ) end end addEventHandler ("onMarkerHit", MillerTurmRauf, turmrauf) function turmrunter (player, dim) if getElementType ( player ) == "player" then setElementInterior ( player, 1, -1146.0408935547, 714.76519775391, 3.0 ) end end addEventHandler ("onMarkerHit", MillerTurmRunter, turmrunter) function turmrauf ( player, dim ) if dim == true and getPedOccupiedVehicle ( player ) == false then setElementPosition ( player, 894.5888671875, 71.9228515625, 25.747257232666 ) end end addEventHandler ( "onMarkerHit", MillerTurmRauf, turmrauf ) function turmrunter ( player, dim ) if dim == true and getPedOccupiedVehicle ( player ) == false then setElementPosition ( player, 516.0408935547, 780.76519775391, 15.4228067398071 ) end end addEventHandler ( "onMarkerHit", MillerTurmRunter, turmrunter )]] function turmrauf ( player ) if (getElementType(player) == "player") and (isPedInVehicle(player) == false) then setElementPosition ( player, 1140.5888671875, 780.9228515625, 30.747257232666 ) end end addEventHandler ( "onMarkerHit", MillerTurmRauf, turmrauf ) function turmrunter ( player ) if (getElementType(player) == "player") and (isPedInVehicle(player) == false) then setElementPosition ( player, 195.0408935547, 765.76519775391, 8.4228067398071 ) end end addEventHandler ( "onMarkerHit", MillerTurmRunter, turmrunter ) Remember: the first function won't be readed....its just my other version of the script...but it don't work, too... heres the meta.xml: <meta> <info type="map" version="1.0.0" /> <map src="Miller_Island.map" dimension="0" /> <settings> <setting name="#minplayers" value="[ 0 ]" /> <setting name="#maxplayers" value="[ 128 ]" /> <setting name="#gravity" value="[ 0.008000 ]" /> <setting name="#weather" value="[ 0 ]" /> <setting name="#time" value="10:0" /> <setting name="#locked_time" value="[ false ]" /> <setting name="#waveheight" value="[ 0 ]" /> <setting name="#gamespeed" value="[ 1 ]" /> </settings> <script src="MillerTore.lua" type="server" /> <script src="TurmPort.lua" /> </meta>
  9. its on my local server...there are no login or a account system...thats the problem^^
  10. Here... When i try to exec it ingame...it dosn't work...acl shit...im in the acl groups, but it dont accept me ingame... <group name="Admin"> <acl name="Moderator" /> <acl name="SuperModerator" /> <acl name="Admin" /> <acl name="RPC" /> <object name="resource.admin" /> <object name="resource.webadmin" /> <object name="user.[GGR]Jack_Miller" /> </group> <group name="Console"> <acl name="Moderator" /> <acl name="SuperModerator" /> <acl name="Admin" /> <acl name="RPC" /> <object name="user.Console" /> <object name="user.[GGR]Jack_Miller" />
  11. It don't work: when i type debugscript 3 in the console: Incorrect client type for this command Info; all tested on ma local server
  12. but it dosn't work anyway
  13. the createMarker is in my codeline above...in my first post... and the meta.xml... heres my line to the script_:
  14. It dont work anyway function turmrauf ( player ) if (getElementType(player) == "player") and (isPedInVehicle(player) == false) then setElementPosition ( player, 1140.5888671875, 780.9228515625, 30.747257232666 ) end end addEventHandler ( "onMarkerHit", MillerTurmRauf, turmrauf ) function turmrunter ( player ) if (getElementType(player) == "player") and (isPedInVehicle(player) == false) then setElementPosition ( player, 195.0408935547, 765.76519775391, 8.4228067398071 ) end end addEventHandler ( "onMarkerHit", MillerTurmRunter, turmrunter ) the positions are random now...
  15. But it don't work...i've changed it but...
  16. server side.... 2. question, do i need the (isPedInVehicle(player) == false) ? im right with that if im forget this it will be teleport vehicles, too? or wont it work then cpmpletly?
  17. Hi guys, im new in scripting and i just want to create a workin PLayer Teleport in the same Interior... But it don't Teleport the Client... Heres my Script, i've tested out many versions... MillerTurmRauf = createMarker ( -1145.0408935547, 714.76519775391, 3.4228067398071, "cylinder", 1, 255, 0, 0 ) MillerTurmRunter = createMarker ( -1137.5888671875, 713.9228515625, 46.747257232666, "cylinder", 1, 255, 0, 0 ) function turmrauf ( player ) if getPedOccupiedVehicle ( player ) == false then setElementPosition ( player, -1137.5888671875, 713.9228515625, 46.747257232666 ) end end addEventHandler ( "onMarkerHit", MillerTurmRauf, turmrauf ) function turmrunter ( player ) if getPedOccupiedVehicle ( player ) == false then setElementPosition ( player, -1145.0408935547, 714.76519775391, 3.4228067398071 ) end end addEventHandler ( "onMarkerHit", MillerTurmRunter, turmrunter ) I hope you can help me with this Problem^^
×
×
  • Create New...