NeverUnbeatable

Members
  • Content count

    22
  • Joined

  • Last visited

Community Reputation

2 Neutral

About NeverUnbeatable

  • Rank
    Civilian
  1. It's resource from community. I don't really think this script is too hard for scripters and they didn't put much effort creating it. So don't be too right and try to help him or just don't answer.
  2. I use this method: local X,Y = guiGetScreenSize() local xReal = X/your screen X local yReal = Y/your screen Y -- example: local X,Y = guiGetScreenSize() local xReal = X/1366 -- my screen's X local yReal = Y/768 -- my screen's Y dxDrawText("text", xReal*683, yReal*384....) -- it will draw a text in the middle of your screen
  3. Thank you!
  4. I have a string "sometext*sometext". How to get "sometext" before symbol " * " and get "sometext" after this symbol?
  5. Thank you but I have already solved my problem and made solution!
  6. I want to use colors to send them in my function ProxDetector. But there are trg colors, idk how to define and use them. Maybe table and unpack?
  7. Hello, community! Can you help me? What is the best method to send RGB/HEX colors in function? function meChat(thePlayer, cmd, ...) ProxDetector(30, thePlayer, ..., color1, color2, color3, color4, color5) end addCommandHandler("do", meChat) function ProxDetector(radius, thePlayer, ..., color1) local text = table.concat({...}," ") local oldposx, oldposy, oldposz = getElementPosition(thePlayer) for k, v in pairs(getElementsByType("player")) do local posx, posy, posz = getElementPosition(v) if getElementDimension(v) == getElementDimension(thePlayer) then local getRadius = getDistanceBetweenPoints3D(oldposx, oldposy, oldposz, posx, posy, posz) if (getRadius < radius / 16) then outputChatBox(getPlayerName(thePlayer).." "..text, v, color1, false) elseif (getRadius < radius / 8) then outputChatBox(getPlayerName(thePlayer).." "..text, v, color2, false) elseif(getRadius < radius / 4) then outputChatBox(getPlayerName(thePlayer).." "..text, v, color3, false) elseif(getRadius < radius / 2) then outputChatBox(getPlayerName(thePlayer).." "..text, v, color4, false) elseif(getRadius < radius) then outputChatBox(getPlayerName(thePlayer).." "..text, v, color5, false) end end end return true end I tried something like COLOR_PURPLE = 0xC2A2DAAA and then convert in to RGB in outputchatBox function but it says that ")" expected near "," in function string.
  8. Nobody will make it for free. This forum is for helping newbies. Try to make it yourself and we will help you, fix your mistakes and etc.
  9. Похоже, что интересный сервер с реально гоночной атмосферой. Будет время - загляну.
  10. setTimer(setPlayerMuted, minutes*60000, 1, target, false) setPlayerMuted has only two arguments. Look https://wiki.multitheftauto.com/wiki/SetPlayerMuted So you have to make unmute with timer yourself.
  11. Didn't see. He gets team element from name. Sry.
  12. function open() playerTeam = getPlayerTeam ( hitElement ) Clann = getTeamFromName ("BOPE") if (playerTeam) == Clann then moveObject(gate, 2000, 1543.4000244141, -1619.0999755859, 15.89999961853 ) end end addEventHandler ( "onColShapeHit", zona, open ) Here you compare team element "playerTeam" with string "Clann". Try this: function open() playerTeam = getPlayerTeam ( source ) playerTeamName = getTeamName(playerTeam) Clann = getTeamFromName ("BOPE") if (playerTeamName == Clann) then moveObject(gate, 2000, 1543.4000244141, -1619.0999755859, 15.89999961853 ) end end addEventHandler ( "onColShapeHit", zona, open )
  13. Don't use leaked and opensource gamemodes. Sometimes they're hard coded or vice versa so you will never learn scripting editing them. Secondly, those gamemodes have unhandy structure(as for me) so I prefer to stage scripts like modules and take something from them.
  14. Element data is deleted when player quit.
  15. Use GeoIP tools: https://community.mtasa.com/index.php?p=resources&s=details&id=3685 But you need to edit this resource because function to get city works only for Russia. Good luck!