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

NO WEAPON PICK UP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
s3rserii
Senior Member
Join Date: Jan 2010
Old 04-12-2011 , 05:30   NO WEAPON PICK UP
Reply With Quote #1

Hey,
i cant find a plugin like that.. :/

+ The Terrorists can Pick up NADES and the C4
- The Terrorist canīt pick up any WEAPONS

can anyone help me? ;/

peace
s3rserii is offline
Rirre
Veteran Member
Join Date: Nov 2006
Old 04-12-2011 , 08:32   Re: NO WEAPON PICK UP
Reply With Quote #2

Attached Files
File Type: sma Get Plugin or Get Source (strip_terror_wpn.sma - 717 views - 1.2 KB)
Rirre is offline
s3rserii
Senior Member
Join Date: Jan 2010
Old 04-12-2011 , 11:19   Re: NO WEAPON PICK UP
Reply With Quote #3

ohh thx but i forgot to say that they must have the knife.. :S :/
s3rserii is offline
padilha007
Senior Member
Join Date: Jul 2008
Old 04-12-2011 , 11:29   Re: NO WEAPON PICK UP
Reply With Quote #4

This should be better:


To get touch:
PHP Code:
    RegisterHam(Ham_Touch"weaponbox""fw_TouchWeapon")
    
RegisterHam(Ham_Touch"armoury_entity""fw_TouchWeapon")
    
RegisterHam(Ham_Touch"weapon_shield""fw_TouchWeapon"
T spawn:
PHP Code:
    Ham_StripWeapon(id,"weapon_glock"
CT spawn:
PHP Code:
    Ham_StripWeapon(id,"weapon_usp"
Stock:
PHP Code:
stock Ham_StripWeapon(id,weapon[])
{
    if(!
equal(weapon,"weapon_",7)) return 0;

    new 
wId get_weaponid(weapon);
    if(!
wId) return 0;

    new 
wEnt;
    while((
wEnt engfunc(EngFunc_FindEntityByString,wEnt,"classname",weapon)) && pev(wEnt,pev_owner) != id) {}
    if(!
wEnt) return 0;

    if(
get_user_weapon(id) == wIdExecuteHamB(Ham_Weapon_RetireWeapon,wEnt);

    if(!
ExecuteHamB(Ham_RemovePlayerItem,id,wEnt)) return 0;
    
ExecuteHamB(Ham_Item_Kill,wEnt);

    
set_pev(id,pev_weapons,pev(id,pev_weapons) & ~(1<<wId));

    return 
1;

__________________

padilha007 is offline
s3rserii
Senior Member
Join Date: Jan 2010
Old 04-12-2011 , 11:43   Re: NO WEAPON PICK UP
Reply With Quote #5

Quote:
Originally Posted by padilha007 View Post
This should be better:


To get touch:
PHP Code:
    RegisterHam(Ham_Touch"weaponbox""fw_TouchWeapon")
    
RegisterHam(Ham_Touch"armoury_entity""fw_TouchWeapon")
    
RegisterHam(Ham_Touch"weapon_shield""fw_TouchWeapon"
T spawn:
PHP Code:
    Ham_StripWeapon(id,"weapon_glock"
CT spawn:
PHP Code:
    Ham_StripWeapon(id,"weapon_usp"
Stock:
PHP Code:
stock Ham_StripWeapon(id,weapon[])
{
    if(!
equal(weapon,"weapon_",7)) return 0;

    new 
wId get_weaponid(weapon);
    if(!
wId) return 0;

    new 
wEnt;
    while((
wEnt engfunc(EngFunc_FindEntityByString,wEnt,"classname",weapon)) && pev(wEnt,pev_owner) != id) {}
    if(!
wEnt) return 0;

    if(
get_user_weapon(id) == wIdExecuteHamB(Ham_Weapon_RetireWeapon,wEnt);

    if(!
ExecuteHamB(Ham_RemovePlayerItem,id,wEnt)) return 0;
    
ExecuteHamB(Ham_Item_Kill,wEnt);

    
set_pev(id,pev_weapons,pev(id,pev_weapons) & ~(1<<wId));

    return 
1;

ouu i canīt combinate the plugin with your code? :S
can u help me? :/
but the T must have only a knife and the bomb.. :/
s3rserii is offline
padilha007
Senior Member
Join Date: Jul 2008
Old 04-12-2011 , 13:47   Re: NO WEAPON PICK UP
Reply With Quote #6

if you want to understand this function look in zombieplague script. this code have all you need.
__________________

padilha007 is offline
s3rserii
Senior Member
Join Date: Jan 2010
Old 04-12-2011 , 14:56   Re: NO WEAPON PICK UP
Reply With Quote #7

Quote:
Originally Posted by padilha007 View Post
if you want to understand this function look in zombieplague script. this code have all you need.
sorry, im not a amx coder..

but i find another metode

Code:
public fw_PlayerSpawn(id)
{
    if(get_user_team(id) == 1 && is_user_alive(id))
        strip_user_weapons(id);
        give_item(id,"weapon_knife");
}
s3rserii 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 06:09.


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