AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Spy-vision v1.0.1 (21.06.2012) (https://forums.alliedmods.net/showthread.php?t=187939)

TsooJ 06-21-2012 06:48

Re: [TF2] Spy-vision v1.0.1 (21.06.2012)
 
Uhm, Is there a way to load sm_spyvision at plugin start. So admins automaticly start this plugin without using the command sm_spyvision.

I'm sorry for being obscure.

Leonardo 06-21-2012 11:23

Re: [TF2] Spy-vision v1.0.1 (21.06.2012)
 
You're asking for same things. And my answer is same: no. If you want it, edit code and compile it yourself.
Dont be a 10years old schoolboy, stop asking everyone about everything.

Horsedick 06-21-2012 13:09

Re: [TF2] Spy-vision v1.0.1 (21.06.2012)
 
Quote:

Originally Posted by TsooJ (Post 1733073)
Uhm, Is there a way to load sm_spyvision at plugin start. So admins automaticly start this plugin without using the command sm_spyvision.

I'm sorry for being obscure.

I believe if you look thru the code where it says "enable" such as line 15 - change from false to true

also line 50, and I think 100 but I don't intend to run it

TsooJ 06-21-2012 13:45

Re: [TF2] Spy-vision v1.0.1 (21.06.2012)
 
Quote:

Originally Posted by Leonardo (Post 1733213)
You're asking for same things. And my answer is same: no. If you want it, edit code and compile it yourself.
Dont be a 10years old schoolboy, stop asking everyone about everything.

Sorry dad... :nono:


And Horsedick I will definitly try this out thank you :)

minimoney1 06-21-2012 13:52

Re: [TF2] Spy-vision v1.0.1 (21.06.2012)
 
The enable bool has to do with the enable cvar's value.

But yes, lines 50 and 100 are what you need to change, just change the false to true and the change will (should) take place.

Horsedick 06-21-2012 15:17

Re: [TF2] Spy-vision v1.0.1 (21.06.2012)
 
Quote:

Originally Posted by minimoney1 (Post 1733304)
The enable bool has to do with the enable cvar's value.

But yes, lines 50 and 100 are what you need to change, just change the false to true and the change will (should) take place.

yeah mini is right..ignore line 15 just do the others :)

TsooJ 06-21-2012 16:06

Re: [TF2] Spy-vision v1.0.1 (21.06.2012)
 
Yeah I tested that but ALL players will see the detections. I need only admins to see it ;)

I found out when changing this false to true it happens:

Code:

public OnPlayerActivate( Handle:hEvent, const String:strEventName[], bool:bDontBroadcast )
{
        new iClient = GetClientOfUserId( GetEventInt( hEvent, "userid" ) );
        if( !IsValidClient(iClient) )
                return;
        bClientEnabled[iClient] = false;

Is there a possibility to set this to true but adds a admin flag to it?

minimoney1 06-21-2012 17:09

Re: [TF2] Spy-vision v1.0.1 (21.06.2012)
 
1 Attachment(s)
Here use the attached plugin and tell me if it works or not.

TsooJ 06-21-2012 17:19

Re: [TF2] Spy-vision v1.0.1 (21.06.2012)
 
There is a compile error.

//spyvision.sp<100> : error 017:undefined symbol "client"
//
//1 error

minimoney1 06-21-2012 17:29

Re: [TF2] Spy-vision v1.0.1 (21.06.2012)
 
Eh try the new version... I'm stupid :P


All times are GMT -4. The time now is 00:23.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.