Raised This Month: $ Target: $400
 0% 

[CSS/CS:GO] Weapon Restrict


Post New Thread Reply   
 
Thread Tools Display Modes
Kammi_
AlliedModders Donor
Join Date: Dec 2007
Old 07-21-2010 , 10:54   Re: [CSS] Weapon Restrict
Reply With Quote #381

Quote:
Originally Posted by YouzAMenace View Post
Yes i just tested again and it is working fine for me. if you cant get it to work make sure "sm_perplayer_restrict" is set to 1

now it works fine with the new metamod but don't ask me why
__________________



Kammi_ is offline
Send a message via ICQ to Kammi_
eric0279
AlliedModders Donor
Join Date: May 2007
Old 07-23-2010 , 11:22   Re: [CSS] Weapon Restrict
Reply With Quote #382

Hello

and if you use the file adminmenu_custom.txt, how?

Cordially
eric0279 is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 07-24-2010 , 03:07   Re: [CSS] Weapon Restrict
Reply With Quote #383

*EDIT*

I had a problem with restrictedweapon.wav sound downloading to the clients, but now it's working.

Last edited by GrO; 07-24-2010 at 04:33.
GrO is offline
doa
Member
Join Date: Nov 2007
Old 07-28-2010 , 07:20   Re: [CSS] Weapon Restrict
Reply With Quote #384

I'm using sm_perplayer_restrict to disallow AWP when less then 8 players.

perplayerrestrict.txt:
Quote:
"AwpRestrict"
{
"awp"
{
"7" "0"
"8" "1"
}
}
But this seems to override the restict for specific maps where all weapons but pistols are restricted.

How can I make sure the pistol-only maps dont allow awp when the playercount hits 8?
__________________
-- Growing older is mandatory --
----- Growing up is optional -----
doa is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 07-28-2010 , 09:49   Re: [CSS] Weapon Restrict
Reply With Quote #385

Quote:
Originally Posted by doa View Post
I'm using sm_perplayer_restrict to disallow AWP when less then 8 players.

perplayerrestrict.txt:


But this seems to override the restict for specific maps where all weapons but pistols are restricted.

How can I make sure the pistol-only maps dont allow awp when the playercount hits 8?
Use map configs to disable the per player awp restrict and then restrict awp to 0 (in the config).

Last edited by Dr!fter; 07-28-2010 at 09:53.
Dr!fter is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 07-29-2010 , 09:38   Re: [CSS] Weapon Restrict
Reply With Quote #386

Quote:
Originally Posted by eric0279 View Post
Hello

and if you use the file adminmenu_custom.txt, how?

Cordially

bump pls
eric0279 is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 07-29-2010 , 14:21   Re: [CSS] Weapon Restrict
Reply With Quote #387

Quote:
Originally Posted by eric0279 View Post
Hello

and if you use the file adminmenu_custom.txt, how?

Cordially
What do you mean? You want to add something to the adminmenu? If so what?
Dr!fter is offline
Natalie
Junior Member
Join Date: May 2009
Old 07-29-2010 , 15:15   Re: [CSS] Weapon Restrict
Reply With Quote #388

Quote:
Originally Posted by YouzAMenace View Post
Or if he just wants it always to be 2 awps per team he can set it in weapon_restrict.cfg
Sorry been away and i just checked on this answer. how can i set it in weapon_restrict.cfg for actually 3 awps 3 autos per team? always?
i tried the awp restrict per player but its not working players can still buy awps every player

Last edited by Natalie; 07-29-2010 at 15:18.
Natalie is offline
Fujiwara
Member
Join Date: Jul 2010
Old 07-30-2010 , 13:45   Re: [CSS] Weapon Restrict
Reply With Quote #389

What is the code to restrict the c4 in the cfg?

sm_restrict_c4 "1" "-1" "0" ?????

Trying to block bomb usage for a surf server.
Fujiwara is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 07-30-2010 , 17:07   Re: [CSS] Weapon Restrict
Reply With Quote #390

Quote:
Originally Posted by Fujiwara View Post
What is the code to restrict the c4 in the cfg?

sm_restrict_c4 "1" "-1" "0" ?????

Trying to block bomb usage for a surf server.
Heha.. seems nobody not have seen this or used
Cvar sm_restrict_c4 "0" not actually restrict C4 bomb... It restrict defuser

Typo in ...scripting/restrictinc/commands_cvars.sp
Line 733
PHP Code:
public Cfour(Handle:cvar, const String:oldVal[], const String:newVal[])
{
    
decl String:f_Value[10];
    
GetConVarString(cvarf_Valuesizeof(f_Value));
    
    
HandleWeaponCvar("defuser"f_Value2oldValcvar);

- You can fix this yourself, change text "defuser" to "c4" and compile plugin.
- You can compile this plugin on your desktop, download and extract Sourcemod.
Add [CSS] Weapon Restrict scripting folder ...addons/sourcemod/scripting
Compile.exe and look plugin *.smx from ...scripting/compiled/ -folder
- command sm_restrict c4 0 works
__________________
Do not Private Message @me
Bacardi 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 02:14.


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