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

[CS:S] Restrict from PICK UP a weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Halfux
Junior Member
Join Date: Aug 2009
Location: Lithuania
Old 08-25-2009 , 15:38   [CS:S] Restrict from PICK UP a weapon
Reply With Quote #1

Hello . I know that a lot of people hates player's with AWP's and auto rifles in their hand's , I hate them to , so am looking for a plugin that's not just restrict's a weapon from buing it , but and from PICKING IT UP FROM THE GROWND to (talking about surf server's) . If someone does know where to get that plugin plz post link here . And if no one does not know where to get that plugin , then can someone make it for me and a lot's lot's of css server admin's. I know that lot's of people think's same to p.s Wery wery sorry for my eanglish
Halfux is offline
Send a message via Skype™ to Halfux
Halfux
Junior Member
Join Date: Aug 2009
Location: Lithuania
Old 08-25-2009 , 20:04   Re: [CS:S] Restrict from PICK UP a weapon
Reply With Quote #2

Hmmm... why no one help's ? ;(
Halfux is offline
Send a message via Skype™ to Halfux
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 08-26-2009 , 02:47   Re: [CS:S] Restrict from PICK UP a weapon
Reply With Quote #3

Quote:
Originally Posted by Halfux View Post
Hmmm... why no one help's ? ;(

Honestly have no idea if this will even work but maybe some one will see and fix code

PHP Code:
#include <sourcemod>
#include <hacks>
new restric INVALID_HANDLE;
new 
g_iHooks[MAXPLAYERS 1] = { -1, ... };

public 
Plugin:myinfo =
{
 
name "Hacks Test",
 
author "Knagg0",
 
description "",
 
version "1.0.0.0",
 
url "http://www.mfzb.de"
};

public 
OnPluginStart()
{
 
restric CreateConVar("no_pickup""awp");
}

public 
OnClientPutInServer(client)
{
 
g_iHooks[client] = Hacks_Hook(clientHACKS_HTYPE_WEAPON_CANUSEWeapon_CanUsefalse);
}

public 
OnClientDisconnect(client)
{
 
Hacks_Unhook(g_iHooks[client]);
}

public 
Weapon_CanUse(clientweapondummy1dummy2dummy3dummy4)
{
 new 
String:sBuffer[50];
 new 
Wep_restric GetConVarString(restricsBuffersizeof(sBuffer));
 
 if(
weapon != && GetEdictClassname(weaponsBuffersizeof(sBuffer)))
 {
  
// Can't pickup deagle
  
if(StrContains(Wep_RestricsBuffer))
   return 
0;
 }
 
 return 
Hacks_Continue;



It uses hacks extention
Doc-Holiday is offline
Halfux
Junior Member
Join Date: Aug 2009
Location: Lithuania
Old 08-26-2009 , 11:21   Re: [CS:S] Restrict from PICK UP a weapon
Reply With Quote #4

Sry i don't know what to do with these word's i dont have anny scripting programs :/ or whatewer it need's
Halfux is offline
Send a message via Skype™ to Halfux
Halfux
Junior Member
Join Date: Aug 2009
Location: Lithuania
Old 08-26-2009 , 16:17   Re: [CS:S] Restrict from PICK UP a weapon
Reply With Quote #5

Why it's so quiet in here ? :/
Halfux is offline
Send a message via Skype™ to Halfux
Lethal-
Member
Join Date: Jun 2009
Old 08-26-2009 , 16:18   Re: [CS:S] Restrict from PICK UP a weapon
Reply With Quote #6

I don't know how to write it, but for the purpose you mentioned it would be better to have a script which removes all the weapons from the map.
Lethal- is offline
Halfux
Junior Member
Join Date: Aug 2009
Location: Lithuania
Old 08-26-2009 , 18:47   Re: [CS:S] Restrict from PICK UP a weapon
Reply With Quote #7

I don't want that all weapons will be remowed (then people hawe to use glok's and usp's) lol I jus want that awp's and auto awp's will be removed
Halfux is offline
Send a message via Skype™ to Halfux
DaFox
Senior Member
Join Date: Mar 2005
Old 08-27-2009 , 11:45   Re: [CS:S] Restrict from PICK UP a weapon
Reply With Quote #8

Quote:
Originally Posted by Halfux View Post
I don't want that all weapons will be remowed (then people hawe to use glok's and usp's) lol I jus want that awp's and auto awp's will be removed
Use Stripper:Source

http://www.bailopan.net/stripper/

In:
addons/stripper/global_filters.cfg

PHP Code:
filter:
{
"classname" "weapon_g3sg1"
}
{
"classname" "weapon_sg550"
}
{
"classname" "weapon_awp"

__________________
Quote:
Originally Posted by Peoples Army
your from Finland? what country is that in?
DaFox is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 08-27-2009 , 11:47   Re: [CS:S] Restrict from PICK UP a weapon
Reply With Quote #9

http://forums.alliedmods.net/showthread.php?p=611885
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
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 04:57.


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