-
Posts
181 -
Joined
-
Last visited
Everything posted by xScatta
-
When, will you release it?
-
@Wielebny To mi się bardzo przydaje. setLowLODElement Super funkcja.
-
Teraz, pytanie komu by się chciało wejść na serwer i ściągać 400-500mb żeby całe gostown ściągnąć.
-
God... It's nice! Release it! Good Luck.
-
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 )
-
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.
-
Wielebny, a jak go używać?
-
Will, You give us something?
-
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
-
@tosfera I think he need an example not only functions.
-
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.
-
*BUMP*
-
Hey, there my question is there's more utilities like openFrame and textLib?
-
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)
-
@Eren07 If, you need any help in scripting or if you need a scripter. Just send me your's skype at PM. : )
-
Does that is correct? i don't tried with more than 1 player. ( Sent code at PM @Solidsnake14 )
-
Okay. Edited but the same...
-
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().
-
@Dealman Yeah, that will be really helpful. So post it. : )
-
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)
-
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.
-
God. ;_; I love you man.
