Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
TsooJ
Member
Join Date: May 2012
Old 06-21-2012 , 06:48   Re: [TF2] Spy-vision v1.0.1 (21.06.2012)
Reply With Quote #21

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.

Last edited by TsooJ; 06-21-2012 at 06:50.
TsooJ is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 06-21-2012 , 11:23   Re: [TF2] Spy-vision v1.0.1 (21.06.2012)
Reply With Quote #22

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.
__________________
Leonardo is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 06-21-2012 , 13:09   Re: [TF2] Spy-vision v1.0.1 (21.06.2012)
Reply With Quote #23

Quote:
Originally Posted by TsooJ View Post
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
Horsedick is offline
TsooJ
Member
Join Date: May 2012
Old 06-21-2012 , 13:45   Re: [TF2] Spy-vision v1.0.1 (21.06.2012)
Reply With Quote #24

Quote:
Originally Posted by Leonardo View Post
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...


And Horsedick I will definitly try this out thank you
TsooJ is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 06-21-2012 , 13:52   Re: [TF2] Spy-vision v1.0.1 (21.06.2012)
Reply With Quote #25

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.
minimoney1 is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 06-21-2012 , 15:17   Re: [TF2] Spy-vision v1.0.1 (21.06.2012)
Reply With Quote #26

Quote:
Originally Posted by minimoney1 View Post
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
Horsedick is offline
TsooJ
Member
Join Date: May 2012
Old 06-21-2012 , 16:06   Re: [TF2] Spy-vision v1.0.1 (21.06.2012)
Reply With Quote #27

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?

Last edited by TsooJ; 06-21-2012 at 16:06.
TsooJ is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 06-21-2012 , 17:09   Re: [TF2] Spy-vision v1.0.1 (21.06.2012)
Reply With Quote #28

Here use the attached plugin and tell me if it works or not.
Attached Files
File Type: sp Get Plugin or Get Source (spyvision.sp - 404 views - 6.7 KB)

Last edited by minimoney1; 06-21-2012 at 17:45.
minimoney1 is offline
TsooJ
Member
Join Date: May 2012
Old 06-21-2012 , 17:19   Re: [TF2] Spy-vision v1.0.1 (21.06.2012)
Reply With Quote #29

There is a compile error.

//spyvision.sp<100> : error 017:undefined symbol "client"
//
//1 error
TsooJ is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 06-21-2012 , 17:29   Re: [TF2] Spy-vision v1.0.1 (21.06.2012)
Reply With Quote #30

Eh try the new version... I'm stupid
minimoney1 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:13.


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