Raised This Month: $ Target: $400
 0% 

Throw player up into air.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gadzislaw007
Senior Member
Join Date: Nov 2009
Old 11-15-2010 , 14:54   Re: Throw player up into air.
Reply With Quote #1

PHP Code:
new Float:velocity[3];
velocity[0] = 0
velocity
[1] = 0
velocity
[2] = 800
set_pev
(idpev_velocityvelocity); 
This shall be enough to push player upward? Cause it doesn't work for me.

Last edited by Gadzislaw007; 11-15-2010 at 15:19.
Gadzislaw007 is offline
TandborsteN
Member
Join Date: Sep 2008
Old 11-15-2010 , 16:20   Re: Throw player up into air.
Reply With Quote #2

Quote:
Originally Posted by Gadzislaw007 View Post
PHP Code:
new Float:velocity[3];
velocity[0] = 0
velocity
[1] = 0
velocity
[2] = 800
set_pev
(idpev_velocityvelocity); 
This shall be enough to push player upward? Cause it doesn't work for me.
Uhm... ?
You know a FLOAT is an number with decimal in it.
To make your code work:

PHP Code:
new Float:velocity[3];
velocity[0] = 0.0;
velocity[1] = 0.0;
velocity[2] = 800.0;
set_pev(idpev_velocityvelocity); 
__________________
TANDBORSTEN!
TandborsteN 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:17.


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