Raised This Month: $51 Target: $400
 12% 

TF2 - Prevent use in spectator on this.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 03-07-2015 , 10:23   TF2 - Prevent use in spectator on this.
Reply With Quote #1

https://forums.alliedmods.net/showpo...6&postcount=33

I posted a rework of this plugin a while back, I can't remember the needed code to prevent a user from using it in spectator. Basically what is happening is someone is going spectator then spawning balls all around other players which can get really annoying quick. If someone could adjust this I'd really appreciate it.


Edit: Also still looking for a small edit to this also
https://forums.alliedmods.net/showthread.php?t=258165
Just need to have it to be able to spawn those mines where ever the crosshair is.

Last edited by Horsedick; 03-07-2015 at 10:26.
Horsedick is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 03-08-2015 , 01:51   Re: TF2 - Prevent use in spectator on this.
Reply With Quote #2

Just shove a IsPlayerAlive check in there...
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 03-08-2015 , 10:17   Re: TF2 - Prevent use in spectator on this.
Reply With Quote #3

Quote:
Originally Posted by friagram View Post
Just shove a IsPlayerAlive check in there...
derp.. yeah I guess that would do it wouldn't it. Thanks!
Horsedick is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 03-08-2015 , 10:27   Re: TF2 - Prevent use in spectator on this.
Reply With Quote #4

you could alternatively use IsClientObserver
__________________
Chdata 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 04:19.


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