Jump to content

Shady1

Members
  • Posts

    877
  • Joined

  • Last visited

  • Days Won

    60

Everything posted by Shady1

  1. local x = 268.868 local y = 2037.208 local z = 17.7 function respawn(player) if player then spawnPlayer(player, x, y, z) fadeCamera(player, true) setCameraTarget(player, player) givePlayerMoney(player, 0) setPlayerTeam(player, player) giveWeapon(player, 31, 1000) outputChatBox("", player, 255, 255, 255) end end addEventHandler("onPlayerWasted",root, function() setTimer(respawn,8000,1,source) --respawn after 8 second later end)
  2. --clientside function handleKey(button, press) if not imagesEnabled and press and getKeyState("mouse2") then return false end for i, allowedImage in ipairs(allowedImages) do if button == allowedImage.key then triggerServerEvent("checkPlayerAllowed",localPlayer) end end end addEventHandler("onClientKey", root, handleKey) --serverside function isPlayerAllowed(player) return allowedPlayers[getPlayerSerial(player)] ~= nil end addEvent("checkPlayerAllowed",true) addEventHandler("checkPlayerAllowed",resourceRoot, function() if isPlayerAllowed(client) then --whatever you do, write server side functions or do client operations with triggerClientEvent end end)
  3. function checkPlayerDoingAnim() local block,anim = getPedAnimation(localPlayer) if block and anim then triggerServerEvent("kickPlayer",localPlayer, "Don't use animations") end end local animChecker = setTimer(checkPlayerDoingAnim, 350,0) -client addEvent("kickPlayer",true) addEventHandler("kickPlayer",resourceRoot, function(reason) if client then kickPlayer(client, reason) end end) -server
  4. Try updating your GPU, if that doesn't work, install DDU and uninstall your GPU driver and reinstall your driver Use this driver version to install after that DDU process: https://downloadmirror.intel.com/30196/a08/win64_15.40.5171.exe for your intel HD graphics, and https://www.amd.com/en/support/graphics/amd-radeon-r9-series/amd-radeon-r9-300-series/amd-radeon-r9-m375 > click "Windows 10 (64-bit) > download for your Radeon graphic
  5. hi @Nicolas Henriquee, I like your thoughts and I hope you can help MTA players soon,If you train yourself well in these matters, maybe one day you can become an MTA Staff, but remember, first of all, strengthen your knowledge regularly and help MTA players and try to solve the problems of MTA players correctly, all the help you can do on the MTA discord and forum side will work well for you. and as an extra, you don't have to be a staff, you can do it without being a staff, and if you continue to support the community, maybe you can become a "Helpers" Link : Helpers
  6. function disableNickChange() cancelEvent() end addEventHandler("onPlayerChangeNick",root,disableNickChange)
  7. server-side : -- server-side addEvent("onHeadLightsRotate", true) addEventHandler("onHeadLightsRotate", root, function(rx, ry, rz) local theVeh = getPedOccupiedVehicle(source) if theVeh then setVehicleComponentRotation(theVeh, "misc_a", rx, ry, rz) end end) client-side : -- client.lua local function headLightsOpen() local theVeh = getPedOccupiedVehicle(localPlayer) if theVeh then local rx, ry, rz = getVehicleComponentRotation(theVeh, "misc_a") rx = rx + 5 triggerServerEvent("onHeadLightsRotate", localPlayer, rx, ry, rz) end end local function headLightsClose() local theVeh = getPedOccupiedVehicle(localPlayer) if theVeh then local rx, ry, rz = getVehicleComponentRotation(theVeh, "misc_a") rx = rx - 5 triggerServerEvent("onHeadLightsRotate", localPlayer, rx, ry, rz) end end addCommandHandler("lamp1", headLightsOpen) addCommandHandler("lamp2", headLightsClose) Now, when a player triggers the "lamp1" or "lamp2" command, the client will send the updated rotation values to the server using the "onHeadLightsRotate" remote event. The server will then receive these values and update the vehicle component rotation for all players, ensuring that the rotation is synchronized across the network.
  8. Shady1

    Crash Problem!

    You're welcome.
  9. Shady1

    Crash Problem!

    Most MTA crashes are caused by something that the user can fix as it depends on their system, server selection or game mods.
  10. Shady1

    Crash Problem!

    Try downloading the latest version, which is likely to fix the problem.,You can download the latest version of MTA:SA, talk to the server owner, and upgrade the server if the server belongs to you. https://nightly.mtasa.com/
  11. başarılar dilerim, sunucunuzun görsellerine baktığımda harika ve eğlenceli zaman geçirilceğini anlıyorum.
  12. Shady1

    Crash Problem!

    You're welcome,If you have a question, tell me again and I'll help.
  13. Shady1

    Crash Problem!

    try it and see the result
  14. Shady1

    Crash Problem!

    You should check your models/scripts.
  15. <group name="VIP"> <object name="user.USERNAME"></object> </group>
  16. Shady1

    Crash Problem!

    hello welcome to MTA Forum i will give you an explanation about your problem. this would suggest out of memory and is due to mods you have installed. by the client having very low system RAM, or you are using models / content which is abusing the 32-bit process memory limit.
  17. you get a lot of errors so download GTA:SA and MTA:SA without mods and put it in a clean folder
  18. Shady1

    dxdrawtext

    same like : dxDrawText("Válassz egy játékmódot!", 0, s.y/2-100, s.x, 200, tocolor(255, 0, 0), 1.5, "rage", "center", "top", false, false, false, false) https://wiki.multitheftauto.com/wiki/DxDrawText
  19. https://community.multitheftauto.com/index.php?p=resources&s=details&id=12950
  20. https://forum.multitheftauto.com/topic/121873-vf-33-netlimit-killer-networking-control-center/#comment-970951 I have sent a link about your problem, you can check it and I suggest you to follow the necessary instructions, I hope you can solve this problem.
  21. Shady1

    dxdrawtext

    dxDrawText("Immortal Play - Admin Help", 0, s.y/2-100, s.x, 200, tocolor(0, 0, 0), 1, e:getFont("rage", 15), "center", "top");
  22. https://forum.multitheftauto.com/topic/22551-rel-stage-150-virtual-actors-and-camera-workshop/ I hope this is useful to you
  23. I will suggest some functions that can help you, you can script them with these functions. https://wiki.multitheftauto.com/wiki/IsObjectInACLGroup https://wiki.multitheftauto.com/wiki/SetPlayerHudComponentVisible https://wiki.multitheftauto.com/wiki/AddCommandHandler
  24. yaşadığınız sorun o sunucu ile alakalıdır, sunucu geliştiricileri hilecileri bir nevi önlemek için bu türde bir sistem yazmışlar,5 gün beklemelisiniz ya da o sunucu yöneticileriyle iletişime geçmelisiniz, bu ban MTA ilgili değildir, bu ban mta'daki giriş yaptığınız sunucu ile alakalıdır.
×
×
  • Create New...