Jump to content

BieHDC

Members
  • Posts

    296
  • Joined

  • Last visited

Everything posted by BieHDC

  1. But why then works with command handler to show message?
  2. can i also use OnClientPlayerSpawn or OnClientResourceStart ?
  3. yeah thx man if somebody want my and your speedo version of this ask me pm^
  4. ok thx^ but i dont get chatbox output edit: with command handler it works :c
  5. This code with colours is working, but if no nitro still error isnt there somethig that if nil return something settet before? (tried but i dont gotta it work) --nitro part function getNitroStateColor() local nitro = getVehicleUpgradeOnSlot(vehicle, 8 ) --added an space for shown right here in forum between 8 and ) if nitro then local level = getVehicleNitroLevel(vehicle)*100 -- *100 bk nitro level is returned as 0-1 if level == 100 then return 0, 255, 0 elseif level < 100 and level > 75 then return 128, 150, 0 elseif level < 75 and level > 50 then return 255, 255, 0 elseif level < 50 and level > 25 then return 255, 128, 0 elseif level < 25 and level > 5 then return 255, 0, 0 elseif level < 5 then return 75, 75, 75 end end end
  6. i think yes, but i dont found anything about this handler in wiki, but it exists, but i dont know if client or server. and debugscript 3 gave no outputs
  7. Screenshotz http://www.bilder-upload.eu/show.php?file=3faf69-1376501762.png http://www.bilder-upload.eu/show.php?file=7df431-1376501784.png
  8. On own car because this will be for a dd and a dm server the problem is the speedo dont get sucessfully "built" if no nitro is added
  9. Error on line 7. here: attpemt to perform arithmetic on a boolean value edit: stops if i add nitro to car the biggest problem is now that the speedo is only correctly shown with nitro (and i removed the space between 8 and ) )
  10. Can you tell me if this will work? Because i have no chance to test -- Client Side -- Ghostmode Example from Wiki function ghostmode_on() local v = getPedOccupiedVehicle(localPlayer) -- Get her's Vehicle ID for index,vehicle in ipairs(getElementsByType("vehicle")) do --LOOP through all Vehicles setElementCollidableWith(vehicle, v, false) -- Set the Collison off with the Other vehicles. end outputChatBox("You are now a Ghost ,thePlayer) end addEventHandler("onGamemodeMapStart", getRootElement(), ghostmode_on)
  11. Hello, i have found an awesome Speedometer (https://community.multitheftauto.com/in ... ls&id=6951) which is showing if nitro is intalled, but i wanna make it like the car health in the same resource. The car icon in green when full live and red when low, but nitro not, so i searched for nitro functions and found this(https://wiki.multitheftauto.com/wiki/Ge ... NitroCount) and this(https://wiki.multitheftauto.com/wiki/Ge ... NitroLevel) now i dont know what one is the right one Here is the car and nitro part: --car health function getCarStateColor() local health = getElementHealth(vehicle) if (health) then local g = (255/1000) * health local r = 255 - g local b = 0 return r, g, b else return 0, 255, 0 end end --nitro part function getNitroStateColor() local nitro = getVehicleUpgradeOnSlot(vehicle, 8 ) --added an space for shown right here in forum between 8 and ) if (nitro > 0) then return 0, 255, 0 else return 75, 75, 75 end end
  12. But the vehicle health button is decreasing so they take damage BUT dont explode thats why and i give the script a try
  13. ah ok^ and how would it be look if i wanna have all 3 bikes in it?
  14. So this kills a vehicle if health under 200? and its no bug report but you can report
  15. Hello, i admin a dd server and there are some maps with random vehicle markers. the problem is that a bike cant be killed by minigun of RC Baron, Ruster... and that i wanna fix. i thought about a check if bike has less than 5 live and then to kill player, but i dont know what things to use. Can you please tell me what functions i should use? then i will try to script and if i fail i will post my script here. and i think its not only a problem on my server, so i am going to upload this to community. Thx
  16. version 1.3.3 doesnt work too i use 1.3.2 with wine 1.4.1 without playonlinux (in pol never worked -.- ) and without dx override only installed dx full installer
  17. i will do if i have the time
  18. :C would be a great function, but somebody has to create all textures So we have to use haystack and glass for ever to make breakable towers ^^
  19. ok thx man but i cant set an existing not breakable object like a bridge breakable
  20. https://wiki.multitheftauto.com/wiki/SetObjectBreakable How is this function meant? is it only for making breakable objects unbreakable or can i create for example breakable buildings with it?
  21. BieHDC

    Vio-Lite

    Hello, can somebody please tell me where to buy/legal download Vio-Lite? Yes, i already used google and searched in forum
  22. ok works now thank you can i pay you for some script? but its a BIG work
  23. i copied you text up there
  24. dont work, it shouldnt be possible to spin a negative ammount of money but i can do spin -999999 and loose and then i get 999999 money it should chech if amount is over 0 and not if money of player is over 0
×
×
  • Create New...