What happened to OC? - CLOSED Carnage?!
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
On 5/10/2020 at 4:28 PM, CartmansPieHole said:

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.

This script exists already.  Should be in the releases section.

Share this post


Link to post
Share on other sites
13 hours ago, Devieth said:

This script exists already.  Should be in the releases section.

Pretty sure he knows now since he interacted in my thread

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0
  • Recently Browsing   0 members

    No registered users viewing this page.