[Solved]Force spectator's m_hObserverTarget
I want to force m_hObserverTarget to be CT team only.
Quote:
Code:
[AMXX] Forwards with more than 32 parameters are not supported (tried to prepare array # 33).Code:
|
Re: [Orpheu] Force spectator's m_hObserverTarget
Well something is wrong. Make sure your code is alright so Orpheu won't get problems. If your code is alright and you are still getting this error, either Orpheu or your currently version of AMX Mod X have problems.
Furthermore, try that with the latest AMX Mod X build on AMX Mod X Snapshots. PHP Code:
|
Re: [Orpheu] Force spectator's m_hObserverTarget
With your code, server shutdowns and throws the same error.
I'm refering to this thread and I wish not to upgrade to 1.8.3. Using Orpheu 2.5.1 and amxx 1.8.2. I'm testing this plugin on PodBots |
Re: [Orpheu] Force spectator's m_hObserverTarget
Your executing OrpheuCallSuper() from inside the hook your calling = infinite loop :nono:
|
Re: [Orpheu] Force spectator's m_hObserverTarget
Hook it as pre, and supercede the original function call.
|
Re: [Orpheu] Force spectator's m_hObserverTarget
Quote:
|
Re: [Orpheu] Force spectator's m_hObserverTarget
Another method is with CBasePlayer::Observer_CheckTarget(). You can use the checkteam param.
|
Re: [Orpheu] Force spectator's m_hObserverTarget
Quote:
PHP Code:
|
Re: [Orpheu] Force spectator's m_hObserverTarget
Quote:
|
Re: [Orpheu] Force spectator's m_hObserverTarget
Quote:
Quote:
Thank you! |
| All times are GMT -4. The time now is 21:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.