Hoffmann
Members-
Posts
68 -
Joined
-
Last visited
-
Days Won
1
Hoffmann last won the day on May 30
Hoffmann had the most liked content!
Details
-
Gang
Craftsmen of SA
-
Location
San Fierro
-
Occupation
Digital craftsman. I build, fix, design and ship things
-
Interests
Building websites, fixing systems, crafting tools, tuning servers, and making ideas real.
Hoffmann's Achievements
Snitch (10/54)
12
Reputation
-
Объясни в чем проблема, не загружается скриншот твой, если там он был
-
Looks interesting. My suggestion is to add a small animation when you hit the button inside the circle, and make it disappear smoothly, or let it continue moving instead.
- 2 replies
-
- 1
-
-
- race
- lowrider dance
-
(and 1 more)
Tagged with:
-
Have you done a brand new multiplayer in 6 years? Anyway good job!
-
Hoffmann started following Megadreams
-
Hoffmann started following Towncivilian
-
Hoffmann started following Einheit-101
-
Hoffmann started following Gallardo9944
-
As far as I know, you have to combine two shaders in order to display it in preview properly.
-
Could you show the part of code where startJailTimer is called?
-
Уже сообщил разработчикам МТА о твоей проблеме. Это нельзя оставлять без ответа. Ждем!
-
I expected the era of ffs-like gamemodes would have ended in 2016. Seems like I was wrong. I don't want to be annoying here, but lobby and toptimes look far too identical to ffs-gaming.
-
I guess you want to display only 5 elements from table somewhere(on some page), right? The way you can do it is: local elements = {{411, "Infernus"}, {546, "Intruder"}, {429, "Banshee"}, {541, "Bullet"}, {531, "Tractor"}} local startIndex = 3 -- index to start with local numberOfElements = 2 local fiveElements = {} for idx = startIndex, startIndex + numberOfElements - 1 do outputChatBox(elements[idx][2]) -- for example, print names of vehicles in table from index 3 and select 2 elements that are next end The code above will output: Banshee Bullet
-
Wanted level (Розыск за убийство бота/игрока.)
Hoffmann replied to Military Guy's topic in Scripting
My fault. Edited -
Wanted level (Розыск за убийство бота/игрока.)
Hoffmann replied to Military Guy's topic in Scripting
addEventHandler("onPedWasted", pedElement, function(_, killer) setPlayerWantedLevel(killer, 3) end) addEventHandler("onPlayerWasted", getRootElement(), function(_, killer) setPlayerWantedLevel(killer, 3) end) Read more about onPedWasted and onPlayerWasted events here https://wiki.multitheftauto.com/wiki/OnPedWasted and https://wiki.multitheftauto.com/wiki/OnPlayerWasted -
Note: For remote players, you have to use setPedAimTarget before setPedLookAt.
-
Color could be changed via shaders.
-
I don't really like the idea of making wheels with huge customization options as vehicle components because of big .dff file size. You could make unlimited number of wheels as if they were objects. In this way you have to make regular wheels invisible (setVehicleComponentVisible). Then, inside onClientRender or even better onClientPreRender event you have to copy the position and rotation of default wheels(getVehicleComponentPosition and getVehicleComponentRotation) and set it as the position and rotation for your objects that will represent your wheels. Later, you will want this to be synchronized between other players. onClientElementStreamIn and onClientElementStreamOut events might help. On the other hard, if you'd like to do this with in-build components, shaders could be used to apply different textures on wheel's parts. And all the components are made separately, but it's stuff related to modeling.
-
Если уж на то пошло, то fadeCamera(player, true) в серверном скрипте. Если сервер freeroam, то попробуй запустить ресурс play, в котором прописаны спавны.
-
function darmanKardan (thePlayer, command, player) local taraf = getPlayerFromName(player) if player then setElementData(taraf,"healrequest", pending) outputChatBox("#00ff00The doctor is willing to heal you. Do you accept?", taraf, 255, 255, 255, true) else outputChatBox("#ff0000Syntax: /heal <Name>", thePlayer, 255, 255, 255, true) end end addCommandHandler("heal", darmanKardan) function acceptHeal (thePlayer, command) local requestStatus = getElementData(thePlayer, "healrequest") if (requestStatus == "pending") then setElementData(player,"healrequest", unpending) setElementHealth(player, 100) outputChatBox("#00ff00You have been healed by the doctor.", thePlayer, 255, 255, 255, true) else outputChatBox("#ff0000[Error]: #ffffffYou have no pending request.", thePlayer, 255, 255, 255, true) end end addCommandHandler("aheal", acceptHeal) The equality operator == is missing in line 14. This code should work
