Player speed is still decreased, but he can't duck.
La vitesse du joueur est toujours diminiuée mais il ne peut pas s'accroupir.
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#define VERSION "0.0.1"
public plugin_init()
{
register_plugin("No Duck", VERSION, "ConnorMcLeod")
RegisterHam(Ham_Player_Duck, "player", "Player_Duck")
}
public Player_Duck( id )
{
// set_pev(id, pev_button, pev(id, pev_button) & ~IN_DUCK)
set_pev(id, pev_oldbuttons, pev(id, pev_oldbuttons) | IN_DUCK)
}
Quote:
Originally Posted by TheRadiance
sorry.
arkshine said that it won't work via duck it's client-side feature.
but anyway, i hope my code is correct.
|
It's not really that, players movements are not done from CmdStart.
__________________