Jump to content
  • 0

Question

Posted

How can I prevent players from creating a characters in the name of "GM"

Example : GM.name , GMname , GM-name , GM name , GM!name

I do not want players to create characters in the name of "gm"

please help and thx

---

where are you ?

7 answers to this question

Recommended Posts

Posted

I doubt there's a way to do so.. unless you disable letters G-M when creating a character. The only way I can find a solution for this is if you tell your players that your GMs are separated with lets say <GM> [Name]. Thus, players who are named GMname are fake and scammers.

Posted

just make a announce.. put all the GM team on same guild.. ex: [GM] GameMaster << [GM] will be the emblem.. other than that guild member is a scammer :D i do that on my previous server :P

Posted

you can try something this like...but still it is not a good way to do so..since player's name might come with those word without any intention to act as "GM"


OnPCLoginEvent:
if( compare( strcharinfo(0),"[GM]" ) ){
mes "Sorry you cant add any form of '[GM]' in your name.";
sleep2 5000;
atcommand "@kick "+strcharinfo(0);
}
end;

  • 1
Posted
Index: char/char.c
===================================================================
--- char/char.c (revision 16496)
+++ char/char.c (working copy)
@@ -1322,6 +1322,8 @@
 }
 if( Sql_NumRows(sql_handle) > 0 )
 return -1; // name already exists
+ if (strstr(name, "GM"))
+ return -2;

 return 0;
}

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