Raised This Month: $ Target: $400
 0% 

Take someone out of a vehicle


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fr8899
BANNED
Join Date: Dec 2007
Old 01-02-2008 , 16:55   Take someone out of a vehicle
Reply With Quote #1

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( pevtargetpev_movetype ) == MOVETYPE_FLY && !(pevtargetpev_button ) & IN_JUMP ) ) client_cmdtarget"+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.
fr8899 is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 01-02-2008 , 20:28   Re: Take someone out of a vehicle
Reply With Quote #2

could try:
PHP Code:
    if( cs_get_user_drivingtarget ) ) client_cmdtarget"+use;wait;-use" 
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
fr8899
BANNED
Join Date: Dec 2007
Old 01-02-2008 , 20:55   Re: Take someone out of a vehicle
Reply With Quote #3

Works great, thanks.
fr8899 is offline
Reply



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


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