Jump to content

BieHDC

Members
  • Posts

    296
  • Joined

  • Last visited

Everything posted by BieHDC

  1. I getting again the same mesage is i told The water should start to raise after 30sec and then always getting a bit higher until reach maxLevel This script worked without water creation, but it looked shitty see screenshots
  2. First one works THX^ But i miss the "You have not enouth money" message
  3. Ok will try and the godmode script doesnt work pls look again
  4. Doesnt work if normal player tryes to buy nothng happens no money no message and if admin buy work but with warning: WARNING: userpanel\server.lua:78 Bad 'vehicle' pointer @ 'setVehicleDamageProof'(1)
  5. LOL negativ money i dont thought about this but good idea THX man and maybe you can help me also there? viewtopic.php?f=91&t=62015&p=590871#p590871
  6. Yes and player should see chat message: Only for Admins, but you loose money for trying to buy
  7. This takes normal players money if not admin? > I want normal players to loose money And admins get godmode for buy? > admins should get godmode for money
  8. Like so? Attention: If Player not Admin he should loose the money and if admin he loose money and get ghostmode addEvent("buyGodMode", true) addEventHandler("buyGodMode", rootElement, function() if ( getPlayerMoney (source) >= 70000 ) then takePlayerMoney(source, 70000) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then outputChatBox("Godmode Successfully activated", source, 255, 255, 0, true) setVehicleDamageProof(getPedOccupiedVehicle(source),true) setTimer( setVehicleDamageProof, 60000, 1, getPedOccupiedVehicle(source), false) else outputChatBox("Function only for Admins, but you lost money for try to buy.", source, 255, 0, 0, true) end end )
  9. Hello, i have this GodModeScript working very well, but i wanna have for working only for Admins and it should write in Chatbox if not Admin: "This is only for Admins" addEvent("buyGodMode", true) addEventHandler("buyGodMode", rootElement, function() if ( getPlayerMoney (source) >= 70000 ) then takePlayerMoney(source, 70000) outputChatBox("Godmode Successfully activated", source, 255, 255, 0, true) setVehicleDamageProof(getPedOccupiedVehicle(source),true) setTimer( setVehicleDamageProof, 60000, 1, getPedOccupiedVehicle(source), false) else outputChatBox("Not enough money.", source, 255, 0, 0, true) end end )
  10. get this error: WARNING: MAP\waterrise.lua:33: Bad argument @ 'setWaterLevel' [Expected number at argument 1, got nil] setWaterLevel ( water, level, true, true ) -- set the level
  11. Doesnt work -.- and no errors in debugscript 3 --server side -- Setting water properties. height = 0 SizeVal = 2998 -- Defining variables. southWest_X = -SizeVal southWest_Y = -SizeVal southEast_X = SizeVal southEast_Y = -SizeVal northWest_X = -SizeVal northWest_Y = SizeVal northEast_X = SizeVal northEast_Y = SizeVal -- OnClientResourceStart function that creates the water. function thaResourceStarting( ) water = createWater ( southWest_X, southWest_Y, height, southEast_X, southEast_Y, height, northWest_X, northWest_Y, height, northEast_X, northEast_Y, height ) setWaterLevel ( height ) end addEventHandler("onClientResourceStart", resourceRoot, thaResourceStarting) local maxLevel = 35 -- max level local untilW = 120 -- sec local raising,level = (maxLevel/untilW)/10,0 untilW = nil local runningTimer function editSomeWater() level = level + raising -- level raising setWaterLevel ( level, true, true ) -- set the level if level >= maxLevel then -- compare values of level and max level setWaterLevel ( maxLevel, true, true ) -- set it back to max level for perfection if isTimer(runningTimer) then -- check if the timer exist killTimer(runningTimer) -- stop the timer end runningTimer,level,maxLevel = nil,nil,nil -- delete data (ram) end end setTimer (function () -- set a timer for 15000 millisec (15 sec), runs one time "1" runningTimer = setTimer ( editSomeWater, 100, 0 ) -- set an invinity timer to set the water level, (0 = invinity) (only stops when you stop him with killTimer) end,30000,1) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true ) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true ) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true ) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true ) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true ) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true ) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true )
  12. Found Script https://community.multitheftauto.com/ind ... ls&id=7539
  13. Hello, in past i have had a recource, which raises water all over map, but in my map this doesnt work. See Screenshots: http://postimg.org/image/bwimlcl4z/ http://postimg.org/image/6dkohvdhf/ http://postimg.org/image/v6tewux29/ http://postimg.org/image/s61g28hxz/ Here is my script: -- server side local maxLevel = 35 -- max level local untilW = 120 -- sec local raising,level = (maxLevel/untilW)/10,0 untilW = nil local runningTimer function editSomeWater() level = level + raising -- level raising setWaterLevel ( level, true, true ) -- set the level if level >= maxLevel then -- compare values of level and max level setWaterLevel ( maxLevel, true, true ) -- set it back to max level for perfection if isTimer(runningTimer) then -- check if the timer exist killTimer(runningTimer) -- stop the timer end runningTimer,level,maxLevel = nil,nil,nil -- delete data (ram) end end setTimer (function () -- set a timer for 15000 millisec (15 sec), runs one time "1" runningTimer = setTimer ( editSomeWater, 100, 0 ) -- set an invinity timer to set the water level, (0 = invinity) (only stops when you stop him with killTimer) end,30000,1) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true ) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true ) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true ) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true ) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true ) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true ) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true )
  14. I detected if camera is wide enough away from smokeing thing the smoke is not shown. Maybe anyway it is setable to distance 0 to disable smoke?
  15. but is there really no mta side script for removing? because i wanted this for all players on server and with command Handler. For examle the "FuckN" server has so a resource, when press b every smoke is gone. But i think the admin wont give me script
  16. Thank you very much and can i change myself so, that there will be no smoke anymore or is that in an other file? And will i have problems with anticheat or so?
  17. And how to replace though MTA? maybe trough this? https://wiki.multitheftauto.com/wiki/EngineReplaceModel
  18. Hello, is there an resouce, which can disable every smoke in MTA? I want this for reducing laggs on my server. Or is there a very simple way to an script? Thx
  19. Works now I set script client side, but i have to set it to no side
  20. This script should delete a with cursor clicked object(no worldobjects). I extracted it from another script.
  21. Hello, if have the following problem in the following script: WARNING: objdel\objectdeleter.lua:3 Bad argument @ `showCursor´ function delete(source) show = 1 showCursor ( source, true) end function obscurename(mouseButton, buttonState, playerWhoClicked,clickPosX,clickPosY,clickPosZ) if show == 1 then destroyElement(source) show = 0 showCursor ( playerWhoClicked, false) end end function cursorshow(source) show = 0 showCursor ( source, false) end addCommandHandler( "del", delete) addCommandHandler( "imstupid", cursorshow) addEventHandler( "onElementClicked", getRootElement(), obscurename )
  22. This resource cant create a bot within a car, which should drive paths
×
×
  • Create New...