Jump to content
  • 0

is it possible to use bindatcmd only for player?


Valcars

Question


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  01/03/16
  • Last Seen:  

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

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  01/03/16
  • Last Seen:  

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!

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  177
  • Reputation:   25
  • Joined:  12/24/14
  • Last Seen:  

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