Jump to content
  • 0

bindatcmd problems


Skullz1

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  09/23/17
  • Last Seen:  

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.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

you want it to work for vip and gm only ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  09/23/17
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  09/23/17
  • Last Seen:  

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!

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