Jump to content
  • 0

Anti Fake GM doesn't work


awesomazingxed

Question


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  95
  • Reputation:   0
  • Joined:  10/24/14
  • Last Seen:  

Don't know what's wrong. Can anyone help me with this. 

 

xoe3o2.png

-	script	GMNAmes	-1,{
     
	OnPCLoginEvent:
	if(getgroupid() >= 50 ) 
	end;
	set .Yourname$,strcharinfo(0);
	setarray .GmNames$[0],"GM","Admin","Staff","Police","P0lice","AwesomazingRO","AwesomazingR0","Juan";
	for( set .x, 0; .x < getarraysize(.GmNames$); set .x, .x +1)
	if(compare(.Yourname$,.GmNames$[.x])) {
	mes "Are you trying to be Fake GM?";
	mes "You Automatic Kick From Server";
	sleep2 3000;
	atcommand "@kick "+strcharinfo(0);
	end;
}
	percentheal 100,100;
	end;
}

Thank you in advance. 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

Try this. as far as I know getgroupid() was changed into getgmlevel() http://rathena.org/board/topic/58877-r15572-new-gm-commands-permissions-system/

-	script	GMNAmes	-1,{
     
	OnPCLoginEvent:
	if(getgmlevel() >= 50 ) 
	end;
	set .Yourname$,strcharinfo(0);
	setarray .GmNames$[0],"GM","Admin","Staff","Police","P0lice","AwesomazingRO","AwesomazingR0","Juan";
	for( set .x, 0; .x < getarraysize(.GmNames$); set .x, .x +1)
	if(compare(.Yourname$,.GmNames$[.x])) {
	mes "Are you trying to be Fake GM?";
	mes "You Automatic Kick From Server";
	sleep2 3000;
	atcommand "@kick "+strcharinfo(0);
	end;
}
	percentheal 100,100;
	end;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  177
  • Reputation:   21
  • Joined:  01/31/12
  • Last Seen:  

Getgroupid is a separate script command. It returns the actual ID number of the attached player's group. GM level is separate.

There is no ( ) mismatch in the script you posted. Are you running an updated revision of rAthena since the group change? (Post Here)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  142
  • Reputation:   8
  • Joined:  02/11/13
  • Last Seen:  

nevermind...

Edited by 15peaces
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...