-
Posts
980 -
Joined
-
Last visited
-
Days Won
1
Everything posted by manawydan
-
has another function to be activated when a katana hit? I want to change the sound of it
-
function jedi(weaponID) local muzzleX, muzzleY, muzzleZ = getPedWeaponMuzzlePosition(source) local px, py, pz = getElementPosition ( source ) if weaponID == 8 then local sound = playSound3D("jedi.mp3", muzzleX, muzzleY, muzzleZ, false) setSoundMaxDistance(sound, 40) end end addEventHandler ( "onClientPlayerWeaponFire", getLocalPlayer(), jedi ) what went wrong?
-
isObjectInACLGroup
-
vlw cara. preciso aprender o basico
-
eai pessoal blz? queria saber se tem algum site como o http://luabinaries.sourceforge.net/ só que em portugues. desculpe se estou no "tópico" errado
-
thank you. function pedNfale() AllPedsS = getElementsByType ( "ped" ) setPedVoice ( AllPedsS, PED_TYPE_DISABLED ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), pedNfale)
-
thank you
-
Thank you. but how can I disable the speeches of all peds with PED_TYPE_DISABLED. thank you
-
hurt when a ped he stays quiet. makes no sound.
-
which function to let everyone use the ped dumb? (no talking)
-
how can I delete images and script mira.lua? when the player leaves the server! client addEventHandler( "onClientResourceStart", resourceRoot, function ( startedRes ) exports.crosshairreplace:register( 26, "26.png" ) exports.crosshairreplace:register( 29, "29.png" ) exports.crosshairreplace:register( 30, "30.png" ) exports.crosshairreplace:register( 28, "29.png" ) exports.crosshairreplace:register( 32, "29.png" ) end ) function apague() fileDelete(mira.lua) end addEventHandler( "onClientPlayerQuit", getRootElement(), apague )
-
has a resource in the community. https://community.multitheftauto.com/ind ... ls&id=6210
-
manve1 worked, but has a bad argument. lua:15: Bad argument 'getElementHealth' [Expected alement at argument 1, got nil]
-
this setTimer( function() setElementHealth ( nemesi, 200 ) end, 1100, 0)
-
how to stop the timer, if the health of nemesis = nill? thanks for your time. server-- function Nemesisbymanawydan ( ) baz = createObject ( 360, -1935.5480957031, 665.44055175781, 48, 0, 0, 0 ) nemesi = exports [ "slothBot" ]:spawnBot ( -1935.5480957031, 665.44055175781, 47.0, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) setElementModel ( nemesi, 107 ) outputChatBox ("#9E0000Nemesis: #0D9905STARS",getRootElement(), 255, 255, 255, true ) local myBlip = (createBlipAttachedTo ( nemesi, 0 )) attachElements ( baz, nemesi, 0.2, 0.1, 0.5, 0, 90, 0 ) triggerClientEvent ( "nsound", root ) triggerClientEvent ( "nemesismissel", root ) setTimer( function() setElementHealth ( nemesi, 200 ) end, 1100, 0) end addEventHandler("onResourceStart", resourceRoot, Nemesisbymanawydan) addEvent("onBotWasted",true) addEventHandler("onBotWasted",getRootElement(), function (killer) if (source == nemesi) then givePlayerMoney(killer,math.random(4000,6000)) -- 4000, 6000 money for kill nemesis-- outputChatBox ( getPlayerName ( killer ) .. " #081DBFkilled Nemesis, congratulations",getRootElement(), 255, 255, 255, true ) setTimer(Nemesisbymanawydan, 1000, 1) -- 60000 time for nemesis respawn in milliseconds-- end end) client-- --- Criado por MANAWYDANbr --- function Skinemesis1() txd = engineLoadTXD("data/107.txd", 107 ) engineImportTXD(txd, 107) dff = engineLoadDFF("data/107.dff", 107 ) engineReplaceModel(dff, 107) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), Skinemesis1) addEvent ( "nsound", true ) addEventHandler ( "nsound", root, function ( ) playSound ( "data/nemesis.mp3" ) end ) addEvent ( "nemesismissel", true ) addEventHandler ( "nemesismissel", root, function ( ) x, y, z = getElementPosition("nemesi") createProjectile(getLocalPlayer(), 19, x, y, z) setPedAnimation ( nemesi, "ROCKET", "RocketFire") end )
-
sorry, but do not think you understand my question. I want to know how to get the country of the players in trying to create a script modifying the language. in short: how to take the country each player? I hope you understand
-
I have a zombie server. wish I could change the language of the server linguaguem for each player. (English, Portuguese, Spanish ...). so is there any way to know linguaguem or country of each player to change linguaguem the server? Thank you. and Merry Christmas!
-
how can I cancel the damage of a vehicle, if the "attacker" for a player? onVehicleDamage cancelEvent