AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Spawn Protection (https://forums.alliedmods.net/showthread.php?t=1886)

Peli 05-11-2004 20:50

Spawn Protection
 
3 Attachment(s)
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


kingpin 05-11-2004 21:07

GJ Peli :) hope to see more of the same good work from you. will test it out in about ten minutes.

Peli 05-11-2004 21:11

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. :)

QwertyAccess 05-11-2004 21:44

:roll: Great Job 8)

Fireace22 05-11-2004 22:20

looks great, would it be possible to make it 5 seconds tho?

Peli 05-11-2004 22:42

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. :)

Fireace22 05-11-2004 22:47

ok sweet, thnx :D

devicenull 05-11-2004 23:28

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 ;)

Peli 05-11-2004 23:29

Thank you I will edit that.

Ingram 05-11-2004 23:57

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


All times are GMT -4. The time now is 22:02.

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