AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Take someone out of a vehicle (https://forums.alliedmods.net/showthread.php?t=65166)

fr8899 01-02-2008 16:55

Take someone out of a vehicle
 
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.

Emp` 01-02-2008 20:28

Re: Take someone out of a vehicle
 
could try:
PHP Code:

    if( cs_get_user_drivingtarget ) ) client_cmdtarget"+use;wait;-use" 


fr8899 01-02-2008 20:55

Re: Take someone out of a vehicle
 
Works great, thanks.


All times are GMT -4. The time now is 11:07.

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