Jump to content

Element data problem


Anubhav

Recommended Posts

Hey everyone, I've a problem, but I dont get to find a solution.

I'm using Bonsai's Gamemode,

and I was editing it.

  
_getPlayerName = getPlayerName 
  
function getPlayerName( player ) 
    --outputChatBox("called") 
    local returnHere = _getPlayerName( player ) 
    if getElementData( player, "name2" ) then 
        outputChatBox('pro') 
        return getElementData( player, "name2" ) 
    end 
    return returnHere 
end 
  

I added this, code, but ONLY IN SOME RESOURCES it returns false. But in scoreboard ( onClientRender ), it just shows perfect.

Works on:

CCS ( works at server_side )

CCS_scoreboard (It was set here, it works )

CCS_killmessages (Just shows perfect)

CCS_rankingboard (Just shows perfect)

Any solutions?>

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...