Grey83
не пишу плагины с весны 2022
- Сообщения
- 8,521
- Реакции
- 4,981
@skolobes, попробуй это:
или это:
PHP:
#include <sdktools_hooks>
public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3], float angles[3], int &weapon, int &subtype, int &cmdnum, int &tickcount, int &seed, int mouse[2])
{
if((buttons & IN_LEFT) || (buttons & IN_RIGHT)) return Plugin_Handled;
return Plugin_Continue;
}
PHP:
#include <sdktools_hooks>
public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3], float angles[3], int &weapon, int &subtype, int &cmdnum, int &tickcount, int &seed, int mouse[2])
{
if(buttons & IN_LEFT)
{
buttons &= ~IN_LEFT;
return Plugin_Changed;
}
if(buttons & IN_RIGHT)
{
buttons &= ~IN_RIGHT;
return Plugin_Changed;
}
return Plugin_Continue;
}
Последнее редактирование: