AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [CSS] Block ServerCommand (https://forums.alliedmods.net/showthread.php?t=183765)

delachambre 04-26-2012 11:00

[CSS] Block ServerCommand
 
Hello,

I need a code for block all ServerCommand implanted in the map.

It's possible ?

Thanks in advance.

Sorry for my bad English, i'm French.

Bacardi 04-26-2012 11:14

Re: [CSS] Block ServerCommand
 
You could remove (or edit) map entyties example with stripper.
point_servercommand is what execute commands.

What is map name (or link)?

delachambre 04-26-2012 11:54

Re: [CSS] Block ServerCommand
 
The map is oviscity_r_03.

Dr. McKay 04-26-2012 12:47

Re: [CSS] Block ServerCommand
 
PHP Code:

stock KillServerCommands()
{
    new 
= -1;
    new 
entity 0;

    for (new 
0<= 16n++)
    {
        
entity FindEntityByClassname(i"point_servercommand");
        if (
IsValidEntity(entity))
        {
            
AcceptEntityInput(entity"Kill");
            
entity;
        }
        else
            break;
    }


Slightly modified version of this.

delachambre 04-26-2012 12:56

Re: [CSS] Block ServerCommand
 
Thanks

Bacardi 04-26-2012 13:13

Re: [CSS] Block ServerCommand
 
wtf... two logic_auto what both execute to point_servercommand
exit
map de_dust2
map oviscity_r_03

when this map start. :down:

Should slap that map developer in the face really hard with finger :nono:

Here Stripper config.
Remove all logic_auto and point_servercommand, not any usefull for those in this map.
...addons/stripper/maps/oviscity_r_03.cfg

Dr. McKay 04-26-2012 13:17

Re: [CSS] Block ServerCommand
 
What to the server commands do? Pointless chat spam?

Bacardi 04-26-2012 13:37

Re: [CSS] Block ServerCommand
 
Quote:

Originally Posted by Dr. McKay (Post 1696881)
What to the server commands do? Pointless chat spam?

Quote:

Originally Posted by Bacardi (Post 1696876)
exit
map de_dust2
map oviscity_r_03

when this map start. :down:

When this map run on server, first player who join server make game restart round.
At this time map execute command exit to shutdown server.
Or if some reason server not shutdown it try next map de_dust2 what "restart game" (kick all player out and map start).
And if de_dust2 map is invalid, it try last "restart game" with this current map kicking players out everytime.

*edit
Don't know is there different versions from same named map but this what I looked
http://www.2shared.com/file/_d9_rqge...?cau2=403tNull

GoD-Tony 04-26-2012 17:00

Re: [CSS] Block ServerCommand
 
Quote:

Originally Posted by Bacardi (Post 1696876)
wtf... two logic_auto what both execute to point_servercommand
exit
map de_dust2
map oviscity_r_03

when this map start. :down:

Should slap that map developer in the face really hard with finger :nono:

It looks like the author is trying to "protect" their map from being used on other servers. Basically it requires Stripper:Source with the proper configs to even run.

For those that are curious, it looks like this:
Code:

"classname" "logic_auto"
"OnMapSpawn" "hotel_owner,Command,exit,0,-1"
"OnMapSpawn" "hotel_owner,Command,map de_dust2,0,-1"
"OnMapSpawn" "hotel_owner,Command,map oviscity_r_03,0,-1"


TheAvengers2 04-26-2012 19:13

Re: [CSS] Block ServerCommand
 
If he's trying to protect the map then some features might not even be stored in the bsp. Meaning that even if you get it working, the map might not actually work completely. That's if he's real persistent and clever, though. :shock:


All times are GMT -4. The time now is 05:57.

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