Raised This Month: $ Target: $400
 0% 

register_touch toucher question


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Dr.G
Senior Member
Join Date: Nov 2008
Old 02-02-2010 , 14:41   Re: register_touch toucher question
Reply With Quote #3

I would do like this...

PHP Code:
new const CLASSES[][] = { 
    
    
"CLASS#1"
    
"CLASS#2"
    
"CLASS#3" 


new const 
FORWARD_NAME[] = "fwd_Touch"
new const PLAYER[] = "player"

public plugin_init() 

    
    for (new 
0sizeof CLASSESi++) 
        
register_touch(CLASSES[i], PLAYER FORWARD_NAME
    
}

public 
fwd_TouchiEntid)
{
    
// ....

__________________
Dr.G is offline
 



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 07:26.


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