Quote:
Originally Posted by G[o]Q
Code:
if ((button & IN_USE) && (oldbutton != IN_USE))
|
Wrong.
Code:
if ((button & IN_USE) && !(oldbutton & IN_USE))
Quote:
Originally Posted by meTaLiCroSS
PHP Code:
if (zp_get_user_zombie(id) && zp_get_user_zombie_class(id) == g_zclass_jockey) { if ((button & IN_USE) && (oldbutton && IN_USE)) { static aimed , body if( get_user_aiming(id, aimed, body, 25) > 0.0 ) { if ( is_user_alive(aimed) && zp_get_user_zombie(aimed) ) { set_user_health(aimed, get_user_health(aimed) + 500) } } } }
|
You also need to correct the double ampersand in the bit comparison.
(oldbutton & IN_USE)
__________________