Skullz1 Posted October 13, 2017 Posted October 13, 2017 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. Quote
0 sader1992 Posted October 13, 2017 Posted October 13, 2017 you want it to work for vip and gm only ? Quote
0 Skullz1 Posted October 13, 2017 Author Posted October 13, 2017 I need this working for VIP, not normal player, only VIP's. Quote
0 sader1992 Posted October 13, 2017 Posted October 13, 2017 (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 October 13, 2017 by sader1992 1 Quote
0 Skullz1 Posted October 13, 2017 Author Posted October 13, 2017 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! Quote
Question
Skullz1
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.