• 0
Sign in to follow this  
Skullz1

bindatcmd problems

Question

Hey,

I'm having problems with bindatcmd in my NPC's while I'm creating new commands.

This command works for everyone (players, vip and GM):
bindatcmd "oracao",strnpcinfo(3)+"::OnAtcommand",0,99;

But when I change this command for that:
bindatcmd "oracao",strnpcinfo(3)+"::OnAtcommand",1,99;
It stops working correctly and works only for GM's.

All NPC's of mine are having the same problem, then I think is my emulator but I'm not sure.

How can I fix that?

Thanks!

 

PS: I'm using the newest version with refineui.
Sorry my bad English.

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

I need this working for VIP, not normal player, only VIP's.

Share this post


Link to post
Share on other sites
  • 0
bindatcmd "oracao",strnpcinfo(3)+"::OnAtcommand",0,99;

OnAtcommand:
	if(vip_status(VIP_STATUS_ACTIVE)){
		//your script
	}else{
		message strcharinfo(0),"this command only for vip!.";
	}
end;

try like this

Edited by sader1992
  • Like 1

Share this post


Link to post
Share on other sites
  • 0
7 minutes ago, sader1992 said:
bindatcmd "oracao",strnpcinfo(3)+"::OnAtcommand",0,99;

OnAtcommand:
	if(vip_status(VIP_STATUS_ACTIVE)){
		//your script
	}
end;

try like this

Didn't work because I'm not using de VIP emulator.
I programmed my own VIP system.
I'll fix this manually putting conditions comparing my groupid :)

Thank you for helping me!

Share this post


Link to post
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.

Sign in to follow this