AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:GO] False Map Blocker (https://forums.alliedmods.net/showthread.php?t=342163)

Swolly 03-13-2023 07:53

[CS:GO] False Map Blocker
 
2 Attachment(s)
Did you type "!map example" and open a map with the same name that you don't want opened?
This plugin prevents it from opening when you try to open a map with the same name.

For example, when you type "!map son", if there is a map containing more than one "son" word, it gives them to a menu and opens the selected map.


https://plugincim.com/images/pluginler/370.png

Bacardi 03-13-2023 09:34

Re: [CS:GO] False Map Blocker
 
...source code use file, what not exist
PHP Code:

#include <plugincim.com> 

...plugin listen sm_map command, but have own admin check.
PHP Code:

...

if(
GetUserFlagBits(client) & ADMFLAG_ROOT || GetUserFlagBits(client) & ADMFLAG_GENERIC || GetUserFlagBits(client) & ADMFLAG_CHANGEMAP)    

... 


SourceMod basecommands sm_map use FindMap.
But this plugin read maps from directory "maps".


meh.

Swolly 03-13-2023 10:30

Re: [CS:GO] False Map Blocker
 
Quote:

Originally Posted by Bacardi (Post 2801151)
...source code use file, what not exist
PHP Code:

#include <plugincim.com> 

...plugin listen sm_map command, but have own admin check.
PHP Code:

...

if(
GetUserFlagBits(client) & ADMFLAG_ROOT || GetUserFlagBits(client) & ADMFLAG_GENERIC || GetUserFlagBits(client) & ADMFLAG_CHANGEMAP)    

... 


SourceMod basecommands sm_map use FindMap.
But this plugin read maps from directory "maps".


meh.

Fixed flag and include file.

r14170 03-16-2023 23:29

Re: [CS:GO] False Map Blocker
 
Very nice! Awesome work!

I needed this :)

Grey83 03-17-2023 06:54

Re: [CS:GO] False Map Blocker
 
1 Attachment(s)
I think this would be a much better option.

foxsay 03-18-2023 08:31

Re: [CS:GO] False Map Blocker
 
great idea, happens often with me :D


All times are GMT -4. The time now is 19:20.

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