-
Posts
8 -
Joined
-
Last visited
Posts posted by Ted Claberling
-
-
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
-
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
-
20 minutes ago, Galactix said:
You need to modify the default scoreboard resource in order to replace the name shown by the actual name of the account used by the player.
can you explain more?
i need to add some code lines or i need to change some configs? -
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...) -
2 hours ago, Dutchman101 said:
This specific resource was suspended because it wasn't a true resource, just contained a bunch of paid links;
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?
- 1
-
well the compiled version of this resource is still in site but it has some bugs, they suspended open source version, why?
-
Resource suspended
This resource is closed for the public. This means you can't view the resource pages or download files from it..
How to setPlayerNick to Registered Nick?
in Scripting
Posted
tnx it fixed <3