I am trying to change ian.cammarata's Grab plugin to also grab player's out of a vehicle. He has a line that makes it possible to grab someone off a ladder and I'm trying to take that and change it.
PHP Code:
if( pev( target, pev_movetype ) == MOVETYPE_FLY && !(pev( target, pev_button ) & IN_JUMP ) ) client_cmd( target, "+jump;wait;-jump" )
I've tried using that same line except changing IN_JUMP to IN_USE without any results. Anyone know what I should do to make this work with vehicles? Also, if anyone has any resources that help with coding for vehicles that would be great too.