AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Player stuck on the ground (https://forums.alliedmods.net/showthread.php?t=163055)

duducp 07-26-2011 09:13

Player stuck on the ground
 
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.

SnoW 07-26-2011 09:33

Re: Player stuck on the ground
 
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.

duducp 07-26-2011 09:41

Re: Player stuck on the ground
 
Yes it is I do not even know how to do this code

SnoW 07-26-2011 09:47

Re: Player stuck on the ground
 
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 }



All times are GMT -4. The time now is 00:55.

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