Jump to content

xScatta

Members
  • Posts

    181
  • Joined

  • Last visited

Everything posted by xScatta

  1. @Wielebny To mi się bardzo przydaje. setLowLODElement Super funkcja.
  2. Teraz, pytanie komu by się chciało wejść na serwer i ściągać 400-500mb żeby całe gostown ściągnąć.
  3. God... It's nice! Release it! Good Luck.
  4. Try this one if you don't understand ( not tested ). addEventHandler( "onZombieGetsKilled", getRootElement(), function( killer ) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(killer)),aclGet("Vip")) then givePlayerMoney( killer, 10 ) else givePlayerMoney( killer, 5 ) end end )
  5. xScatta

    Map bug

    You, posted 2 the same links in Spoiler...
  6. Heh, u mnie też to było ale zastosowałem się wszedłem w najważniejsze logi i te dodatkowe moje. I odkryłem kto robił włamy. Hasła zmienione i perm ban.
  7. xScatta

    Scripter

    What do you mean by "it turns out good" ? Because i doubt someone would like to lose his time for nothing. If it don't turns out good.
  8. Hey, all guys im confused because there's no such function like marker = getElementMarker(element) -- or marker = getPlayerMarker(player) Can someone explain how can i get player occupied marker? Big thanks. xScatta
  9. @tosfera I think he need an example not only functions.
  10. Try this: setTimer(function () local allResources = getResources() for index, res in ipairs(allResources) do if getResourceState(res) == "JOBpl" then restartResource(res) end end end,60000,0) It will restart the resources after one minute.
  11. Hey, there my question is there's more utilities like openFrame and textLib?
  12. Why it is wrong? CODE: fuelTimers = {} function aFuel() if not ( getElementData(source,"fuel") ) then setElementData(source,"fuel",25) end end function dropFuel(player,seat,jacked,vehicle,timer) if getElementData(source,"fuel") then if getVehicleController(source) then if getVehicleEngineState(source)== true then vehicle = source timer = setTimer ( function (vehiclex) local vehiclex = vehicle if getVehicleController(vehiclex) then if getVehicleEngineState(vehiclex)==true then if getElementData(vehiclex,"fuel")~= 0 then local vehiclex = vehicle setElementData(vehiclex,"fuel",getElementData(vehiclex,"fuel")-1)end end end end, 1000, 0 ) fuelTimers[vehicle] = timer addEventHandler("onVehicleExit",getRootElement(),killFuelTimer) end end end end function killFuelTimer() if source == fuelTimers[vehicle] then killTimer(fuelTimers[vehicle]) end end function testFuel(playerSource) if isPedInVehicle(playerSource) then if getVehicleController(getPedOccupiedVehicle(playerSource))== playerSource then if getElementData(getPedOccupiedVehicle(playerSource),"fuel") then if getElementData(getPedOccupiedVehicle(playerSource),"fuel")==0 then setVehicleEngineState(getPedOccupiedVehicle(playerSource),false) outputChatBox("Nie masz paliwa w samochodzie",playerSource) else outputChatBox("Masz paliwo w samochodzie",playerSource) end else outputChatBox("Ten pojazd nie ma paliwa w sobie",playerSource) end end end end addCommandHandler("tf",testFuel) addEventHandler("onVehicleStartEnter",getRootElement(),aFuel) addEventHandler("onVehicleEnter",getRootElement(),dropFuel)
  13. @Eren07 If, you need any help in scripting or if you need a scripter. Just send me your's skype at PM. : )
  14. Does that is correct? i don't tried with more than 1 player. ( Sent code at PM @Solidsnake14 )
  15. Hey guys code here problem below. CODE REMOVED The problem is that when players will multiply have own cars and enter and re-enter it then debugscript outputs warning look at the addEventHandler Line at DropFuel().
  16. @Dealman Yeah, that will be really helpful. So post it. : )
  17. xScatta

    Sleeping :D

    Try this. (( NOT TESTED )) mojmarker = createMarker (-1984.6114501953, 248.5777130127, 34.171875, 'cylinder', 5, 0, 0, 190) function spanie(player) if source == mojmarker then if isPedInVehicle (player) then player = theplayer setPedFrozen ( player, true ) setTimer( function () setPedFrozen(theplayer,false)end,10000,1 ) end end end addEventHandler ("onClientMarkerhit", mojmarker, spanie)
  18. Hey guys code here. Problem below. SERVER SIDE: CODE REMOVED CLIENT SIDE: CODE REMOVED The problem is when i click the button "addAllButton" the function attached run but the command is not executed and nothing happens i dont know the problem no messages in debugscript Help.
×
×
  • Create New...