Jump to content
  • 0

bindatcmd problems


Question

Posted

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.

4 answers to this question

Recommended Posts

  • 0
Posted (edited)
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
  • 0
Posted
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!

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