[PLS HELP AND CO-OPERATE]Need 2 commands
#1

Hey All, i need two commands /disablecmd and /enablecmd for my server, Pls send me a fully functional code, I'll coperate with the one who helps me



Regards,
OmerKhan
Reply
#2

You mean a command to enabel other commands and a command to disable other commands?
or a command to disable/enable chat/things in game?, like /enable phone/chat..?
Reply
#3

There is so much more to this than just creating two simple commands to disable/enable certain commands.

In short, you will need to create a global variable for each command(unless you have some sophisticated command processor), then use those variables to create checks within your commands you wish to disable, returning 1 accordingly.
Reply
#4

I just need a /disbalecmd and /enablecmd for every cmd like


An admin disabled cmd "/ban".

If a players input that cmd he gets that msg, THis cmd is currently disabled


and same with enable, cmds work when an admin enables them

Regards,
Omer
Reply
#5

I made a really shitty filterscript a while ago that is still usable.

https://sampforum.blast.hk/showthread.php?tid=568459

You'll just need to change the commands 'blockcommand' and 'unblockcommand' to 'disable' and 'enable'.
Reply
#6

lmao far from shitty threshold, I didn't even think of doing it like that.. quite clever really.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)