Jump to content
  • 0

block Character creations that uses unauthorized names


Question

Posted (edited)

so I have this script for unauthorized names that log in,

-	script	UnauthorizedName	-1,{
    OnPCLoginEvent:
		if (!getgmlevel())
		{
			if(compare(strcharinfo(0),"GM") || compare(strcharinfo(0), "Admin"))
			{
				mes "^ff0000[ System ]^000000";
				mes "Illegal character name Detected.";
				mes "Character will be deleted";
				query_sql "DELETE FROM `char` WHERE `name` = '"+strcharinfo(0)+"'";
				sleep2 3000;
				atcommand "@kick " +strcharinfo(0);
			}
		}
        end;
}

 

What I want to know is, How do I block Character creations that uses unauthorized names?

Is it even possible ?

 

 

 

/thx  in advance 

Edited by Capuche
Change the title

1 answer to this question

Recommended Posts

Posted

add your checking on line 1524

        // Check Authorised letters/symbols in the name of the character
        if( char_name_option == 1 )

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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