Raised This Month: $51 Target: $400
 12% 

[CSS/CS:GO] Weapon Restrict


Post New Thread Reply   
 
Thread Tools Display Modes
Mike69999
New Member
Join Date: Apr 2011
Old 01-14-2012 , 03:56   Re: [CSS] Weapon Restrict (Beta 3.0 is here!)
Reply With Quote #931

Thank you Dr!fter,

i will try to modify it.

Regards,
Mik3
Mike69999 is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 01-14-2012 , 10:40   Re: [CSS] Weapon Restrict (Beta 3.0 is here!)
Reply With Quote #932

Quote:
Originally Posted by Mike69999 View Post
Thank you Dr!fter,

i will try to modify it.

Regards,
Mik3
What version are you running? If you are running 3.0 you can do it without modifying quiet quickly.

PHP Code:
#include <sourcemod>
#include <css_weapons>
#include <restrict>
#pragma semicolon 1

#define PLUGIN_VERSION "1.0"

new bool:g_bIsWarmup false;

public 
Restrict_OnWarmupStart_Post()
{
    
g_bIsWarmup true;
}
public 
Restrict_OnWarmupEnd_Post()
{
    
g_bIsWarmup false;
}
public 
Action:Restrict_OnCanPickupWeapon(clientteamWeaponID:id, &bool:result)
{
    if(
g_bIsWarmup && id == WEAPON_KNIFE)
    {
        
result false;
        return 
Plugin_Changed;
    }
    return 
Plugin_Continue;

Something like that in a new plugin should work fine if you are using the beta. If your using stable you will need to change the source since it dosnt have any natives or forwards. (just remember you need the 2 includes that come with weapon restrict beta to compile)

Last edited by Dr!fter; 01-14-2012 at 10:41.
Dr!fter is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 01-20-2012 , 17:01   Re: [CSS] Weapon Restrict (3.0 is here!)
Reply With Quote #933

3.0.5 Has now officially been released. See first post for all the details!

Some addon plugins im currently working on.

Advanced Warmup
Restrict Ban (allows restricting weapons by steam id)

If anyone uses any of the natives/forwards provided in this plugin feel free to post a link here!

Last edited by Dr!fter; 01-20-2012 at 17:01.
Dr!fter is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 01-20-2012 , 17:43   Re: [CSS] Weapon Restrict (3.0 is here!)
Reply With Quote #934

Thanks Dr!fter

The Restrict Ban plugin sounds like it will be very useful.

Last edited by TnTSCS; 01-20-2012 at 17:44.
TnTSCS is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-21-2012 , 13:34   Re: [CSS] Weapon Restrict
Reply With Quote #935

Quote:
Originally Posted by TnTSCS View Post
confirmed - "buy weaponawp" allows a player to buy it when it supposed to be restricted.
Quote:
Originally Posted by Bacardi View Post
Guess what... this works also. God dam valve
Code:
buy asdsadawpasdsadas
Has this been fixed in game now ??
I mean without any this or any plugins ??
I tried and not give weapon when use extra letters
__________________
Do not Private Message @me
Bacardi is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 01-21-2012 , 16:09   Re: [CSS] Weapon Restrict (3.0 is here!)
Reply With Quote #936

Last time i tried it worked. I fixed it in 3.0 afaik Could be that valve did fix it idk though.

Last edited by Dr!fter; 01-21-2012 at 16:15.
Dr!fter is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 01-23-2012 , 20:08   Re: [CSS] Weapon Restrict (3.0 is here!)
Reply With Quote #937

I think I've found a bug in v3.0.5 with Special Rounds (Knives Round - tested, Pistols Round - not tested yet):

- setting a Knives Round on AWP_ map makes 2 next rounds Knives only for real (not just one)
- setting another Knives Round few rounds later makes 3 next rounds Knives only (not just one again) etc...
- every last Knives Round prints weird info:

Quote:
[SM] AWP is currently restricted to -1 for Terrorists (or CT) and cannot be picked up.
My regular config:
Spoiler


My awp_.cfg map config:
Code:
sm_perplayer_restrict "0"
sm_unrestrict awp
GrO is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 01-23-2012 , 23:28   Re: [CSS] Weapon Restrict (3.0 is here!)
Reply With Quote #938

I will have a look as soon as I can
Dr!fter is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 01-24-2012 , 08:49   Re: [CSS] Weapon Restrict (3.0 is here!)
Reply With Quote #939

Error log:
Spoiler
GrO is offline
FunKillerClan
Junior Member
Join Date: Nov 2009
Location: Germany
Old 01-25-2012 , 04:55   Re: [CSS] Weapon Restrict (3.0 is here!)
Reply With Quote #940

Hello

Is it possible to lock weapons on specific maps ?
FunKillerClan 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 00:25.


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