Jump to content

Jason_Gregory

Members
  • Posts

    184
  • Joined

  • Last visited

Everything posted by Jason_Gregory

  1. Nice one But no Screenshots ? //Nice Programmer Pic
  2. Lol this wont work dude youre not defining a Integer, groundz contains the whole GroundPosition and if you use the GroundPosition, the Icon is IN the Ground.
  3. local groundx, groundy, groundz getGroundPosition ( groundx, groundy, groundz+2 ) createMarker ( x, y, groundz , "cylinder", 2.0, 255, 255, 255, 255 ) Im not Sure if this works. Try it out
  4. Its should work... You just need to fill in the "No Owner Name" something like "The State" function createHouseXX( x , y , z, ix, iy , iz , ii , cost , owner ) local pickup if(owner == "?")then -- Fill the No Owner Name here pickup = createPickup( x , y , z, 3 ,1272 ) -- Icon Id 1272 if the House is 2 sell else pickup = createPickup( x , y , z, 3 ,1273) -- if the House is occupied Icon ID 1273 end pickupCount = pickupCount + 1 houseElement = "house"..pickupCount id[ pickup ] = houseElement HouseOutX[ houseElement ] = x HouseOutY[ houseElement ] = y HouseOutZ[ houseElement ] = z HouseInX[ houseElement ] = ix HouseInY[ houseElement ] = iy HouseInZ[ houseElement ] = iz HouseInI[ houseElement ] = ii IsHousePickup[ houseElement ] = true if existData_kihc( houseElement ) then -- nothing else createData_kihc( houseElement ) saveData_kihc( houseElement , "owner" , owner ) saveData_kihc( houseElement , "cost" , cost ) saveData_kihc( houseElement , "rent" , "50" ) saveData_kihc( houseElement , "bank" , "0" ) end return houseElement end Ps: We need the setHouseOwner Function too.
  5. Hm...then we need a another Event like OnDownloadFinish/OnClientDownloadFinish. OnDownloadStart to figure out the FileSize, the state and if he got cached Files. And OnDownloadFinish/OnClientDownloadFinish for requesting the time he needed and how much files (Downloaded Files - Cache) he finally received. First Post edited
  6. It would be nice adding a Event like OnDownloadStart to identify if the joined Player is allready Ingame or still Downloading Files, from the Server. When the Player joins the Server and has no cached Files, and the Progressbar appears the Event is called. OnDownloadStart/OnClientDownloadStart bool state, bool cache state - Is the Player downloading a File ? returns true is he´s downloading, false if not. progress: - How much percent of the Files are done ? An integer representing the percent of the Progressbarvalue. cache: - The Player got cached files ? An bool representing the if the Client got cached Files. true = he got a Cache, false = he dont have a Cache. time: - How much time is the Client downloading the Files ? An integer representing how much Seconds the Client is downloading the Files. optional: lefttime: - How much time left for the Client downloading the Files ? An integer representing how much time isleft. Source The source of this event is the player/Client which is downloading the File. Example: function player_downloading( state, progress, time, lefttime ) if(state == true)then if(cache)then outputChatBox(getPlayerName(source).." got Cashed Files") else outputChatBox(getPlayerName(source).." dont got cached Files") end end end addEventHandler ( "OnDownloadStart", getRootElement(), player_downloading) OnDownloadFinish/OnClientDownloadFinish bool state, int filesize, int time [, int speed] state - Is the Player downloading a File ? returns true is he downloaded any file correctly, false if not. filesize: - The size of the Files. An Integer representing the Size of the Downloaded Files in Byte. time: - How much time is the Client downloading the Files ? An integer representing how much Seconds the Client is downloading the Files. optional: speed: - How much timehe needed for downloading 1 Byte ? An integer representing how much time he needed. Returns false if no file was loaded/Timeout/Error.[/strike] Source The source of this event is the player/Client which is downloading the File. Example: function player_finished_downloading( state, filesize, time , speed) if(state)then if(filesize > 1024)then local KByte = filesize/1024 if(KByte > 1024) local MByte = filesize/1024.." MByte" if(time > 60)then local minutes = time/60.." Minutes" outputChatBox(getPlayerName(source).." downloaded "..MByte.." in"..minutes) else outputChatBox(getPlayerName(source).." downloaded "..MByte.." in"..time.." seconds") end --[[The Rest should be clear]] end end end end addEventHandler ( "OnDownloadStart", getRootElement(), player_downloading) Another Examples: - IsPlayerDownloading(the Player) - getPlayerDownloadProgress(the Player, int Progress) - getPlayerCachedElements(the Player, string Path, string Filename)
  7. Another working way for turning all engine off is local allvehicles = getElementsByType("vehicle") for index,veh in ipairs(allvehicles ) do setVehicleEngineState ( veh, false ) end
  8. lemme take a look... function onVehicleRespawn ( exploded ) setVehicleEngineState ( source, false ) end addEventHandler ( "OnVehicleRespawn", getRootElement(), onVehicleRespawn ) function onVehicleRespawn ( exploded ) if ( exploded )then setVehicleEngineState ( source, false ) end end addEventHandler ( "OnVehicleRespawn", getRootElement(), onVehicleRespawn ) better ?
  9. take some brushes and blue color and give your best
  10. More than just simple. Add a Handler for the VehicleRespawn and set the EngineState... function onVehicleRespawn ( theVehicle ) setVehicleEngineState ( theVehicle, false ) end addEventHandler ( "OnVehicleRespawn", getRootElement(), onVehicleRespawn )
  11. Hm...are u calling the Save Dialog correctly ? cause yeah im using Vista too. and it dont Execute() nothing Could u re-upload the Source Files ?
×
×
  • Create New...