Raised This Month: $ Target: $400
 0% 

Player stuck on the ground


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
duducp
New Member
Join Date: Dec 2010
Old 07-26-2011 , 09:13   Player stuck on the ground
Reply With Quote #1

Hello!
I am creating a plugin ROULETTE and wanted to know the code so I can add it!
I wanted the code of the player getting stuck on the ground.
duducp is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 07-26-2011 , 09:33   Re: Player stuck on the ground
Reply With Quote #2

You could get the ground origin under the player ( assuming player can be in air when stucked ) and move the player to an origin little under the ground origin.
SnoW is offline
Send a message via MSN to SnoW
duducp
New Member
Join Date: Dec 2010
Old 07-26-2011 , 09:41   Re: Player stuck on the ground
Reply With Quote #3

Yes it is I do not even know how to do this code
duducp is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 07-26-2011 , 09:47   Re: Player stuck on the ground
Reply With Quote #4

You could search the func wiki.

http://www.amxmodx.org/funcwiki.php?...igin&go=search

Searching with "origin" you could have found natives get_user_origin and set_user_origin. There is actually an example for moving player origin's height 10 units in the set_user_origin page. This might be handy for you.

Quote:
Example:
Code:
public MovePlayer(id) {     new origin[3]     get_user_origin(id,origin,0)  // Gets the current location the player is at     origin[2] = origin[2] + 10    // Adds + 10 to the players hight     set_user_origin(id,origin)   // Moves the player to the location stored in origin }
SnoW is offline
Send a message via MSN to SnoW
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 00:55.


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