Скриптер
Проверенный
Пользователь
- Сообщения
- 3,582
- Реакции
- 1,570
- Помог
- 137 раз(а)
w0w, а, это ? понял. в оригинале было просто
(new i = 1; i <= 32; i++)
2 Дек 2018
имеется в ввиду так?3. g_forwardId = register_forward(FM_CmdStart, "fw_CmdStart")
->
C++:unregister_forward(g_forwardId = register_forward(FM_CmdStart, "fw_CmdStart")) if(get_pcvar_num(pCvar)) g_forwardId = register_forward(FM_CmdStart, "fw_CmdStart")
Diff:
public plugin_init()
{
- g_forwardId = register_forward(FM_CmdStart, "fw_CmdStart")
+ unregister_forward(g_forwardId = register_forward(FM_CmdStart, "fw_CmdStart"))
+ if(get_pcvar_num(pCvar)) g_forwardId = register_forward(FM_CmdStart, "fw_CmdStart")
}