-
Posts
965 -
Joined
-
Last visited
Everything posted by DakiLLa
-
There is no such function 'mutePlayer'. Use setPlayerMuted instead. Next code should work (not tested though). By the way, make sure your resource has rights to mute players (it should be noted in ACL.xml). local timers = {} local muteDuration = 60 --seconds addCommandHandler( "idiot", function( player, cmd ) local rndPlayer = getRandomPlayer() --if random player is not muted if not timers[ rndPlayer ] then setPlayerMuted( rndPlayer, true ) timers[ rndPlayer ] = setTimer( setPlayerMuted, muteDuration*1000, 1, rndPlayer, false ) outputChatBox( getPlayerName( rndPlayer ).." is now muted", root, 255, 0, 0, true ) end end ) --if a player leaves the server and he has been muted, then remove the timer addEventHandler( "onPlayerQuit", root, function() if timers[ source ] then killTimer( timers[ source ] ) timers[ source ] = nil end end )
-
As far as I remember it does something strange with NRG-500... /off: 444 posts :b
-
Oh noes, you came back again, Thehookerkiller01 ....
-
I'm working on the same one for a long time :b Those are just special pre-defined (same as default) colors that are not documented on the mta-wiki. The goal of the thing that XX3 showing us is that you can set any color you want using RGB palette.
-
lil Toady, спасибо, помогло!
-
Кхм, не понимаю. У меня почему-то вторая галка напрочь отсутствует. Пруф: -broken image link removed at the request of OP- Глядел как в оконном режиме, так и в полноэкранном, и там и там её нет.
-
Хотелось бы узнать: опцию включения/отключения темы Aero на Windows 7 совсем убрали ? Вроде как-то видел один раз такую в настройках, а теперь что-то не видать...
-
Try to freeze your vehicle with setElementFrozen before you teleport it and then un-freeze when you teleported it.
-
Что именно не получается? Покажи код, какие-то ошибки в дебаг (/debugscript 3) выводит ?
-
It would be better to put all your textures in a single .txd file, load it once and apply for different models.
-
Эм, а разве можно самому собрать клиент и просто так зайти о_О? Хотелось бы тоже уточнить сей момент. Насколько я помню, начиная с 1.0.4 с кастомной сборкой кроме своего сервера уже никуда не подключишься...
-
AFAIK you have another one resource running that makes the secound message appear. Try to stop resources one by one to detect which one causes the problem.
-
ccw жжёт. Сегодня добавил еще несколько dx-функций. Хотелось бы и о них узнать поподробнее от тех, кто в данный момент имеет возможность потестировать их на 1.1 ...
-
John_Michael, you can take a look in here.
-
Вот так да, неожидал! /me ушел ставить SRT3 ...
-
I assume you use 'onClientPlayerJoin' event, don't you? This event will never work for joined player. So it's better use: addEventHandler( "onClientResourceStart", resourceRoot, function() playSound( "yourSound.mp3", false ); end )
-
//off: ehm, I thought that WIP means "Work in Progress" ?
-
Uhm, I dont think it is possible with the way you have noticed. But I guess it is possible, if replace a weapon texture with an alpha channel, so the whole texture will be in alpha.
-
Nice, can't wait for it Btw, will it be possible to move the HUD in any place of the screen ?
-
Извини, не в моих интересах. Для таких дел существует этот форум и wiki, а также необходимо чуточку желания.
-
Для этого тебе уже понадобятся навыки написания скриптов на Lua, здесь правкой одной строчки не обойдешься.
-
ipairs is used to go through a table with integer indexes; pairs to go through string indexes. local t = { "hello", "i", "am" } for i, v in ipairs( t ) do print( v ); end -- I am local t = { ["hello"] = "I am", ["hello_again"] = "not here" } --local t = { hello = "I am", hello_again = "not here" } is equivalent of the previous line for i, v in pairs( t ) do print( v ); end -- I am not here By the way, you can't use pairs and ipairs to loop through tables with mixed types of indexes.
-
Открой mtaserver.conf, который лежит в MTA SA\server\mods\deathmatch и прокрути вниз, там будут строчки типа src="joinquit" startup="1" protected="0" /> Скопируй строчку и в src подставь имя нужного ресурса.
-
Omg, this looks awesome! Will you release it to public when you are done?
-
Use getVehicleType function.
