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:28   Throw player up into air.
Reply With Quote #1

I don't really know how can i use vectors. Could anyone say me how can set vector that will push player upward for 2 or 3 meters.
Gadzislaw007 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-15-2010 , 14:40   Re: Throw player up into air.
Reply With Quote #2

This should help: https://forums.alliedmods.net/showthread.php?t=91474
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Gadzislaw007
Senior Member
Join Date: Nov 2009
Old 11-15-2010 , 14:54   Re: Throw player up into air.
Reply With Quote #3

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 #4

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
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-15-2010 , 16:04   Re: Throw player up into air.
Reply With Quote #5

Take a look at my bullet pogo plugin
__________________
Bugsy is offline
Gadzislaw007
Senior Member
Join Date: Nov 2009
Old 11-15-2010 , 17:03   Re: Throw player up into air.
Reply With Quote #6

Yaa, forgot bout that.
Thanks . My bad, again.
Gadzislaw007 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