Участник
Пользователь
- Сообщения
- 278
- Реакции
- 137
Hello,
-PM is always 0, where is the problem?
-PM is always 0, where is the problem?
Код:
0 0 0 - PM
0 0 153 - UL
0 0 0 - PM
0 0 145 - UL
0 0 0 - PM
...
PHP:
#include <amxmodx>
#include <reapi>
public plugin_init() {
register_plugin("lol", "0.1", "lol");
RegisterHookChain(RG_PM_Move, "@PM_Move", .post=true);
}
@PM_Move(const id)
{
if(get_pmove(pm_dead))
{
return
}
if(get_entvar(id, var_button) & IN_USE)
{
if(get_pmove(pm_waterlevel) == 0 && get_pmove(pm_onground) == -1)
{
new Float:velocity[3], Float:ve[3];
get_pmove(pm_velocity, ve);
get_entvar(id, var_velocity, velocity);
server_print("%0.f %0.f %0.f - PM", ve[0], ve[1], ve[2]);
server_print("%0.f %0.f %0.f - VL", velocity[0], velocity[1], velocity[2]);
}
}
}