Raised This Month: $ Target: $400
 0% 

Can't prevent pickup :(


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Shaman
Senior Member
Join Date: Dec 2006
Location: Istanbul, Turkey
Old 02-11-2007 , 07:00   Can't prevent pickup :(
Reply With Quote #1

My function is this.
PHP Code:
public event_touch(touched,toucher)
    {
    if(
toucher==0||touched==0)
        {
        return 
PLUGIN_HANDLED
        
}
    
    new 
touchedcn[33]
    new 
touchercn[33]
    
pev(touched,pev_classname,touchedcn,32)
    
pev(toucher,pev_classname,touchercn,32)
    new 
message[201]
    
format(message,200,"Toucher:'%i' CN:'%s' Touched:'%i' CN:'%s'",toucher,touchercn,touched,touchedcn)
    
console_print(0,message)
    return 
PLUGIN_HANDLED
    

When I try to get a weapon or an item, this function prints the message to console; but I get the weapon. How can I prevent pickup?
__________________
Shaman is offline
Send a message via ICQ to Shaman Send a message via AIM to Shaman Send a message via MSN to Shaman Send a message via Yahoo to Shaman
 


Thread Tools
Display Modes

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 00:37.


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