PDA

View Full Version : DOD Admin Spectate ESP


strontiumdog
04-19-2007, 11:21 AM
Not mine.

But it works and runs on DoD. :)

This version has been edited to show green lines to an allied soldier and red lines to a axis one.

dannyowan
04-19-2007, 12:35 PM
It's working well
but I get error


L 04/19/2007 - 22:47:47: [AMXX] Run time error 4 (plugin "sea_spec_esp.amxx") - debug not enabled!
L 04/19/2007 - 22:47:47: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

=|[76AD]|= TatsuSaisei
04-19-2007, 05:15 PM
It's working well
but I get error

see how it says enable debug in your error message ??

in your plugins.ini file.. find the listed plugin and ADD the word debug

then play some more and let the error occur again... and then this time.. post a "proper" error message that actually tells him what the error is and where in the code the error comes from... without that it is impossible for the author, another coder, or yourself to know what exactly is to blame ... and then how to "fix"

Grottenolm
04-30-2007, 10:44 PM
Hi Zor (or anyone who ahs this plugin working), can you please post the versions of MM and AMXX that you use?

As some others I don't seem to be able to get any reaction to "esp_menu" at all :(

Also the esp_... don't show up in amx_help.

This is what I tried:

- Admin levels H, G and T are granted, checked by amx_who

- Checked that all necessary modules and plugins are loaded OK

- Changed level H to G in the plugin code

I am using AMX Mod X 1.76a and Metamod v1.19.

strontiumdog
05-01-2007, 02:52 AM
It's working well
but I get error

OK
I have uploaded the latest working one (in first post) and it doesn't bring up the error any more.

Runs on 1.70 and 1.76c happily, with no errors.
(Metamod 1.19)

strontiumdog
05-01-2007, 02:55 AM
Hi Zor (or anyone who ahs this plugin working), can you please post the versions of MM and AMXX that you use?

As some others I don't seem to be able to get any reaction to "esp_menu" at all :(

Also the esp_... don't show up in amx_help.

This is what I tried:

- Admin levels H, G and T are granted, checked by amx_who

- Checked that all necessary modules and plugins are loaded OK

- Changed level H to G in the plugin code

I am using AMX Mod X 1.76a and Metamod v1.19.

Are you talking about Zor's version or this version which is different? I couldn't get Zor's to work properly, but this one was located deep in the AMXX forums and needed some editing for DoD....!

Grottenolm
05-01-2007, 09:54 AM
Are you talking about Zor's version or this version which is different? I couldn't get Zor's to work properly, but this one was located deep in the AMXX forums and needed some editing for DoD....!

Well, of course I posted in the wrong one of both threads :(

I was referring to ZOR's version. I am already running the Version that someone (you?) made from Kost's code, which I got from the AMXX forums if I remember correctly. I have some error messages appearing all the time plus after ~45mins it often does not work any more - so I am looking for alternatives...

ZOR's version also adds a few twists like not needing to go to spectator, so I am trying to get it to work. Only if I can't get it to work I'll try more debugging on the issues that I have with the modified Kost version...

Anyway, I am currently in the prioess of working through the code step by step and finding out, why it does not do anything on my side. Already I have it working somehow after removing many lines that cause the procedures to terminate if certain conditions are not present. So that emans at least one of these conditions is for soem reason not "true"... I am trying to find out which one by removing them step by step. maybe this will give some insight into the root cause...

Anyway, I really hope I get this runing, because somehow since the last DOD update no "real" Wallhack that I tried for watching my HLTV-Demos did work ny more... all crash to the desktop :( Dis anyone else notice something like this? Or can anyone recommend a certain way how to view demos (HLTV demos specifically)

Grottenolm
05-01-2007, 03:59 PM
Some updates on my troubleshooting:

On many of the subroutines of the Zor plugin these conditions lead to premature exit:

if(!get_cvar_num("esp_active") || !g_can_spectate[id] || !(get_user_flags(id)&ADMIN_LEVEL_H)) return PLUGIN_HANDLED

Adding a few client_print commands showas that the "g_can_spectate" seems to be the issue:

get_cvar_num("esp_active") = 1
g_can_spectate[id] = 0
(get_user_flags(id)&ADMIN_LEVEL_H) = 524288

So the next step is to have a look at why "g_can_spectate" fails...

Grottenolm
05-01-2007, 07:39 PM
It seems that in my server configuration some routines that I would have expected to be called are not called at all:

client_spawn
client_changeteam

This is a pity, because this is the only place where "g_can_spectate" gets set to "1" :(

Well, let's find out why these routines are not called...

Grottenolm
05-01-2007, 07:49 PM
OK, I found the root cause:

http://www.dodplugins.net/forums/archive/index.php/t-5.html

instead of client_spawn and client_changeteam you have to use dod_client_spawn and dod_client_changeteam for the newest AMXX :)

Well, I'll post this to the correct thread now, I just noticed I was writing in the "wrong" thread again all the time ;)

diamond-optic
05-01-2007, 07:54 PM
the dod_client_spawn doesnt get called after 'respawning' after a round has ended.. so you might wanna hook ResetHud

tho i think zor fixed it but for the most part we have to wait till the next amxx version (hopefully) :-(

Grottenolm
05-02-2007, 07:01 PM
the dod_client_spawn doesnt get called after 'respawning' after a round has ended.. so you might wanna hook ResetHud


I thought using ResetHud was bad style? ;)

diamond-optic
05-02-2007, 08:41 PM
well it is sorta.. but its not really bad if you throw in a few lines of code to block the fullupdate client command..