Welcome to Open Carnage

A resource for Halo Custom Edition and MCC modding, with unique means of rewarding content creation and support. Have a wander to see why we're worth the time!

EST. 14th of February, 2012

Sign in to follow this  
Followers 0
CartmansPieHole

Renaming Players if Bad Words Detected In Name

I know, I have two topics on here on renaming players.  This one, is a little different.  The other topic, I'm just blindly renaming players.  THIS ONE, however...if the player's name (or any part of it) is found in a bad words table, I want to rename the player.

I think what I don't understand, is how to initially GET the player's name.  I might be able to figure out the rest.  I'm guessing PlayerIndex is just a numerical value assigned to each player's name, and not the actual name, itself.

 

Any help on getting the player's name?  Thanks.

Share this post


Link to post
Share on other sites

Tiddy-bits:

You can get the player's name using 

get_var(PlayerIndex, "$name")

 


08f9474ede.jpg

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0
  • Recently Browsing   0 members

    No registered users viewing this page.