Raised This Month: $ Target: $400
 0% 

Restrict shield


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 10-06-2007 , 08:31   Restrict shield
Reply With Quote #1

Hai. I try to restrict Ct's from pick up the shield...but this code is *not working...

*Note: If someone drop's the shield and i go right after that on him, is not picking up but next second is picking up ...

Code:
public Fwd_Touch(Ent, id)
{
 static model[32], classname[32];
 
 pev(Ent, pev_classname, classname , sizeof classname - 1);
 pev(Ent, pev_model, model, sizeof model - 1);
 
 if(equali(classname, "weaponbox") && equali(model, "w_shield.mdl") && get_user_team(id) == 2)
  return FMRES_SUPERCEDE;
 
 return FMRES_IGNORED;
}
Thanks.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 10-06-2007 , 08:42   Re: Restrict shield
Reply With Quote #2

if (equal(classname, "weapon_shield") && containi(model, "w_shield.mdl") != -1 && get_user_team(id) == 2)
VEN is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 10-06-2007 , 09:20   Re: Restrict shield
Reply With Quote #3

Huh, VEN , haven't saw you for a long time ...anyway thanks, works!
__________________
Still...lovin' . Connor noob! Hello
Alka 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 16:03.


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