I am using a custom nickname GANI on Lexia, and I obviously need to disable nicknames using
disablefeatures. Here is what I am doing.
PHP Code:
//#CLIENTSIDE
function onCreated() {
enablefeatures(allfeatures - 0x200); //Disable Nickname
}
I am having one small issue though. When the player dies, it for some reason returns the functionality of default nickname showing, and shows the nickname over the custom nickname I am using. Is there any way to resolve this?
Could I do something like...
PHP Code:
//#CLIENTSIDE
function onCreated() {
setTimer(0.05);
}
function onTimeout() {
if (player.hp == 0) { //Player is dead
enablefeatures(allfeatures - 0x200);
}
setTimer(0.05);
}
EDIT: The issue is whenever I respawn from being dead, it resets it back to the default. Is there any way to detect if a player's hearts changes from 0 to 3 or above?