Jump to content
  • 0

is it possible to use bindatcmd only for player?


Question

Posted

hi all as the title suggests I wanted to know if it was possible to use a command created with bindatcmd only for players that is if I create @ go2 I want to use it only with group 0 players, the gm etc will use the standard commands .... I can't I tried to do it but I can't .... thanks in advance for your help ..

2 answers to this question

Recommended Posts

  • 0
Posted

I have already tried to do so
bindatcmd "go2", strnpcinfo (3) + ":: Ongo2", 0,0;
and I also tried to change the last parameters
bindatcmd "go2", strnpcinfo (3) + ":: Ongo2", 1,1;
but when I try to use it also with the gm the command works for him too ......

 

oh thank you very much ^^ I was stuck!

 

  • 0
Posted (edited)
-	script	custom_go2	-1,{

	OnInit:
		bindatcmd "go2", strnpcinfo(3)+"::OnGo2",0,1;
	end;

	OnGo2:
		if (getgmlevel() > 0)
			dispbottom "For Player only !!";
		else
			warp "SavePoint",0,0;
	end;
}
			
		

Hi, use optional parameters

*bindatcmd "<command>","<NPC object name>::<event label>"{,<atcommand level>,<charcommand level>};

   
   
 
Edited by mR L

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