Jump to content
  • 0

About disabling certain commands!


Question

Posted

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 :)

3 answers to this question

Recommended Posts

Posted


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

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.

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

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