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

pfn_touch forward


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Salamon
Senior Member
Join Date: Dec 2007
Location: P(r)oland
Old 06-24-2008 , 15:29   pfn_touch forward
Reply With Quote #1

hello

im using this forward to block for current players to pickup some items

and i need help, not without this current function cause it works, unfortunately its the only engine forward in my whole script 50 kb... im using fakemeta and fun, cause i think its good idea to remove including engine only for this

someone can help and show me another way to block pickuping items in other way that engine ??
__________________
This is 10% luck, 20% skill, 15% concentrated power of will,
5% pleasure, 50% pain and 100% reason to remember my name..
Salamon is offline
marcellus
Senior Member
Join Date: Mar 2004
Old 06-24-2008 , 15:35   Re: pfn_touch forward
Reply With Quote #2

you can use hamsandwich :

ie :
PHP Code:
RegisterHam(Ham_Touch"weaponbox",       "your_ham_touch_function")
RegisterHam(Ham_Touch"armoury_entity",       "your_ham_touch_function")
...
...
public 
your_ham_touch_function(entid)
    return 
HAM_SUPERCEDE 
__________________
www.war-cs.com
french cz community
marcellus is offline
Salamon
Senior Member
Join Date: Dec 2007
Location: P(r)oland
Old 06-24-2008 , 15:39   Re: pfn_touch forward
Reply With Quote #3

thx for showing this way, for sure ill use it if any other way doesnt exist

but someone know a way to do it in maybe fakemeta? it exists?
__________________
This is 10% luck, 20% skill, 15% concentrated power of will,
5% pleasure, 50% pain and 100% reason to remember my name..
Salamon is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 06-24-2008 , 17:14   Re: pfn_touch forward
Reply With Quote #4

Code:
register_forward(FM_Touch, "fwdTouch", 0); ... public fwdTouch(ent, id) {  if(!pev_valid(ent))   return FMRES_IGNORED;    static szClassname[32];  pev(ent, pev_classname, szClassname, sizeof szClassname - 1);    if(equal(szClassname, "armoury_entity"))   return FMRES_SUPERCEDE;    return FMRES_IGNORED; }
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Salamon
Senior Member
Join Date: Dec 2007
Location: P(r)oland
Old 06-25-2008 , 10:43   Re: pfn_touch forward
Reply With Quote #5

ohh big + for You !!!! :*
__________________
This is 10% luck, 20% skill, 15% concentrated power of will,
5% pleasure, 50% pain and 100% reason to remember my name..
Salamon 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 10:20.


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