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

[Req] Spawn Protection doesn't glow the whole time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yOou Know Me
BANNED
Join Date: Oct 2009
Old 01-20-2012 , 11:20   [Req] Spawn Protection doesn't glow the whole time
Reply With Quote #1

Hi all, i've set the protection time for 3 seconds, but the glow lasts only for 2 seconds i tried with 5 seconds protection time, but the glow is still only 2 seconds long... can you make the glow last for 3 seconds and i'll make the cvar 3 for seconds and all will be fine ?

This is the plugin:
http://forums.alliedmods.net/showthr...awn+protection

The author has not been active for some monts now.. that's why i'm writing this request.
yOou Know Me is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 01-20-2012 , 16:09   Re: [Req] Spawn Protection doesn't glow the whole time
Reply With Quote #2

Try this:

http://forums.alliedmods.net/showpos...&postcount=365
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-20-2012 , 17:21   Re: [Req] Spawn Protection doesn't glow the whole time
Reply With Quote #3

Try this :


ChangeLog :
Spoiler


Source Code :
Spoiler
Attached Files
File Type: sma Get Plugin or Get Source (SpawnProtection.sma - 374 views - 5.5 KB)
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 09-21-2012 at 00:43.
ConnorMcLeod is offline
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 01-21-2012 , 06:03   Re: [Req] Spawn Protection doesn't glow the whole time
Reply With Quote #4

Are you going to add hud timer? Example: Spawn Protection expires in "5-4-3-2-1" second.

Last edited by Lolz0r; 01-21-2012 at 06:11.
Lolz0r is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-21-2012 , 07:13   Re: [Req] Spawn Protection doesn't glow the whole time
Reply With Quote #5

I'm using a thinking ent that thinks every 0.3secs so the protection time is not very accurate (glow and protection matches though), so a timer would be false.

Should create my own entity in order to add a timer, not sure i want to to that
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
yOou Know Me
BANNED
Join Date: Oct 2009
Old 01-24-2012 , 12:27   Re: [Req] Spawn Protection doesn't glow the whole time
Reply With Quote #6

Quote:
Originally Posted by ConnorMcLeod View Post
I'm using a thinking ent that thinks every 0.3secs so the protection time is not very accurate (glow and protection matches though), so a timer would be false.

Should create my own entity in order to add a timer, not sure i want to to that
The protection doesn't dissapear, we can't kill eachother. And we glow all the time.

Last edited by yOou Know Me; 01-24-2012 at 12:45.
yOou Know Me is offline
Old 01-28-2012, 11:30
Lolz0r
This message has been deleted by Lolz0r. Reason: nvm
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 09-15-2012 , 10:48   Re: [Req] Spawn Protection doesn't glow the whole time
Reply With Quote #7

@Connor, I don't know if the cvar is working or not, but no matter how much seconds I set to the protection and glow it's infinity, can you fix that ?
Lolz0r is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-16-2012 , 00:21   Re: [Req] Spawn Protection doesn't glow the whole time
Reply With Quote #8

Should be fixed in version 0.0.4
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 09-16-2012 , 18:29   Re: [Req] Spawn Protection doesn't glow the whole time
Reply With Quote #9

It still doesn't work properly, here's what it shows me in the console :

Code:
L 09/16/2012 - 23:31:58: [AMXX] Displaying debug trace (plugin "SpawnProtection.amxx")
L 09/16/2012 - 23:31:58: [AMXX] Run time error 4: index out of bounds 
L 09/16/2012 - 23:31:58: [AMXX]    [0] SpawnProtection.sma::OnCSoundEnt_Think_Post (line 151)

If the plugin ham_register_cz_bot is not installed would it work ?
If not, could you do it in one ?
Lolz0r is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-20-2012 , 15:39   Re: [Req] Spawn Protection doesn't glow the whole time
Reply With Quote #10

Try now.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 03:48.


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