-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
You're welcome.
-
menopeli34 = createObject(5837, 0, 0, 100, 0, 0, 0) function menopeli(player, cmd, posX, posY, posZ) local posX = tonumber(posX) local posX = tonumber(posY) local posZ = tonumber(posZ) if posX and posX and posZ then moveObject(menopeli34, 15000, posX, posY, posZ) end end addCommandHandler("meno", menopeli) function kutsumenopeli(player) local x, y, z = getElementPosition(player) moveObject(menopeli34, 15000, x, y, z + 10) end addCommandHandler("kutsumeno", kutsumenopeli) function menowarp(player, cmd, who) local kohde = getPlayerFromName(who) if (kohde) then local x, y, z = getElementPosition(kohde) moveObject(menopeli34, 15000, x, y, z + 50) end end addCommandHandler("kohdemeno", menowarp)
-
-- Client Side -- bindKey("n", "down", function () if getPedWeapon(localPlayer) == 44 then if getCameraGoggleEffect() == "normal" then setCameraGoggleEffect("nightvision") setFarClipDistance(1000) else setCameraGoggleEffect("normal") end end end)
-
For attaching custom blip i don't think attachElements will work. Probably you will have to update the position with the function setCustomBlipPosition. https://wiki.multitheftauto.com/index.php?title=Resource:Customblips
-
Seems to me you copied it before i edit my post, copy the code again.
-
addCommandHandler("water", function() local team = getPlayerTeam(localPlayer) if getTeamName(team) == "Freeroam" then if not isWorldSpecialPropertyEnabled("hovercars") then setWorldSpecialPropertyEnabled("hovercars", true) outputChatBox("Water drive: on ", 255, 255, 0) else setWorldSpecialPropertyEnabled("hovercars", false) outputChatBox("Water drive: off", 255, 0, 0) end else outputChatBox("Sinun t?ytyy olla freeroam tiimiss? k?ytt??ksesi lentotoimintoa", 255, 0, 0) end end)
-
Smart idea, but he said he want to move the player to the ped. oh, i was mean player not ped how did i said ped, typo mistake.
-
No, I mean move player position by step until to finish position like moveObject function but it can't use with player. You can create object and set the alpha to zero and disable the collisions and attach the ped to the object and then you can use moveObject.
-
Did anyone realized that the event onClientWeaponFire is only for custom weapons? whatever.
-
toggleVehicleRespawn setVehicleRespawnDelay setVehicleIdleRespawnDelay
-
@DNL291, You forget the bracket after the 'end' at line 27.
-
Your server is in your signature right? I join to your server and the download was work without problem, so there nothing to do with the server, try to delete everything in "C:\Program Files (x86)\MTA San Andreas 1.3\mods\deathmatch\resources" or whatever the place you have installed MTA.
-
This happen only with "stupids" and sorry to tell that but what you was expect when you give everyone admin rights like giving chocolate to everyone whom you don't know or you can't trust him.
-
Why can't i? Simply because you will cancel the command 'me' with the event onPlayerCommand so that you won't be able to use it anymore even with addCommandHandler. Thanks working now 100% Thanks bro, and ramdan kareem. You're welcome.
-
@Tete, you can't do it with these function. @StevyDK, you have to use the event onPlayerChat. addEventHandler("onPlayerChat", root, function(msg, msgType) if msgType == 1 then cancelEvent() outputChatBox("* "..getPlayerName(source).." Say "..msg, root, 255, 255, 255) end end)
-
This might be port issue be sure you have all required port opened, if this doesn't help just try restart your server.
-
addEventHandler("onPlayerWasted", root, function() if getElementData(source, "Group") == "SWAT" then setTimer(function(source) spawnPlayer(source, 2233.3, 1090.1, 40.7, 0, getElementModel(source), 5, 2) setPedArmor(source, 100) setCameraTarget(source) fadeCamera(source, true) end, 1500, 1, source) end end )
-
oh, this was simple lol. This is what you want: sourceResource - The resource that called the exported function https://wiki.multitheftauto.com/wiki/Call
-
What is not working then?
-
You sure it's client side at the meta?
-
Have you read this topic before? https://forum.multitheftauto.com/viewtopic.php?f=91&t=39678
-
What are you doing? hello? Use the previous code it's WORK, it's just that you don't want to show us the function enableVehicleGodMode? I will repeat myself:
-
Where is the function enableVehicleGodMode? Why you don't use setVehicleDamageProof?
