Trying to freeze players after the plugin does sv_restart 1

Сообщения
36
Реакции
0
Hello. Im new to scripting plugins, so basically i managed to make a plugin and what i want to do is this: When the plugin does sv_restart 1 and round restarts, i want all people to be freezed. Currently i have this
Код:
set_user_frozen( id, bool:bFrozen ) {

    if( bFrozen ) 
    set_pev( id, pev_flags, pev( id, pev_flags ) | FL_FROZEN ) ;

    set_pev( id, pev_flags, pev( id, pev_flags ) & ~ FL_FROZEN ) ;
}
But its only slowing down players, not actually freezing them. I want the effect as mp_freezetime 50 for example,not be able to shoot/move.
 

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

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