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

[REQ] New Spawn Protection


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
koleos
Senior Member
Join Date: Jul 2008
Old 02-23-2009 , 19:46   [REQ] New Spawn Protection
Reply With Quote #1

Well i was thinking about if somebody can make a better Spawn Protection

http://forums.alliedmods.net/showthread.php?p=17711

but if u can make it in a way like we can give spawn protection just to 1 team and customize the sp time for each time.
koleos is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-23-2009 , 22:11   Re: [REQ] New Spawn Protection
Reply With Quote #2

Here you go.

Cvars:
  • sp_type_t <0|1|2>
  • sp_type_ct <0|1|2>
  • sp_type_spec <0|1|2>
    - Type of spawn protection per team
    • 0 = None
    • 1 = Godmode
    • 2 = Block any damage from other players
  • sp_glow_on_t <0|1>
  • sp_glow_on_ct <0|1>
  • sp_glow_on_spec <0|1>
    - Is glow enabled for spawn protection for that team
    • 0 = Off
    • 1 = On
  • sp_glow_color_t <RRR GGG BBB>
  • sp_glow_color_ct <RRR GGG BBB>
  • sp_glow_color_spec <RRR GGG BBB>
    - Glow color in RGB format per team
  • sp_time_t <seconds>
  • sp_time_ct <seconds>
  • sp_time_spec <seconds>
    - Time in seconds for spawn protection to last

Note:
  • If your server uses mp_freezetime, then you can either:
    • A: Add the freezetime into the spawn protection time.
    • B: Ask me to code it to calculate the mp_freezetime time into the protection which is much more accurate.
Attached Files
File Type: sma Get Plugin or Get Source (spawn_protection.sma - 1322 views - 3.5 KB)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 02-24-2009 at 12:08.
Exolent[jNr] is offline
koleos
Senior Member
Join Date: Jul 2008
Old 02-23-2009 , 23:59   Re: [REQ] New Spawn Protection
Reply With Quote #3

Thanks Exolent
#1
koleos is offline
koleos
Senior Member
Join Date: Jul 2008
Old 02-24-2009 , 00:25   Re: [REQ] New Spawn Protection
Reply With Quote #4

i dont think the plugin is working
Code:
L 02/23/2009 - 23:24:26: Start of error session.
L 02/23/2009 - 23:24:26: Info (map "cs_militia") (file "addons/amxmodx/logs/error_20090223.log")
L 02/23/2009 - 23:24:26: [HAMSANDWICH] Function FwdPlayerPreThink not found.
L 02/23/2009 - 23:24:26: [AMXX] Displaying debug trace (plugin "advance_spawn_protection.amxx")
L 02/23/2009 - 23:24:26: [AMXX] Run time error 10: native error (native "RegisterHam")
L 02/23/2009 - 23:24:26: [AMXX]    [0] 37754.attach::plugin_init (line 50)
L 02/23/2009 - 23:24:31: Invalid CVAR pointer
L 02/23/2009 - 23:24:31: [AMXX] Displaying debug trace (plugin "advance_spawn_protection.amxx")
L 02/23/2009 - 23:24:31: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 02/23/2009 - 23:24:31: [AMXX]    [0] 37754.attach::FwdPlayerSpawn (line 91)
L 02/23/2009 - 23:24:31: Invalid CVAR pointer
koleos is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 02-24-2009 , 07:01   Re: [REQ] New Spawn Protection
Reply With Quote #5

remove
PHP Code:
RegisterHam(Ham_Player_PreThink"player""FwdPlayerPreThink"); 
because its didnt used.
__________________
xPaw is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-24-2009 , 12:08   Re: [REQ] New Spawn Protection
Reply With Quote #6

Fixed.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
koleos
Senior Member
Join Date: Jul 2008
Old 02-24-2009 , 17:44   Re: [REQ] New Spawn Protection
Reply With Quote #7

Plugin is not working
koleos is offline
hazard1337
Senior Member
Join Date: Sep 2006
Old 02-24-2009 , 21:58   Re: [REQ] New Spawn Protection
Reply With Quote #8

whats wrong with it? Any errors?
__________________
[IMG]http://img139.**************/img139/1530/2sejaewg1.gif[/IMG]
If you +/- my K, leave your name.
I do not take requests VIA PM
Click on this before requesting/suggesting
This is your best friend
hazard1337 is offline
Send a message via Skype™ to hazard1337
koleos
Senior Member
Join Date: Jul 2008
Old 02-25-2009 , 07:48   Re: [REQ] New Spawn Protection
Reply With Quote #9

no. i see the glow shells for T but nobody gets godmode. im sure that CTs dont ill check for Ts later.
koleos is offline
Ricardo_dS
Member
Join Date: Feb 2010
Old 07-01-2011 , 11:13   Re: [REQ] New Spawn Protection
Reply With Quote #10

how can I just have this plugin activated on the first round and the second round this plugins auto desactivate for him self?
__________________
Ricardo_dS 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 10:15.


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