Jump to content
  • 0
Budots

anti-gm name script

Question

Hi guys,

 

I was alarmed when this happens to my server, there are players acting as GM or ADMINS by using names with GM, Admin etc on the 1st words on their character name.

 

Can someone provide me a script, that will NEGLECT or AUTOMATICALLY JAIL a normal player creating character names with GM , Administrator, Admin attached on it?

Sorry for my english

 

Hope you can help me guys . TY in advance

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

OnPCLoginEvent:
 
if([email protected]$ != "sec_pri" && getgmlevel() == 0) {
setarray .filter$[0],
"Admin",
"Game Master",
"[GM]",
"GM ";
for( set @i , 0 ; @i < getarraysize ( .filter$ ) ; set @i , @i + 1 )
if(compare(strcharinfo(0),.filter$[ @i ]))
{
atcommand "@jail "+strcharinfo(0);
end;
}
}

 

 

Edited by Dissidia
Link to comment
Share on other sites

 

OnPCLoginEvent:
 
if([email protected]$ != "sec_pri" && getgmlevel() == 0) {
setarray .filter$[0],
"Admin",
"Game Master",
"[GM]",
"GM ";
for( set @i , 0 ; @i < getarraysize ( .filter$ ) ; set @i , @i + 1 )
if(compare(strcharinfo(0),.filter$[ @i ]))
{
atcommand "@jail "+strcharinfo(0);
end;
}
}

 

 

 

Can you place this one to pastebin? Thanks a lot /no1

Link to comment
Share on other sites

Seriously, asking people to put those script on the pastebin is a bad habit. It's a matter of copy and paste. Help yourself bro -_-

Sorry sir Patskie, to tell you frankly im just new about scripting.

I just wanna ask if i'll just copy paste the above script then place it on trunk/npc/custom

Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.