Jump to content
  • 0

anti-gm name script


Budots

Question


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  535
  • Reputation:   23
  • Joined:  11/19/11
  • Last Seen:  

OnPCLoginEvent:
getmapxy(.@map$,.@x,.@y,0);
 
if(.@map$ != "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


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  202
  • Reputation:   2
  • Joined:  07/09/12
  • Last Seen:  

Not wkring ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

 

OnPCLoginEvent:
getmapxy(.@map$,.@x,.@y,0);
 
if(.@map$ != "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


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Wiki is always there to help you Basic_Scripting :P

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