Jump to content
  • 0

About disabling certain commands!


Santafe

Question


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  325
  • Reputation:   34
  • Joined:  06/01/13
  • Last Seen:  

Hey everyone,

 

Was just wondering if its possible for trans jobs to NOT use a certain command? just like class restriction is there a way to restrict a command for them? thanks in advance :)

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   381
  • Joined:  02/03/12
  • Last Seen:  


- script tran_res_cmd -1,{

OnCMD:

if( eaclass() & EAJL_UPPER )

message strcharinfo(0), "Transcendent jobs are not allowed this command.";

else

atcommand "@command";

end;

OnInit:

bindatcmd "command","tran_res_cmd::OnCMD";

}

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  164
  • Reputation:   55
  • Joined:  11/25/11
  • Last Seen:  

You would have to modify the source for that.

 

Maybe you can get creative with script command bindatcmd which does a class check before executing the requested atcommand.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  325
  • Reputation:   34
  • Joined:  06/01/13
  • Last Seen:  

-	script	tran_res_cmd	-1,{
OnCMD:
	if( eaclass() & EAJL_UPPER )
		message strcharinfo(0), "Transcendent jobs are not allowed this command.";
	else
		atcommand "@command";
	end;

OnInit:
	bindatcmd "command","tran_res_cmd::OnCMD";
}

 

THANKS ALOT SKORM <3

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