I would have used this from the doc:
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 player's height
set_user_origin(id, origin) // Moves the player to the location stored in origin
}
But that could be abused so people went through the ceilings when the ceilings are low. I searched and looked through bunny hop scripts, #define IN_JUMP, #define FL_ONGROUND, #define FL_WATERJUMP, and couldn't piece it together to make it work.
What I'm trying to do is that when the function is executed, it makes the player jump, so this way he can't go through the ceiling.