Raised This Month: $218 Target: $400
 54% 

Spawn Protection


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   devicenull (200)
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 05-11-2004 , 21:50   Spawn Protection
Reply With Quote #1

NEWS
*6 December 2005* Re-Releasing Version 7.0
*4 December 2005* Thanks to VEN and Avalanche, the plugin should work fine now.
*28 December 2005* Thanks to Podunk there is a new cvar for controlling shell thickness.
*16 April 06* Thanks to SubStream for testing, the plugin now works.

TO-DO LIST
  • (Public Testing) Adding a new feature: Players can select what color they would like to glow during Spawn Protection Time.

PLUGIN STATUS
Version 7.0 Compiles fine, Tested - works fine.

PLUGIN
Code:
   
   CREDITS :
      Thanks to Xeroblood, JJkiller, KingPin for helping me make
      this plugin and Firestorm for helping adding a lot of things

   INSTALLING :
      Download .SMA to Scripting folder, run compiler, copy the
      file from Compiled folder and paste in Plugins folder, add the plugin name
      in the Amxx plugins.ini ie : spawnprotection.amxx

   DESCRIPTION :
      Protects players when the spawn from being killed

   CHANGELOG :
      Version 1.0 - First Release
      Version 2.0 - Fixed godmode cvar problems
      Version 3.0 - Added message time control cvar
      Version 4.0 - Fixed errors
      Version 5.0 - Added message control cvar
      Version 6.0 - Fixed errors - THANKS VEN!
      Version 7.0 - Cleaned up plugin and fixed errors - THANKS
                          AVALANCHE, VEN and SubStream
      Version 8.0 - Testing
Attached Files
File Type: sma Get Plugin or Get Source (spawnprotection.sma - 40556 views - 6.0 KB)

Last edited by Peli; 07-11-2006 at 06:30.
Peli is offline
Send a message via MSN to Peli
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 05-11-2004 , 22:07  
Reply With Quote #2

GJ Peli hope to see more of the same good work from you. will test it out in about ten minutes.
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 05-11-2004 , 22:11  
Reply With Quote #3

Thanks. A couple bugs with the cvar but it works when you set it to 1. I'll try to add more fun stuff if possible to newer versions in the future.
Peli is offline
Send a message via MSN to Peli
QwertyAccess
Veteran Member
Join Date: Feb 2004
Location: Enjiru Layer
Old 05-11-2004 , 22:44  
Reply With Quote #4

Great Job
__________________
QwertyAccess is offline
Fireace22
Member
Join Date: Apr 2004
Old 05-11-2004 , 23:20  
Reply With Quote #5

looks great, would it be possible to make it 5 seconds tho?
Fireace22 is offline
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 05-11-2004 , 23:42  
Reply With Quote #6

Yes , open the .sma and change this :
Code:
set_task(10.0,"god_off")
To :
Code:
set_task(5.0,"god_off")
You can change it to whatever number you want as long as you add .0 to the end save the file and your done.
Peli is offline
Send a message via MSN to Peli
Fireace22
Member
Join Date: Apr 2004
Old 05-11-2004 , 23:47  
Reply With Quote #7

ok sweet, thnx
Fireace22 is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 05-12-2004 , 00:28  
Reply With Quote #8

Suggestion:
Change that number in there to a #define
so do this
#define GOD_TIME 5.0
...
set_task(GOD_TIME,"god_off")
This way you can put the define at the top, and not have to dig through code ;)
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 05-12-2004 , 00:29  
Reply With Quote #9

Thank you I will edit that.
Peli is offline
Send a message via MSN to Peli
Ingram
Veteran Member
Join Date: May 2004
Old 05-12-2004 , 00:57  
Reply With Quote #10

Code:
set_hudmessage( 255, 0, 0, -1.0, -1.0, 0, 6.0, GOD_TIME, 0.5, 1.5, 4 )
there too, but i'm sure u already did that

gj
Ingram is offline
Reply


Thread Tools
Display Modes

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 09:27.


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