Raised This Month: $ Target: $400
 0% 

[Req] Block map change if not in the list


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TeddiBer
Senior Member
Join Date: Oct 2011
Old 05-26-2013 , 07:49   [Req] Block map change if not in the list
Reply With Quote #1

Hey,
I need a plugin that will block admins+console from changing to a map that is not
in the list of "maps.ini"
TeddiBer is offline
driger38
Senior Member
Join Date: Apr 2011
Old 05-27-2013 , 09:48   Re: [Req] Block map change if not in the list
Reply With Quote #2

Why not just delete it from "maps" folder. has same function
driger38 is offline
Cheezpuff
BANNED
Join Date: Oct 2012
Location: City of the Dead
Old 05-27-2013 , 22:58   Re: [Req] Block map change if not in the list
Reply With Quote #3

delete* it from maps.ini | mapcycle.txt

which map, do u want.

or just delete adminvote.

Last edited by Cheezpuff; 05-27-2013 at 22:59.
Cheezpuff is offline
Send a message via Skype™ to Cheezpuff
driger38
Senior Member
Join Date: Apr 2011
Old 05-28-2013 , 05:12   Re: [Req] Block map change if not in the list
Reply With Quote #4

Deleting map from maps.ini will still let admins to change to this map, if it is on maps folder...
driger38 is offline
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 05-28-2013 , 07:04   Re: [Req] Block map change if not in the list
Reply With Quote #5

Just a tip, I guess it's possible with editing admincmd cmdMap function.

Good luck
Moody92 is offline
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 05-28-2013 , 09:14   Re: [Req] Block map change if not in the list
Reply With Quote #6

Quote:
Originally Posted by Moody92 View Post
Just a tip, I guess it's possible with editing admincmd cmdMap function.

Good luck
Doesn't really require that.

Just use this.
IMPORTANT!!!:
You must put plugin name before admincmd.amxx, otherwise, plugin won't work!
Code:
// This should work
block_change_no_maps_ini.amxx
admincmd.amxx

// this is invalid
admincmd.amxx
block_change_no_maps_ini.amxx

// also this is invalid
admincmd.amxx
bla.amxx
bla2.amxx
....
...
...
block_change_no_maps_ini.amxx
Attached Files
File Type: sma Get Plugin or Get Source (block_change_no_maps_ini.sma - 629 views - 1.3 KB)
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.

Last edited by pokemonmaster; 05-28-2013 at 09:16.
pokemonmaster is offline
TeddiBer
Senior Member
Join Date: Oct 2011
Old 05-28-2013 , 13:54   Re: [Req] Block map change if not in the list
Reply With Quote #7

Quote:
Originally Posted by pokemonmaster View Post
Doesn't really require that.

Just use this.
IMPORTANT!!!:
You must put plugin name before admincmd.amxx, otherwise, plugin won't work!
Code:
// This should work
block_change_no_maps_ini.amxx
admincmd.amxx

// this is invalid
admincmd.amxx
block_change_no_maps_ini.amxx

// also this is invalid
admincmd.amxx
bla.amxx
bla2.amxx
....
...
...
block_change_no_maps_ini.amxx
Thank you,
But because i'm not home right now i can't test it, i have 2 questions:
1. Is it supporting all maps letters (capital letters/small letters) exmaple: de_dust2 / dE_dUst2
2. Is it working on amx_votemap too ?
TeddiBer is offline
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 05-28-2013 , 14:50   Re: [Req] Block map change if not in the list
Reply With Quote #8

I think this would work
Attached Files
File Type: sma Get Plugin or Get Source (block_change_no_maps_ini.sma - 657 views - 2.0 KB)
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-28-2013 , 23:20   Re: [Req] Block map change if not in the list
Reply With Quote #9

Quote:
Originally Posted by TeddiBer View Post
Thank you,
But because i'm not home right now i can't test it, i have 2 questions:
1. Is it supporting all maps letters (capital letters/small letters) exmaple: de_dust2 / dE_dUst2
2. Is it working on amx_votemap too ?
You should never have two maps that have exactly the same spelling but with different cases. In Windows, they are the same thing. So, all maps should be all lower case.
__________________
fysiks is offline
TeddiBer
Senior Member
Join Date: Oct 2011
Old 05-29-2013 , 06:12   Re: [Req] Block map change if not in the list
Reply With Quote #10

Quote:
Originally Posted by fysiks View Post
You should never have two maps that have exactly the same spelling but with different cases. In Windows, they are the same thing. So, all maps should be all lower case.
I don't think that you understood me.
I meant that if there's a map that named de_dust2 in maps.ini
So if admin will do "amx_map De_Dust2" it should detect the map if it's in the maps.ini ?
I mean, it should detect it as de_dust2 ?
TeddiBer is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode