Quote:
Originally Posted by DPT
pokemonmaster... use FL_ONGROUND to make the server think that the player is on the ground.. This will fix the accuracy problem when a player is shooting while he's in air
|
Just last question, can you show me an example please?
EDIT:
Well, I tried my self this code (I made it my self), but it didn't work.
Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#define PLUGIN "In-Jump accelerate shot"
#define VERSION "1.0"
#define AUTHOR "Khalid"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Player_Jump, "player", "user_jump", 0)
}
public user_jump(id)
{
new flags = pev(id, pev_flags)
if(!(flags & FL_ONGROUND))
set_pev(id, pev_flags, (flags & FL_ONGROUND))
return HAM_SUPERCEDE
}
__________________