Half-Life и Adrenaline Gamer форум http://econ.aghl.ru/forum/ |
|
Spectator mod ? http://econ.aghl.ru/forum/viewtopic.php?f=12&t=2620 |
Страница 1 из 5 |
Автор: | abdobiskra [ 16 янв 2017, 04:17 ] |
Заголовок сообщения: | Spectator mod ? |
Hello I would like to know if I could set user to spectator mod (1 or 2 or 3 ...) what i want do: i want users spectate players directly when put in server not roaming mode i try : but there is a problem when i try to connected all players get the spectator mod |
Автор: | Lev [ 16 янв 2017, 08:25 ] |
Заголовок сообщения: | Re: Spectator mod ? |
You already did it - put in spectate mode. What you wish to change? Btw, are your players know how to get out of spectate? |
Автор: | abdobiskra [ 16 янв 2017, 14:41 ] |
Заголовок сообщения: | Re: Spectator mod ? |
Lev писал(а): You already did it - put in spectate mode. What you wish to change? Yes but there problem in ScoreBoard i saw all spectator but only me who spectate ?Lev писал(а): Btw, are your players know how to get out of spectate? not exactly its Round System i used DEAD_RESPAWNABLE and when i force to respawn players, the teams does not appear in ScoreBoard Вложение: All of this problem when i used client_putinserver to spectator mod But in other cases it operates normally (i mean when player killed switched to spectator mode, and when i force it to respawn he spawned Normal) |
Автор: | Lev [ 16 янв 2017, 15:28 ] |
Заголовок сообщения: | Re: Spectator mod ? |
Try to set mp_welcomecam to 0. |
Автор: | abdobiskra [ 16 янв 2017, 16:05 ] |
Заголовок сообщения: | Re: Spectator mod ? |
Yes, I tried before did not succeed! |
Автор: | Lev [ 16 янв 2017, 16:15 ] |
Заголовок сообщения: | Re: Spectator mod ? |
Then leave it 1 and issue "spectate" command in POST Spawn function hook. Leaving it 1 will prevent players to spawn for the small moments before going spectate. |
Автор: | abdobiskra [ 17 янв 2017, 22:11 ] |
Заголовок сообщения: | Re: Spectator mod ? |
Yes, it seems well But I faced another problem I find it difficult to understand where is it ? i check first spawn players are takers spectator But I am using another function when player killed switched to spectator but dose not work now ? Код: public plugin_init() {i think the problem here : g_ResetHud[id] = true ? How can I make them work in both cases? (when players spawned & killed to spectator mod ) |
Автор: | Lev [ 18 янв 2017, 00:20 ] |
Заголовок сообщения: | Re: Spectator mod ? |
Sorry, here is right way: Код: #include <amxmisc>This is called POST put in server. Before that engclient_cmd will not work, because AMXX thinks client not yet in game. And, btw, first player Spawn happen in PutInServer function in game dll, so engclient_cmd doesn't work in first call to Spawn hook. |
Автор: | abdobiskra [ 18 янв 2017, 12:07 ] |
Заголовок сообщения: | Re: Spectator mod ? |
Lev писал(а): Sorry, here is right way: But unfortunately, so we will go back to the first problem , This is the first way I've-tested Код: #include <amxmisc> Lev писал(а): This is called POST put in server. Before that engclient_cmd will not work, because AMXX thinks client not yet in game. And, btw, first player Spawn happen in PutInServer function in game dll, so engclient_cmd doesn't work in first call to Spawn hook. hl_set_user_spectator(id, true); This function has engclient_cmd |
Автор: | Lev [ 18 янв 2017, 12:52 ] |
Заголовок сообщения: | Re: Spectator mod ? |
I am not sure what problem you have. Try to describe more straightforward. Also, you can try to provide small plugin that can be used to reproduce a problem. |
Страница 1 из 5 | Часовой пояс: UTC + 5 часов [ Летнее время ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |