Jump to content
  • 0

help bindatcmd


rickzera

Question


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  51
  • Reputation:   3
  • Joined:  08/01/12
  • Last Seen:  

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

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 2

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

-	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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  37
  • Reputation:   3
  • Joined:  02/14/14
  • Last Seen:  

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.

Link to comment
Share on other sites

  • -2

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  51
  • Reputation:   3
  • Joined:  08/01/12
  • Last Seen:  

solved closed this topic please!

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