Jump to content

BieHDC

Members
  • Posts

    296
  • Joined

  • Last visited

Everything posted by BieHDC

  1. Habe das selbe problem mit der version 1.3.3 Also entweder downgrade oder lade dir nochmals die neueste version herunter, denn diese wird auch immer wieder etwas upgedated auch wenn die versionsnummer gleich bleibt
  2. Habt ihr schon pc neustart versucht? Hat mir schon mal geholfen und sonst macht mal MTA ganz runter und installiert die neueste version., und GTA SA auch
  3. @glowdemon: if you speak german i can help you if you have server problems if you have more
  4. Hmmm i stuck now very hard :c i managed one part to work but the others i cant made. Pls put out the lines with error, fix it and write with comment why this have to be so that it works -.- reduced to 3 errors: [12:03:35] WARNING: [new]/vehcol/vehcolch.lua:11: Bad argument @ 'getVehicleOccu pant' [12:03:39] WARNING: [new]/vehcol/vehcolch.lua:23: Bad argument @ 'getPedOccupied Vehicle' [12:03:39] WARNING: [new]/vehcol/vehcolch.lua:24: Bad argument @ 'getElementHeal th' [Expected element at argument 1, got boolean] isitflickering = "false" function plssavemycolor ( thePlayer ) isitflickering = "false" setTimer (plssavemycolor2, 15000, 1, thePlayer) end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), plssavemycolor ) function plssavemycolor2 ( root ) isitflickering = "false" car = getVehicleOccupant ( thePlayer ) if ( car ) then d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12 = getVehicleColor (car, true ) end end function plsresetmycolor ( thePlayer ) setVehicleColor ( car, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12 ) isitflickering = "false" end function burningcar ( root ) car = getPedOccupiedVehicle( thePlayer ) vhealth = getElementHealth ( car ) if ( car ) then if vhealth <= 300 then if isitflickering == "false" then setTimer ( flickit, 50, 1 ) isitflickering = "true" elseif vhealth >= 1000 then isitflickering = "false" setTimer ( plsresetmycolor, 100, 1, player ) end end end end addEventHandler("onVehicleDamage", root, burningcar ) function flickit ( player ) car = getVehicleOccupant ( player ) c = 1 setVehicleColor ( car, c, c, c, c ) setTimer ( burcrd, 100, 1, thePlayer ) end function burcrd ( thePlayer ) car = getPedOccupiedVehicle( player ) vhealth = getElementHealth( car ) if ( car ) then if vhealth <= 300 then local cc = 3 setVehicleColor ( car, cc, cc, cc, cc ) setTimer ( flickit, 100, 1, thePlayer ) elseif vhealth >= 1000 then isitflickering = "false" setTimer ( plsresetmycolor, 100, 1, player ) end end end
  5. Dont fix tell me how to fix isitflickering = "false" function plssavemycolor ( thePlayer ) isitflickering = "false" setTimer (plssavemycolor2, 15000, 1, thePlayer) end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), plssavemycolor ) function plssavemycolor2 ( root ) isitflickering = "false" car = getVehicleOccupant ( root ) if ( car ) then d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12 = getVehicleColor (car, true ) end end function plsresetmycolor ( thePlayer ) setVehicleColor ( car, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12 ) isitflickering = "false" end function burningcar ( root ) car = getVehicleOccupant ( source ) vhealth = getElementHealth ( car ) if ( car ) then if vhealth <= 300 then if isitflickering == "false" then setTimer ( flickit, 50, 1 ) isitflickering = "true" elseif vhealth >= 1000 then isitflickering = "false" setTimer ( plsresetmycolor, 100, 1 ) end end end end addEventHandler("onVehicleDamage", getRootElement(), burningcar ) function flickit ( root ) car = getVehicleOccupant ( thePlayer ) c = 1 setVehicleColor ( car, c, c, c, c ) setTimer ( burcrd, 100, 1, root ) end function burcrd ( thePlayer ) local car = getPedOccupiedVehicle( thePlayer ) local vhealth = getElementHealth( car ) if ( car ) then if vhealth <= 300 then local cc = 3 setVehicleColor ( car, cc, cc, cc, cc ) setTimer ( flickit, 100, 1, thePlayer ) elseif vhealth >= 1000 then isitflickering = "false" setTimer ( plsresetmycolor, 100, 1, thePlayer ) end end end
  6. Hello, i have created a script for clientside, but then the colours wont be synct and now i have problems at porting. Some things i have ported already sucsessfully, but now i am stuck. i dont want you to write for me, because i wanna learn. The problem is now, how to define theplayer and some other things. Here are some errors i get and pls tell me how to. I dont wanna post the script, because then i cant try myself and pls tell me why to set so^ [19:00:15] WARNING: [new]/vehcol/vehcolch.lua:25: Bad argument @ 'getVehicleOccu pant' [19:00:16] WARNING: [new]/vehcol/vehcolch.lua:25: Bad argument @ 'getVehicleOccu pant' [19:09:42] WARNING: [new]/vehcol/vehcolch.lua:27: Bad 'vehicle' pointer @ 'getVe hicleColor'(1) [19:09:42] WARNING: [new]/vehcol/vehcolch.lua:27: Bad 'vehicle' pointer @ 'getVe hicleColor'(1) [19:00:28] WARNING: [new]/vehcol/vehcolch.lua:54: Bad argument @ 'getVehicleOccu pant' [19:00:28] WARNING: [new]/vehcol/vehcolch.lua:56: Bad argument @ 'setVehicleColo r' [19:00:28] WARNING: [new]/vehcol/vehcolch.lua:61: Bad argument @ 'getPedOccupied Vehicle' [19:00:28] WARNING: [new]/vehcol/vehcolch.lua:62: Bad argument @ 'getElementHeal th' [Expected element at argument 1, got boolean]
  7. It works, but only if the truck dont look to south. Its so if the truck looks to north, east or west if get connected, but if it looks to south if dont work, because it would be "on" the vehicle. So the truck has to have the same rotation as the trailer. You understand? i will try to include rotation and if it doesnt work i will post it in here edit: i dont thought to get it work on the first try^i am getting better in scripting yey ^^ here is the code and i will it also release in community^should i add your credits? --serverside function attach ( thePlayer ) local v = getPedOccupiedVehicle ( thePlayer ); local x, y, z = getElementPosition ( thePlayer ); local ra, rb, rc = getElementRotation ( thePlayer ); local theTrailer = createVehicle ( 450, x, y, z+15, ra, rb, rc ); attachTrailerToVehicle ( v, theTrailer ); end addCommandHandler ( "attc", attach ) edit2: only one thing cant be fixed because there is no check if a trailor is already attached, but only set the createVehicle from +15 to -9999 or somewhere it never would be find^
  8. ok thx i will try later going to sleep now^
  9. its clientside now but would be server better? and renember, this will get an event handler later for a race map
  10. 4: arg 5 none 5: arg 2 got boolean
  11. not tested by you then you would have seen this if ( isTimer ( vehicleTimer ) ) then killTimer ( vehicletimer ); --There should be a T not a t
  12. doesnt work 5: argoment 5 got none 6: nil value i think i dont get z pos function attach( thePlayer ) local thePlayer = getLocalPlayer() local v = getPedOccupiedVehicle( thePlayer ); local x, y, z = getElementPosition( thePlayer ); local theTrailer = createVehicle( 450, x, y, z+15 ); --+15 AttachTrailerToVehicle( v, theTrailer ); end addCommandHandler("attc", attach)
  13. Ok as event handler can i use onGamemodeMapStart? And what you mean with give player as a parameter? I will first try out with command handler
  14. How to attach a trailer to an existing vehicle with attachTrailerToVehicle for Race gamemode? Is now written in wiki
  15. Link to community: https://community.multitheftauto.com/in ... ls&id=7743
  16. No output but lets forget this
  17. does it need admin? also doesnt work with admin
  18. No debugscript 3 output and no works :c
  19. thx man^am i allowed to upload in commuity?
  20. Like Apache Server would say: It Works! ;D function KillVehicleOwner() if getElementHealth(source) <= 300 and getVehicleType(source) == "BMX" then local thePlayer = getVehicleOccupant(source) killPed(thePlayer) end end addEventHandler("onVehicleDamage", getRootElement(), KillVehicleOwner)
×
×
  • Create New...