Jump to content

Ted Claberling

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by Ted Claberling

  1. 14 minutes ago, Galactix said:
    
    function setNickToAccount()
      local account = getPlayerAccount(source)
      local accountName = getAccountName(account)
      setPlayerName(source, accountName)
    end
    addEventHandler("onPlayerLogin", setNickToAccount)
    

     

    Bad Arugment Error

  2. 44 minutes ago, Galactix said:
    
    function setNickToAccount
      local account= getPlayerAccount(source)
      local accountName = getAccountName(account)
      setPlayerName(source, accountName)
    end
    addEventHandler("onPlayerLogin", getRootElement(), setNickToAccount)
    

    Put this in any script and you should have the result expected.

    expected near local error

    
    function setNickToAccount
        local account = getPlayerAccount(source)
        local accountName = getAccountName(account)
        setPlayerName(source, accountName)
      end
      addEventHandler("onPlayerLogin", getRootElement(), setNickToAccount)
     
      addEventHandler("onPlayerChangeNick", getRootElement(), 
        function() 
            cancelEvent(); 
        end 
    );

    also it is whole the code

  3. Hi,
    I am using a login panel that player must give a username and password to it and Register then he/she can login.but my problem is his NickName in tab is what he set in MTA Settings
    i want it to be that name that he Registered with.
    ( my login panel use xml for save datas...)

  4. 2 hours ago, Dutchman101 said:

    This specific resource was suspended because it wasn't a true resource, just contained a bunch of paid links;

    6xpMWl4.png

    Violations of https://forum.multitheftauto.com/topic/98514-community-regulations-guidelines/ such as this (using revenue links to point to the actual script; in this case it even didn't tho) can lead to suspension or removal.

    @Ted Claberling

    well ok thank you, are u sure the whole code is just a adv spam?

    • Haha 1
×
×
  • Create New...