Jump to content
  • 0

Question

Posted

I would like to create a bind where he would check the level vip of the account and open the bind. I'm not getting can anyone help me do?

 

-	script	sampletest	-1,{
  if(getgroupid() < 1) goto nopremium;
OnInit:
	bindatcmd "sample",strnpcinfo(3)+"::OnAtcommand";
	close;
OnAtcommand:
	callfunc "sample1";
	end;
nopremium:
	callfunc "sample2";
	end;
}	

 

3 answers to this question

Recommended Posts

  • 2
Posted
-	script	Sample	-1,{
	OnInit:
		bindatcmd "sample",strnpcinfo(3)+"::OnAtcommand";
		end;
		
	OnAtcommand:
		if(getgroupid() < 1) {
			callfunc "sample2";
		}
		else {
			callfunc "sample1";
		}
		end;
}	

btw getgroupid aren't vip level.

  • Upvote 2
  • 0
Posted
5 hours ago, monkeydluffy said:

solved closed this topic please!

The guy gives you the answer and you don't have the ability to thank him or even click as the right answer and I liked the guy's answer, hopefully your next topic will not pay attention.

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