Thread: Nicknames Issue
View Single Post
  #1  
Old 09-23-2011, 06:29 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Nicknames Issue

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?
__________________

Last edited by Emera; 09-23-2011 at 06:49 PM..
Reply With Quote