Raised This Month: $51 Target: $400
 12% 

need help with hp, gravity and speed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 06-24-2009 , 13:04   need help with hp, gravity and speed
Reply With Quote #1

i using thats codes:

PHP Code:
    cvar_health_hunter register_cvar("hunter_health""500")
    
cvar_gravity_hunter register_cvar("hunter_gravity""780")
    
cvar_speed_hunter register_cvar("hunter_speed""245"
PHP Code:
        new Float:healthFloat:gravityFloat:speed
        health 
get_pcvar_float(cvar_health_hunter)
        
gravity get_pcvar_float(cvar_gravity_hunter) / 800
        speed 
get_pcvar_num(cvar_speed_hunter)
        
        
set_pev(idpev_healthhealth)
        
set_pev(idpev_gravitygravity)
        
set_pev(idpev_speedspeed
but this work's not good
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 06-24-2009 , 13:17   Re: need help with hp, gravity and speed
Reply With Quote #2

speed should be get_pcvar_float.
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 06-24-2009 , 14:39   Re: need help with hp, gravity and speed
Reply With Quote #3

but on health and gravity ?
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 06-24-2009 , 15:21   Re: need help with hp, gravity and speed
Reply With Quote #4

PHP Code:
set_pev(idpev_healthget_pcvar_float(cvar_health_hunter))
set_pev(idpev_gravityget_pcvar_float(cvar_gravity_hunter)) 
set_pev(idpev_speedget_pcvar_float(cvar_speed_hunter)) 
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 06-24-2009 , 15:22   Re: need help with hp, gravity and speed
Reply With Quote #5

Guessing your purposes you should use pev_maxspeed instead of pev_speed.
SnoW is offline
Send a message via MSN to SnoW
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 06-24-2009 , 15:24   Re: need help with hp, gravity and speed
Reply With Quote #6

Quote:
Originally Posted by SnoW View Post
Guessing your purposes you should use pev_maxspeed instead of pev_speed.
Oh, didn't even notice. pev_speed can not be used on players, you must use pev_maxspeed.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 06-24-2009 , 15:41   Re: need help with hp, gravity and speed
Reply With Quote #7

Not works
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 06-24-2009 , 15:44   Re: need help with hp, gravity and speed
Reply With Quote #8

A way is to use fun
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 06-24-2009 , 15:50   Re: need help with hp, gravity and speed
Reply With Quote #9

but I could in this way
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-24-2009 , 17:17   Re: need help with hp, gravity and speed
Reply With Quote #10

PHP Code:
new Float:flSpeed get_pcvar_floatcvar_speed_hunter );

engfuncEngFunc_SetClientMaxspeedidflSpeed );
set_pevidpev_maxspeedflSpeed ); 
__________________
xPaw 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 06:12.


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