Jump to content

Help Needed


justn

Recommended Posts

Posted

Hi, how do i get if the player has a color code ? and if he does, then remove it.. :P Thanks.

Datastore - Store data to a database quickly. (Useful for saving scripted tables)

Posted
  
local NameWithoutString, Counts = string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", "") 
if Counts == 0 then 
outputChatBox("No Color codes found!", player,255,255,255,true) 
outputChatBox("Your name without color codes: "..NameWithoutString, player,255,255,255,true) 
end 
  

My ingame nick is ~HyPeX~

BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager

gKhdyRJ.png

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...