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

Spawn Protection


Post New Thread Reply   
 
Thread Tools Display Modes
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 04-16-2006 , 17:39  
Reply With Quote #261

Thanks for a lot of effort and time put it from SubStream from testing, the plugin should now work. I'll be working on a new version with some cool features, please let me know if you experience any further problems.

Thanks for you guys being so supportive, I'll definately be keeping a close eye on this plugin and making sure I release new features often.
Peli is offline
Send a message via MSN to Peli
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 06-25-2006 , 21:44   Re: Spawn Protection
Reply With Quote #262

Finished coding the new version which adds an option for players to choose what color they glow.

I'll attach the plugin, after it's tested, and allow people too choose from that download and the current one soon.
Peli is offline
Send a message via MSN to Peli
sasdad
Junior Member
Join Date: Jul 2006
Old 07-05-2006 , 09:44   Re: Spawn Protection
Reply With Quote #263

I made time correction for mp_freezetime

Add this:
new Freeze = get_cvar_num("mp_freezetime")

after:
public protect(id) // This is the function for the task_on godmode
{
new Float:SPTime = get_cvar_float("sv_sptime")
new SPSecs = get_cvar_num("sv_sptime")
new SPShell = get_cvar_num("sv_spshellthick")

change this:
set_hudmessage(255, 1, 1, -1.0, -1.0, 0, 6.0, SPTime, 0.1, 0.2, 4)

to this:
set_hudmessage(255, 1, 1, -1.0, -1.0, 0, 6.0, SPTime+Freeze, 0.1, 0.2, 4)

and this:
set_task(SPTime, "sp_off", id)

to this:
set_task(SPTime+Freeze, "sp_off", id)
sasdad is offline
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 07-11-2006 , 05:28   Re: Spawn Protection
Reply With Quote #264

Quote:
Originally Posted by sasdad
I made time correction for mp_freezetime

Add this:
new Freeze = get_cvar_num("mp_freezetime")

after:
public protect(id) // This is the function for the task_on godmode
{
new Float:SPTime = get_cvar_float("sv_sptime")
new SPSecs = get_cvar_num("sv_sptime")
new SPShell = get_cvar_num("sv_spshellthick")

change this:
set_hudmessage(255, 1, 1, -1.0, -1.0, 0, 6.0, SPTime, 0.1, 0.2, 4)

to this:
set_hudmessage(255, 1, 1, -1.0, -1.0, 0, 6.0, SPTime+Freeze, 0.1, 0.2, 4)

and this:
set_task(SPTime, "sp_off", id)

to this:
set_task(SPTime+Freeze, "sp_off", id)
Thanks, if that's an error, or just something you noticed that was sloppy, I've added the update.
Peli is offline
Send a message via MSN to Peli
_KaszpiR_
AMX Mod X Beta Tester
Join Date: Feb 2004
Location: Warsaw, Poland
Old 09-10-2006 , 11:55   Re: Spawn Protection
Reply With Quote #265

I added command and cvar to control glow - sometimes i do not want the glow efffect

command
amx_spglow 0/1

cvar
sv_spglow 0/1


NOTICE: needs testing, i wrtoe it whitout test
Attached Files
File Type: sma Get Plugin or Get Source (spawnprotection.sma - 948 views - 6.9 KB)
__________________
= Ave Cesar, morituri Te salutant. = http://nvt.prv.pl = http://hlds.pl/
_KaszpiR_ is offline
Tartooob
Senior Member
Join Date: May 2006
Old 09-11-2006 , 05:31   Re: Spawn Protection
Reply With Quote #266

Thanks for gr8 plugin and thx KAs I will test it later,

For the maker: Could you please add a command to on/off glow and another command to on/off the plugin, I only want this plugin to work on awp maps and another command to change the protection time, would be amazing plugin if u did that, thx
Tartooob is offline
_KaszpiR_
AMX Mod X Beta Tester
Join Date: Feb 2004
Location: Warsaw, Poland
Old 09-11-2006 , 09:52   Re: Spawn Protection
Reply With Quote #267

Commands:
acutally, they control the cvar values so that they are set properly, for all of them you need ADMIN_CVAR flag in admin account (but it can be also placed in server config)

amx_sptime N
where N is a number 1 through 10 to set Spawn Protection time

amx_spmessage 0/1
1 = Turn Spawn Protection Message on
0 = Turn Spawn Protection message off

amx_spshellthickness N
where N is a number 1 through 100 to set Glow Shellthickness

amx_spglow 0/1
1 = turn on glow, 0 = turn off glow


Cvars
sv_sp 1 // Cvar (Command Variable) for the plugin 1=on 0=off
sv_sptime 5 // Cvar for controlling the message time (1-10 seconds), default 5
sv_spmessage 1 // Cvar for controlling the message 1=on 0=off
sv_spshellthick 25 // Cvar for controlling the glow shell thickness 0-100, default 25
sv_spglow 1 // Cvar for controlling if glow is enabled or disabled, 0 disables glow
__________________
= Ave Cesar, morituri Te salutant. = http://nvt.prv.pl = http://hlds.pl/
_KaszpiR_ is offline
Tartooob
Senior Member
Join Date: May 2006
Old 09-15-2006 , 04:07   Re: Spawn Protection
Reply With Quote #268

Quote:
Originally Posted by _KaszpiR_ View Post
Commands:
acutally, they control the cvar values so that they are set properly, for all of them you need ADMIN_CVAR flag in admin account (but it can be also placed in server config)

amx_sptime N
where N is a number 1 through 10 to set Spawn Protection time

amx_spmessage 0/1
1 = Turn Spawn Protection Message on
0 = Turn Spawn Protection message off

amx_spshellthickness N
where N is a number 1 through 100 to set Glow Shellthickness

amx_spglow 0/1
1 = turn on glow, 0 = turn off glow


Cvars
sv_sp 1 // Cvar (Command Variable) for the plugin 1=on 0=off
sv_sptime 5 // Cvar for controlling the message time (1-10 seconds), default 5
sv_spmessage 1 // Cvar for controlling the message 1=on 0=off
sv_spshellthick 25 // Cvar for controlling the glow shell thickness 0-100, default 25
sv_spglow 1 // Cvar for controlling if glow is enabled or disabled, 0 disables glow
Wow amazing, thanks
Tartooob is offline
Zaknafein
Junior Member
Join Date: Feb 2007
Old 03-04-2007 , 17:02   Re: Spawn Protection
Reply With Quote #269

I have been trying to get the spawn protection time down to 3 seconds is there a way you can help me with that? I was thinking maybe you can make spawn protection time the same as round start time for the DM servers? That would be great and we would be able to set it by just using round start time. Is this possible?
Zaknafein is offline
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 03-19-2007 , 01:00   Re: Spawn Protection
Reply With Quote #270

Okay guys, been receiving a lot of support questions recently, glad to help those who have sent a private message.

Just want to let you know:

#1: I am back and able to help anyone who needs help installing/using this plugin

#2: If anyone thinks this version is old or wants to change some things, you can give me a suggestion you'd like to see implemented on a new version, or if you know how to script, you're free to script your own version of this plugin as long as its your code or ask me for permission

Last edited by Peli; 03-19-2007 at 01:02. Reason: Wrong post...
Peli is offline
Send a message via MSN to Peli
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 08:11.


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