Raised This Month: $ Target: $400
 0% 

detecting impact on world


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
moosewanted
Member
Join Date: May 2009
Old 05-31-2009 , 09:38   Re: detecting impact on world
Reply With Quote #7

Quote:
Originally Posted by moosewanted View Post
Coolio, heres the code I will probably use:
PHP Code:
    register_touch(APACHE_ROCKET_CLASSNAME"*""fw_rocket_touch")
    
register_touch("*"APACHE_ROCKET_CLASSNAME"fw_rocket_touch"
PHP Code:
public fw_rocket_touch(touchertouched)
{
    if((
pev(toucherpev_classname)) == APACHE_ROCKET_CLASSNAME)
    {
        
fm_explosion(toucher)
        
fm_remove_rocket(toucher)
    }
    if((
pev(touchedpev_classname)) == APACHE_ROCKET_CLASSNAME)
    {
        
fm_explosion(touched)
        
fm_remove_rocket(touched)
    }
    return 
PLUGIN_HANDLED

Gives errors:
/home/groups/amxmodx/tmp3/texto8Ozhk.sma(97) : error 033: array must be indexed (variable "-unknown-")
/home/groups/amxmodx/tmp3/texto8Ozhk.sma(102) : error 033: array must be indexed (variable "-unknown-")
moosewanted 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 13:56.


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