How to block some commands on a Specific map?
On kz_longjumps2 // kzlt_weridjumps and longjumps maps, I want to block commans like " pro15 / top15 / nub15 " from kreedz plugin
BECAUSE i have an PLUGIN, that when you type this commands, will show another records... IT's Possible? THANKS. |
Re: How to block some commands on a Specific map?
Quote:
|
Re: How to block some commands on a Specific map?
Quote:
|
Re: How to block some commands on a Specific map?
This an Example to block The Buy Commands command:
PHP Code:
|
Re: How to block some commands on a Specific map?
PHP Code:
|
Re: How to block some commands on a Specific map?
I think its better to make the loop in the plugin_init , and if map is equal to the list , set any boolean in true , or register the clcmds.
|
Re: How to block some commands on a Specific map?
Quote:
|
Re: How to block some commands on a Specific map?
Quote:
|
Re: How to block some commands on a Specific map?
Quote:
Quote:
|
Re: How to block some commands on a Specific map?
Test This:
PHP Code:
|
Re: How to block some commands on a Specific map?
Quote:
|
Re: How to block some commands on a Specific map?
Quote:
|
Re: How to block some commands on a Specific map?
PHP Code:
|
Re: How to block some commands on a Specific map?
Quote:
maybe i need delete this commands in kreedz plugin and compile it with another name and enable it only for longjumps maps |
Re: How to block some commands on a Specific map?
BUT would be nice if
Quote:
but i tried and not working :( |
Re: How to block some commands on a Specific map?
Quote:
|
Re: How to block some commands on a Specific map?
Quote:
|
Re: How to block some commands on a Specific map?
Quote:
|
Re: How to block some commands on a Specific map?
The first solution is the solution given by Exolent :
- Create a "maps" folder in ./configs/. - Put the plugin which block the command in plugins-mapname.ini (replace mapname by map's name). - Put plugins-mapname.ini in ./configs/maps/ The second solution is this one : Code:
and put this plugin above kz plugin. As far as I know, the first solution is better. |
Re: How to block some commands on a Specific map?
Devil almost had it right.
Code:
A plugin checking the map is actually the only solution because it has to be put at the top of the plugins.ini. You can't set it at the top with per-map plugins.ini files. |
Re: How to block some commands on a Specific map?
Quote:
Oh Yes finally it work. THANK YOU ALL! |
Re: How to block some commands on a Specific map?
I also tried to add more commands to block, but i get 6 warnings when I compile
Quote:
Warning: Loose indentation on line 20 Warning: Loose indentation on line 22 Warning: Loose indentation on line 23 Warning: Loose indentation on line 25 Warning: Loose indentation on line 26 Warning: Loose indentation on line 31 but still working.. just want to know why i get warns |
Re: How to block some commands on a Specific map?
Simple warnings, you can ignore them.
|
Re: How to block some commands on a Specific map?
Quote:
|
Re: How to block some commands on a Specific map?
I'm Sorry A little error
It Work Now Code:
|
Re: How to block some commands on a Specific map?
Quote:
Quote:
|
Re: How to block some commands on a Specific map?
|
Re: How to block some commands on a Specific map?
|
Re: How to block some commands on a Specific map?
Xvil, your code is a bad method of going about this type of plugin.
That is why people are saying "Oh god, why" to your code. What I posted (the edit of Devil's code) is the best method in the thread. |
Re: How to block some commands on a Specific map?
Anyway Xvil, its good that you try to help someone but when someone veteran member post the code what looks so great, then i think update/write your code is too useless. :)
No hard Feelings.. |
Re: How to block some commands on a Specific map?
Quote:
but i like helping the others because I'm teaching and Learning in the same time |
Re: How to block some commands on a Specific map?
Quote:
And also same things happen to me :):crab: |
Re: How to block some commands on a Specific map?
Quote:
|
Re: How to block some commands on a Specific map?
Quote:
|
Re: How to block some commands on a Specific map?
Guys, I need help again......
the code is working, just fine, but you can type /menu and then choose top 15.. How to create a menu that will work only on specific maps? |
Re: How to block some commands on a Specific map?
Quote:
If you want to block a single option in a menu then you need to edit the menu's code. |
Re: How to block some commands on a Specific map?
Quote:
I DON'T KNOW HOW TO! |
Re: How to block some commands on a Specific map?
Quote:
|
All times are GMT -4. The time now is 22:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.