AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Anticamp Source (https://forums.alliedmods.net/showthread.php?t=72094)

PStar 06-03-2008 13:48

Re: Anticamp Source
 
So if it is possibel it should work like this:
DE_ maps:
Quote:

CT:
-Camping is allowed if the bomb is dropped or the bomb hasn't been planted yet, otherwise camping is not allowed.
T:
-Camping is allowed if the bomb has been planted, otherwise camping is not allowed.
CS_ maps:
Quote:

CT:
-Camping is not allowed.
T:
-Camping is allowed

Molli 06-04-2008 10:34

Re: Anticamp Source
 
PStar got point.:up:

grif_ssa 06-30-2008 16:24

Re: Anticamp Source
 
if you are intereting, i modify it a little, couse i have fy_ maps
by default pluging allow camping for CS
by this little mod nobody can camp on not cs and not de maps

Quote:

new bool:g_bIsCsMap = false;
new bool:g_bIsTMap = false;
Quote:

// Check if de map or cs map else other (fy, aim, etc...)
g_bIsCsMap = g_bIsTMap = false;
if(FindEntityByClassname(-1, "func_hostage_rescue") != -1)
g_bIsCsMap = true;
else if(FindEntityByClassname(-1, "func_bomb_target") != -1)
g_bIsTMap = true;
Quote:

// Allow camping for t on cs maps
if(g_bIsCsMap && clientteam == 2 && GetConVarBool(g_CvarAllowTCamp))
{
return Plugin_Continue;
}

// Allow camping for ct on de maps
if(g_bIsTMap && clientteam == 3 && GetConVarBool(g_CvarAllowCtCamp))
{
return Plugin_Continue;
}

blade81 06-30-2008 17:24

Re: Anticamp Source
 
Nice thx.

ottobohn 06-30-2008 17:48

Re: Anticamp Source
 
U rock my socks.

otto
:mrgreen:

ottobohn 06-30-2008 17:52

Re: Anticamp Source
 
How hard is it to record your spawn location and ensure that you're X amount of ft away from that? I'd like to allow if you're cmaping in a certain zone that it'll beacon you if you're in spawn.

otto

BullsEye 08-24-2008 10:44

Re: Anticamp Source
 
Hello,
i have a little problem.
sm_anticamp_slap 5
"Amount of health decrease during camping every 2 sec."

When i cange this in a "0" and restart the server it will slap with 5 healthpoints AGAIN.
It doesn´t work
Can anyone help???

blade81 08-24-2008 13:54

Re: Anticamp Source
 
Quote:

Originally Posted by BullsEye (Post 674765)
Hello,
i have a little problem.
sm_anticamp_slap 5
"Amount of health decrease during camping every 2 sec."

When i cange this in a "0" and restart the server it will slap with 5 healthpoints AGAIN.
It doesn´t work
Can anyone help???

If you restart the server all cvars will be resettet to their default value, unless you put the commands in your server.cfg.

BullsEye 08-25-2008 12:31

Re: Anticamp Source
 
Hallo,
Thx for your fast answer.
But when I dont start the Server new it wil also not work.
Think that I a noob that I dont understand you.

Were in the server cfg have I do put in the command???
Under // CUSTUM

And what do i have to write there??

sm_anticamp_slap "0" or what???

I´m helpless

blade81 08-25-2008 14:35

Re: Anticamp Source
 
Add sm_anticamp_slap "0" in your sever.cfg and it should work without slapping.


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

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