Jump to content

IIYAMA

Moderators
  • Posts

    6,063
  • Joined

  • Last visited

  • Days Won

    208

Everything posted by IIYAMA

  1. updatd What don't you know?
  2. function makejump(plr) executeCommandHandler("mdestroy", plr) executeCommandHandler("mcreate", plr,1655) executeCommandHandler("rz", plr,-130) end addCommandHandler("mjump", makejump)
  3. IIYAMA

    String

    @#Mr.Pres[T]ege thx updated
  4. IIYAMA

    String

    You may not able to use the same password as the login name. Try this: function autoLogin() local cSerial = getPlayerSerial ( source ) local pass_1 = sha256 (cSerial ) local account = getAccount ( tostring(cSerial),pass_1) if account then logIn ( source, tostring(cSerial),pass_1) outputChatBox("Logged in successfully",source,255,255,255) else local pass_2 = sha256 (cSerial ) addAccount ( tostring(cSerial), pass_2) setTimer(function() if isElement(source) then logIn ( source, tostring(cSerial),pass_2) end end,2000,1) outputChatBox("Registered and logged in successfully",source,255,255,255) end end addEventHandler ( "onPlayerJoin", root, autoLogin )
  5. ah got it, fileSetPos omfg it does not support per line reading...
  6. https://wiki.multitheftauto.com/wiki/FileWrite int fileWrite ( file theFile, string string1 [, string string2, string string3 ...]) How can I write a line at a specific place and later overwrite it with another line of txt?
  7. also could not get it right explain? outputchatbox \/ you had not defined the function in parameter now try function ( source ) outputChatBox ("lol", 255, 255, 255, source, true) You don't have to define a source. (wiki mta) Btw there is always a source when an event got triggered, but it isn't always a player.
  8. dxDrawText(cv,(1205*(sw/1920))+(7*(sw/1920)),(((middle+116)*(sh/1080))+((28*(sh/1080))*(#playersWT-1)))+((28*(sh/1080))*(playersCount-1))+((28*(sh/1080))*(teamsi-1)),1418*(sw/1920),447*(sh/1080),tocolor(255,255,255,255),1.3*(sh/1080),"default","left","top",false,false,false) does not exist. to stop the error you can use: cv or " " But it probably does not solve your problem, because you have to find out why "cv" doesn't exist.
  9. Maybe it is handy to give him link of a table tutorial. http://lua-users.org/wiki/TablesTutorial
  10. updated, >outputChatBoxen(" ",player)
  11. function teleportarPlayer (player, CMD, targetName ) if not targetName then -- check if the player wrote down his target outputChatBox("pls fill in the player name.",player) else local target = getPlayerFromName (targetName ) -- the name is there, now get the player from the name. if not target then -- check if the name is valit outputChatBox("pls fill in the correct player name.",player) else local x,y,z = getElementPosition ( target ) setElementPosition ( player,x,y,z+1) --setElementPosition ( player, getElementPosition ( target )) -- you probably got stuck in him... end end end addCommandHandler ( "goto", teleportarPlayer )
  12. IIYAMA

    invisible :3

    np. good luck with your script.
  13. function getPlayerCountry(theP) myCountry = exports.admin:getPlayerCountry( thePlayer ) outputChatBox("This is my country: " .. myCountry,getRootElement()) end addCommandHandler("country", getPlayerCountry)
  14. it must be something with one of your resources.
  15. IIYAMA

    invisible :3

    https://wiki.multitheftauto.com/wiki/Se ... tagShowing ? addCommandHandler ("shownametag", function (player) setPlayerNametagShowing ( player,not isPlayerNametagShowing ( player )) end)
  16. you also have this lagg when you run none gamemode?
  17. removed. (reason: edited post before)
  18. yes, Read Client/server syntax 2 carefully. (wiki mta) server
  19. I don't know why, why don't you sort the table? and how many items do you have in there?
  20. succes met het leren er van.
  21. We hebben het hier over het gebruik van de resource door een admin(speler), niet of een resource admins rechten nodig heeft.
×
×
  • Create New...