AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [CS:S] Restrict from PICK UP a weapon (https://forums.alliedmods.net/showthread.php?t=101626)

Halfux 08-25-2009 15:38

[CS:S] Restrict from PICK UP a weapon
 
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 :oops:

Halfux 08-25-2009 20:04

Re: [CS:S] Restrict from PICK UP a weapon
 
Hmmm... why no one help's ? ;(

Doc-Holiday 08-26-2009 02:47

Re: [CS:S] Restrict from PICK UP a weapon
 
Quote:

Originally Posted by Halfux (Post 912999)
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

Halfux 08-26-2009 11:21

Re: [CS:S] Restrict from PICK UP a weapon
 
Sry i don't know what to do with these word's :D i dont have anny scripting programs :/ or whatewer it need's :D

Halfux 08-26-2009 16:17

Re: [CS:S] Restrict from PICK UP a weapon
 
Why it's so quiet in here ? :/

Lethal- 08-26-2009 16:18

Re: [CS:S] Restrict from PICK UP a weapon
 
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.

Halfux 08-26-2009 18:47

Re: [CS:S] Restrict from PICK UP a weapon
 
I don't want that all weapons will be remowed (then people hawe to use glok's and usp's) :D lol :D I jus want that awp's and auto awp's will be removed :)

DaFox 08-27-2009 11:45

Re: [CS:S] Restrict from PICK UP a weapon
 
Quote:

Originally Posted by Halfux (Post 913892)
I don't want that all weapons will be remowed (then people hawe to use glok's and usp's) :D lol :D 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"



exvel 08-27-2009 11:47

Re: [CS:S] Restrict from PICK UP a weapon
 
http://forums.alliedmods.net/showthread.php?p=611885


All times are GMT -4. The time now is 03:51.

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