Jump to content
  • 0

Anti Fake GM doesn't work


Question

Posted

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. 

3 answers to this question

Recommended Posts

Posted

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;
}
Posted

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)

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