[Reapi] I need code to no recoil

Сообщения
21
Реакции
0
Hi i need code for no recoil at weapon

I have this code
Код:
#include <amxmodx>
#include <fakemeta>
#include <reapi>
public plugin_init() 
{
register_plugin("bleble", "1.0", "asdas");
RegisterHookChain(RG_CBasePlayer_PreThink, "PreThink");
register_forward(FM_UpdateClientData, "UpdateClientData", 1)
}
public PreThink(id)
{
    set_entvar(id, EntVars:var_punchangle, {0.0,0.0,0.0});
}
public UpdateClientData(id, sw, cd_handle)
{
set_cd(cd_handle, CD_PunchAngle, {0.0,0.0,0.0})   
}
but i want change forward updateclientdata fakemeta >> reapi
 
Сообщения
1,420
Реакции
2,511
Помог
58 раз(а)
Код:
#include <amxmodx>
#include <reapi>

public plugin_init()
{
RegisterHookChain(RG_CBasePlayer_PreThink, "CBasePlayer_PreThink")
}

public CBasePlayer_PreThink(id)
{
if(!is_user_alive(id)) return HC_CONTINUE

set_entvar(id, var_punchangle, { 0.0, 0.0, 0.0 })

return HC_CONTINUE
}
 

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу