Jump to content

Jaysds1

Members
  • Posts

    4,961
  • Joined

  • Last visited

Everything posted by Jaysds1

  1. , that must have been hard nice
  2. Jaysds1

    Very hign ping

    Download this: http://www.marvell.com/support/download ... esults.do# and check if your Graphic Driver is up to date: http://www.nvidia.com/Download/Scan.aspx?lang=en-us
  3. Jaysds1

    Very hign ping

    Download and run this MTADiag then post the generated PasteBin URL.
  4. Jaysds1

    [Help] scripts codes

    oh, well, remember, any user that's viewing this topic now knows how to decompile Lua scripts now
  5. Jaysds1

    [Help] scripts codes

    well, if the script could be decompiled, what's the point of compiling it?
  6. Jaysds1

    [Help] scripts codes

    why would you even tell him that?
  7. I know, but i was saying that he could even store it in a file.
  8. Do you have Team Viewer? and try putting the folder name as: '[sounds]' .
  9. well, anything can be used, "MySQL,SQLite,XML" probably even the file functions: fileClose fileCreate fileDelete fileExists fileFlush fileGetPos fileGetSize fileIsEOF fileOpen fileRead fileRename fileSetPos fileWrite
  10. try this: function checkData() propertyData = {} for i, guiElement in pairs ( buildingGUI ) do if i == "field" then for _, field in ipairs ( guiElement ) do propertyData["entMarkerX"] = guiGetText ( buildingGUI["field"].entMarkerX ) propertyData["entMarkerY"] = guiGetText ( buildingGUI["field"].entMarkerY ) propertyData["entMarkerZ"] = guiGetText ( buildingGUI["field"].entMarkerZ ) propertyData["entMarkerInt"] = guiGetText ( buildingGUI["field"].entMarkerInt ) propertyData["entMarkerDim"] = guiGetText ( buildingGUI["field"].entMarkerDim ) propertyData["exitMarkerX"] = guiGetText ( buildingGUI["field"].exitMarkerX ) propertyData["exitMarkerY"] = guiGetText ( buildingGUI["field"].exitMarkerY ) propertyData["exitMarkerZ"] = guiGetText ( buildingGUI["field"].exitMarkerZ ) propertyData["exitMarkerInt"] = guiGetText ( buildingGUI["field"].exitMarkerInt ) propertyData["exitMarkerDim"] = guiGetText ( buildingGUI["field"].exitMarkerDim ) propertyData["entTeleX"] = guiGetText ( buildingGUI["field"].entTeleX ) propertyData["entTeleY"] = guiGetText ( buildingGUI["field"].entTeleY ) propertyData["entTeleZ"] = guiGetText ( buildingGUI["field"].entTeleZ ) propertyData["entTeleRot"] = guiGetText ( buildingGUI["field"].entTeleRot ) propertyData["entTeleInt"] = guiGetText ( buildingGUI["field"].entTeleInt ) propertyData["entTeleDim"] = guiGetText ( buildingGUI["field"].entTeleDim ) propertyData["exitTeleX"] = guiGetText ( buildingGUI["field"].exitTeleX ) propertyData["exitTeleY"] = guiGetText ( buildingGUI["field"].exitTeleY ) propertyData["exitTeleZ"] = guiGetText ( buildingGUI["field"].exitTeleZ ) propertyData["exitTeleRot"] = guiGetText ( buildingGUI["field"].exitTeleRot ) propertyData["exitTeleInt"] = guiGetText ( buildingGUI["field"].exitTeleInt ) propertyData["exitTeleDim"] = guiGetText ( buildingGUI["field"].exitTeleDim ) propertyData["drivewayX"] = guiGetText ( buildingGUI["field"].drivewayX ) propertyData["drivewayY"] = guiGetText ( buildingGUI["field"].drivewayY ) propertyData["drivewayZ"] = guiGetText ( buildingGUI["field"].drivewayZ ) propertyData["drivewayRot"] = guiGetText ( buildingGUI["field"].drivewayRot ) propertyData["cacheX"] = guiGetText ( buildingGUI["field"].cacheX ) propertyData["cacheY"] = guiGetText ( buildingGUI["field"].cacheY ) propertyData["cacheZ"] = guiGetText ( buildingGUI["field"].cacheZ ) propertyData["cacheInt"] = guiGetText ( buildingGUI["field"].cacheInt ) propertyData["cacheDim"] = guiGetText ( buildingGUI["field"].cacheDim ) propertyData["propertyName"] = guiGetText ( buildingGUI["field"].propertyName ) propertyData["propertyPrice"] = guiGetText ( buildingGUI["field"].propertyPrice ) if guiGetText ( field ) == "" then ready = false break; else ready = true end end end end if ready == true then action_Create_Property ( propertyData ) else call ( getResourceFromName ( "prompt" ), "outputPromptBoxClient", "ERROR: There appears to be required information missing from one or more fields, please make sure all information is given", getLocalPlayer() ) end end function action_Create_Property ( propertyDataTable ) local propertyDatabase = xmlLoadFile ( "data/client/properties.xml" ) local propertyMasterNode = xmlCreateChild ( propertyDatabase, "property" ) xmlNodeSetAttribute ( propertyMasterNode, "name", propertyDataTable["propertyName"] ) xmlNodeSetAttribute ( propertyMasterNode, "price", propertyDataTable["propertyPrice"] ) xmlNodeSetAttribute ( propertyMasterNode, "owner", "" ) local propertyLocationMasterNode = xmlCreateChild ( propertyMasterNode, "location" ) entMarkerMasterNode = xmlCreateChild ( propertyLocationMasterNode, "entrance_marker" ) exitMarkerMasterNode = xmlCreateChild ( propertyLocationMasterNode, "exit_marker" ) entTeleMasterNode = xmlCreateChild ( propertyLocationMasterNode, "entrance_teleport" ) exitTeleMasterNode = xmlCreateChild ( propertyLocationMasterNode, "exit_teleport" ) drivewayMasterNode = xmlCreateChild ( propertyLocationMasterNode, "driveway" ) cacheMasterNode = xmlCreateChild ( propertyLocationMasterNode, "cache" ) xmlNodeSetAttribute ( entMarkerMasterNode, "x", propertyDataTable["entMarkerX"] ) xmlNodeSetAttribute ( entMarkerMasterNode, "y", propertyDataTable["entMarkerY"] ) xmlNodeSetAttribute ( entMarkerMasterNode, "z", propertyDataTable["entMarkerZ"] ) xmlNodeSetAttribute ( entMarkerMasterNode, "int", propertyDataTable["entMarkerInt"] ) xmlNodeSetAttribute ( entMarkerMasterNode, "dim", propertyDataTable["entMarkerDim"] ) xmlNodeSetAttribute ( exitMarkerMasterNode, "x", propertyDataTable["exitMarkerX"] ) xmlNodeSetAttribute ( exitMarkerMasterNode, "y", propertyDataTable["exitMarkerY"] ) xmlNodeSetAttribute ( exitMarkerMasterNode, "z", propertyDataTable["exitMarkerZ"] ) xmlNodeSetAttribute ( exitMarkerMasterNode, "int", propertyDataTable["exitMarkerInt"] ) xmlNodeSetAttribute ( exitMarkerMasterNode, "dim", propertyDataTable["exitMarkerDim"] ) xmlNodeSetAttribute ( entTeleMasterNode, "x", propertyDataTable["entTeleX"] ) xmlNodeSetAttribute ( entTeleMasterNode, "y", propertyDataTable["entTeleY"] ) xmlNodeSetAttribute ( entTeleMasterNode, "z", propertyDataTable["entTeleZ"] ) xmlNodeSetAttribute ( entTeleMasterNode, "rot", propertyDataTable["entTeleRot"] ) xmlNodeSetAttribute ( entTeleMasterNode, "int", propertyDataTable["entTeleInt"] ) xmlNodeSetAttribute ( entTeleMasterNode, "dim", propertyDataTable["entTeleDim"] ) xmlNodeSetAttribute ( exitTeleMasterNode, "x", propertyDataTable["exitTeleX"] ) xmlNodeSetAttribute ( exitTeleMasterNode, "y", propertyDataTable["exitTeleY"] ) xmlNodeSetAttribute ( exitTeleMasterNode, "z", propertyDataTable["exitTeleZ"] ) xmlNodeSetAttribute ( exitTeleMasterNode, "rot", propertyDataTable["exitTeleRot"] ) xmlNodeSetAttribute ( exitTeleMasterNode, "int", propertyDataTable["exitTeleInt"] ) xmlNodeSetAttribute ( exitTeleMasterNode, "dim", propertyDataTable["exitTeleDim"] ) xmlNodeSetAttribute ( drivewayMasterNode, "x", propertyDataTable["drivewayX"] ) xmlNodeSetAttribute ( drivewayMasterNode, "y", propertyDataTable["drivewayY"] ) xmlNodeSetAttribute ( drivewayMasterNode, "z", propertyDataTable["drivewayZ"] ) xmlNodeSetAttribute ( drivewayMasterNode, "rot", propertyDataTable["drivewayRot"] ) xmlNodeSetAttribute ( cacheMasterNode, "x", propertyDataTable["cacheX"] ) xmlNodeSetAttribute ( cacheMasterNode, "y", propertyDataTable["cacheY"] ) xmlNodeSetAttribute ( cacheMasterNode, "z", propertyDataTable["cacheZ"] ) xmlNodeSetAttribute ( cacheMasterNode, "int", propertyDataTable["cacheInt"] ) xmlNodeSetAttribute ( cacheMasterNode, "dim", propertyDataTable["cacheDim"] ) xmlSaveFile ( propertyDatabase ) loadPropertiesFromFile() for _, field in ipairs ( buildingGUI["field"] ) do guiSetText ( field, "" ) end call ( getResourceFromName ( "prompt" ), "outputPromptBoxClient", "Success: Property has been successfully added to the server", getLocalPlayer() ) end
  11. , I love these Pics Saved them for desktop
  12. Jaysds1

    Ped kill...

    same, but now i get it, sockz is right, if the localPlayer is attacking another which is a ped, he could cancel it.
  13. brother desmond pt 1brother desmond pt 1
  14. Here's the same thing in zip compress: http://wobzip.org/file/iQDPP
  15. Nice, even though I never watched Stargate, this basically shows the main idea of the Teleport Ring.
  16. The element data are stored on live elements, so if they are destroyed, meaning if the player leaves the server then the element data get's destroyed.
  17. Jaysds1

    Ped kill...

    or you could disable the player from hitting anyone if they have a knife.
  18. Or you could use the example on this page: https://wiki.multitheftauto.com/wiki/OnClientPedDamage
  19. You log is located here: 'server\mods\deathmatch\logs' now the log file we are looking for is called 'server.txt'.
×
×
  • Create New...