Raised This Month: $ Target: $400
 0% 

func_vehicle HELP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 02-14-2013 , 23:59   func_vehicle HELP
Reply With Quote #1

Hi everybody. I need your help because I'm trying to set the vehicle maxspeed and I can't. 2 or 3 days ago I did it with this:
PHP Code:
#define CAR_SPEED "950.0"
public pfn_keyvalue(entid) {
    new 
classname[32], key[32], value[32]
    
copy_keyvalue(classname31key31value31)
    if (
equali(classname,"func_vehicle"))
        
DispatchKeyValue(entid"speed"CAR_SPEED

But now the plugin don't works and I don't know why! I tried to comment all my plugin (excluding this function) to check if a part of my plugin was blocking it but didn't works.
Any help? Or any have an idea to set max speed?
I tried using entity_set_float(..EV_FL_maxspeed..) too, and didn't works neither.

Sory for my english!

Last edited by Mxnn; 02-15-2013 at 00:12.
Mxnn is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 02-15-2013 , 00:37   Re: func_vehicle HELP
Reply With Quote #2

maybe pev_speed (fakemeta)? (It's for entitys only, not for players)
__________________
simanovich is offline
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 02-15-2013 , 01:46   Re: func_vehicle HELP
Reply With Quote #3

Thanks for the help! I fixed the problem and i don't know why. Is like that sometimes works and sometimes not. I have another question: I have func_vehicles and in a function i set them in x y z coordenates (that are float). The problem is that when i set it, the car turns like SOLID_TRIGGER or SOLID_NOT car (passable through).. Do you have any idea about this behavoir? I used entity_set_vector(.. EV_VEC_origin..)
Mxnn 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 20:35.


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