awesomazingxed Posted December 16, 2014 Posted December 16, 2014 Don't know what's wrong. Can anyone help me with this. - 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. Quote
Radian Posted December 16, 2014 Posted December 16, 2014 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; } Quote
Luciar Posted December 18, 2014 Posted December 18, 2014 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) Quote
15peaces Posted December 26, 2014 Posted December 26, 2014 (edited) nevermind... Edited December 26, 2014 by 15peaces Quote
Question
awesomazingxed
Don't know what's wrong. Can anyone help me with this.
Thank you in advance.
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.