SA-MP Forums Archive
[PLS HELP AND CO-OPERATE]Need 2 commands - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [PLS HELP AND CO-OPERATE]Need 2 commands (/showthread.php?tid=616530)



[PLS HELP AND CO-OPERATE]Need 2 commands - OmerKhan - 06.09.2016

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


Re: [PLS HELP AND CO-OPERATE]Need 2 commands - BrianS123 - 06.09.2016

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


Re: [PLS HELP AND CO-OPERATE]Need 2 commands - Killa[DGZ] - 06.09.2016

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.


Re: [PLS HELP AND CO-OPERATE]Need 2 commands - OmerKhan - 06.09.2016

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


Re: [PLS HELP AND CO-OPERATE]Need 2 commands - Threshold - 06.09.2016

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


Re: [PLS HELP AND CO-OPERATE]Need 2 commands - Killa[DGZ] - 06.09.2016

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