Jump to content

#1ERuPTiON

Members
  • Posts

    101
  • Joined

  • Last visited

Everything posted by #1ERuPTiON

  1. Hello, I have problem with triggering to client. I want to edit this random words script to Al3grab, instead of outputting to chatbox , i want it to use dxDrawText, as in my last post. I know you have to use clientRender, but I don't know how, when I try to do something, it still doesn't work or it only shows the text for 1 second. Server : function createCode(code,prize) for k,v in ipairs( getElementsByType("player") ) do exports.easytext:displayMessageForPlayer(v,1, "=========", wordTime, 0.07, 0.5, 0, 255, 0, 255, 1.6) exports.easytext:displayMessageForPlayer(v,2, "Word : "..code.."", wordTime, 0.07, 0.533, 255, 255, 0, 255, 1.6) exports.easytext:displayMessageForPlayer(v,3, "Prize : "..prize.."$", wordTime, 0.07, 0.563, 255, 255, 0, 255, 1.6) exports.easytext:displayMessageForPlayer(v,4, "=========", wordTime, 0.07, 0.593, 0, 255, 0, 255, 1.6) exports.easytext:displayMessageForPlayer(v,5, "Random Words", 0.07, 0.593, 0, 255, 0, 255, 1.6) end triggerClientEvent("dxDraw",getRootElement()) -- startCodeTimer() wordOn = true end Client : ( trying to make , need help with ) local screenWidth, screenHeight = guiGetScreenSize ( ) local playerX, playerY, playerZ = getElementPosition ( localPlayer ) function(createText) dxDrawText("Random Words - ", 5, 340, 255, 373, tocolor(0, 255, 0, 255), 1.20, "default-bold", "left", "top", false, false, true, false, false) dxDrawText("Enter the word shown below to win the prize.\nأدخل الكلمة في الشات لتحصل على الجائزة.", 5, 365, 256, 403, tocolor(255, 255, 0, 255), 1.10, "default-bold", "left", "top", false, false, true, false, false) dxDrawText("Word | الكلمة : "..code.."", 5, 405, 254, 433, tocolor(0, 255, 0, 255), 1.50, "default-bold", "left", "top", false, false, true, false, false) dxDrawText("Prize | الجائزة : "..prize.."$", 5, 435, 257, 464, tocolor(0, 255, 0, 255), 1.50, "default-bold", "left", "top", false, false, true, false, false) end function HandleTheRendering ( ) addEventHandler ( "onClientRender", root, createText ) end addEvent( "dxDraw", true ) addEventHandler( "dxDraw", localPlayer, createText ) What is the problem? I need help , i debugged it and says its not added client
  2. Yea , I always used guieditor, and I never saw that option haha -- lock
  3. I don't really understand this part... The word and the prize that shows below the chat .. If you saw the photo when you clicked on the link ..
  4. Type in the console : "openports" without quotes , and see if all three are open. MTA doesn't show your own server visible to you, so you have to just go find your ip, and paste it in the mta protool .. So lets say my server ip = 227.112.87.119 ( which it isn't ) , you type it in the bar far up , so lets say again if it was mines, I would type : mtasa://227.112.87.119:22003 ( depending on your ports ) NOTE : To other IP's it WILL be visible.
  5. Make sure you started scoreboard, and then again restarted the money resource. If that doesn't work, try this : exports [ "scoreboard" ]:addScoreboardColumn ( "Money", 3 ) function updatePlayersMoney ( ) for index, player in ipairs ( getElementsByType "player" ) do local money = getPlayerMoney ( player ) setElementData ( player, "Money", "$"..money ) end end setTimer ( updatePlayersMoney, 2500, 0 ) You forgot to add local money = getPlayerMoney ( player ) before setting the element data. You didn't specify "money"
  6. Yea this is what i need help on also .. dxDrawText , or Image
  7. #1ERuPTiON

    Question

    wtf ? You can put it : C:\Program Files (x86)\MTA San Andreas 1.3\server\mods\deathmatch\resources\[gamemodes] or even C:\Program Files (x86)\MTA San Andreas 1.3\server\mods\deathmatch\resources and on the command f8 or just the mta server type : start
  8. Bro did you think i saw it? No it was just a coincidence
  9. I recommend a like button to like a post if it works or not
  10. #1ERuPTiON

    /me

    How ? I tested it myself .. Make sure in the meta it says its a "server"
  11. #1ERuPTiON

    /me

    How ? I tested it myself .. Make sure in the meta it says its a "server function"
  12. Try to reinstall MTA Default Resources. http://code.google.com/p/mtasa-resource ... p&can=2&q=
  13. You seriously didn't have to make 3 posts about it. Use : https://wiki.multitheftauto.com/wiki/ExecuteSQLQuery ExecuteSQLQuery
  14. #1ERuPTiON

    /me

    Try this : onPlayerCommand may work .. ( tested ) ( Server Sided Function ) addEventHandler("onPlayerCommand",root, function(cmd) if cmd == "me" then cancelEvent() end end)
  15. Still doesn't answer my question; Does to many maps lag servers?
  16. Maps are resources, do to many of them cause lag on servers? I know it's mostly errors with using debugscript 3 but do maps lag also?
  17. mtasa://37.187.28.212:24553 Copying CSF Name ..
  18. You can't buy the rank, it's added into admin but when i click it , and when I'm the level it doesn't work .. It says "You are not the level" When i am .. I think there is problem with elementdata ... but there is no debug
  19. mtasa://91.215.156.71:22005 says name is [Gta-Ar][xXx] ? wtf my server name is [Eruption][xXx] .. They are copying my name of [xXx] .. My server is : mtasa://37.187.28.212:24263 You can see what server opened first
×
×
  • Create New...