Jump to content
  • 0

ban IGN with gm


Budots

Question


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

I have tried this script and its pretty working,

 

But my problem is, even my own ADMIN ACCOUNT will be jailed if i log in.

Can you help me that this script will take effect only on those normal accounts? not on gm accounts.

ban_gm_name.txt

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  66
  • Reputation:   1
  • Joined:  06/06/12
  • Last Seen:  

try this.

-	script	ban_gm_name	-1,{
OnPCLoginEvent:
if(getgmlevel() >=99) end;
.@name$ = strcharinfo(0);
if( compare( .@name$,"GM " ) || compare( .@name$,"Admin " ) ){
	mes "You will be jailed for using 'GM'/'Admin' within your name";
	sleep2 3500;
	atcommand "@jail "+.@name$;
	globalmes .@name$+" has been jailed for having 'GM'/'Admin' in their name.";
}
end;
}
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:  


- if( compare( .@name$,"GM " ) || compare( .@name$,"Admin " ) ){

+ if( !getgmlevel() && ( compare( .@name$,"GM " ) || compare( .@name$,"Admin " ) ) ) {

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:  

- if( compare( .@name$,"GM " ) || compare( .@name$,"Admin " ) ){
+ if( !getgmlevel() && ( compare( .@name$,"GM " ) || compare( .@name$,"Admin " ) ) ) {

Lemme try this sir,

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