Raised This Month: $32 Target: $400
 8% 

SpawnProtection


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
a.aqua
Senior Member
Join Date: Jul 2009
Location: Russia
Old 04-16-2010 , 09:03   SpawnProtection
Reply With Quote #1

SpawnProtection


Author: a.aqua
Actual version: 1.6

Description:
At the spawn player will be invulnerable (zomg, google translator)
Credits:
  • Hafner
  • Fedcomp
  • xPaw
  • PomanoB

CVAR's:
  • sp_time (default: 10.0) - time for unvulnerable
  • sp_showmsg (default: 1) - show msg for player that he invulnerable?
  • sp_msgeffect (default: 0) - effect when hud messages are shown
    • 0 - default
    • 1 - flickery credits
    • 2 - write out (training room)
  • sp_noattack (default: 1) - when player invulnerable he don't may attack another players?
  • sp_hologram (default: 1) - when player invulnerable him model are holografic?

Translation:
  • [en] - a.aqua
  • [ru] - a.aqua
  • [bg] - papyrus_kn
  • [sv] - kanatzu
  • [es] - ironmaiden
  • [sr] - HaLLoWeN
  • [pl] - kubaku4
  • [sk] - i.898.i
  • [cz] - i.898.i
  • [de] - SeToY
  • [nl] - crazyeffect
  • If you want added your lang - welcome to thread.

Changelog:
  • ver. 1.2:
    • Added cvar sp_msgeffect for effect of hud message
    • Hook player spawn changed to ham method
  • ver. 1.4:
    • Code optimize and cleaned
    • Added translations to bg, sv, es
  • ver. 1.5:
    • Added cvar sp_noattack, fixed small bugs.
  • ver. 1.6:
    • Added cvar sp_hologram for hologram effect.

Screenshots / video:
Attached Files
File Type: sma Get Plugin or Get Source (SpawnProtection.sma - 1220 views - 2.4 KB)
File Type: txt SpawnProtection.txt (587 Bytes, 399 views)
__________________

Last edited by a.aqua; 07-18-2010 at 18:39. Reason: version 1.6
a.aqua is offline
Send a message via ICQ to a.aqua
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 04-16-2010 , 09:05   Re: SpawnProtection
Reply With Quote #2

Already made?
__________________
Retired.
Xalus is offline
kanatzu
Veteran Member
Join Date: Oct 2007
Location: Sweden
Old 04-16-2010 , 09:06   Re: SpawnProtection
Reply With Quote #3

Quote:
Originally Posted by Xalus View Post
Already made?
__________________




Quote:
Originally Posted by wrecked_ View Post
Stop saying words before I sodomize you with a cucumber.
kanatzu is offline
Send a message via MSN to kanatzu
HaLLoWeN
Member
Join Date: Nov 2009
Location: Serbia, Belgrade
Old 04-16-2010 , 09:11   Re: SpawnProtection
Reply With Quote #4

http://forums.alliedmods.net/showthread.php?p=17711Yea, alredy made.
HaLLoWeN is offline
a.aqua
Senior Member
Join Date: Jul 2009
Location: Russia
Old 04-16-2010 , 09:17   Re: SpawnProtection
Reply With Quote #5

I don't know

I use hamsandwich, it is so rationaly, no?
__________________
a.aqua is offline
Send a message via ICQ to a.aqua
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 04-16-2010 , 09:48   Re: SpawnProtection
Reply With Quote #6

Finally someone made it without using godmode. Bad way of hooking player spawn tho.
__________________
xPaw is offline
a.aqua
Senior Member
Join Date: Jul 2009
Location: Russia
Old 04-16-2010 , 10:00   Re: SpawnProtection
Reply With Quote #7

Quote:
Originally Posted by xPaw View Post
Bad way of hooking player spawn tho.
You propose to use Ham_Spawn?
__________________
a.aqua is offline
Send a message via ICQ to a.aqua
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 04-16-2010 , 10:01   Re: SpawnProtection
Reply With Quote #8

Quote:
Originally Posted by a.aqua View Post
You propose to use Ham_Spawn?
It is a must, not a suggestion
__________________
xPaw is offline
a.aqua
Senior Member
Join Date: Jul 2009
Location: Russia
Old 04-16-2010 , 10:53   Re: SpawnProtection
Reply With Quote #9

Ok, np.

#Version 1.2
#Changelog:
  • Added cvar sp_msgeffect for effect of hud message
  • Hook player spawn changed to ham method
__________________
a.aqua is offline
Send a message via ICQ to a.aqua
lazarev
Veteran Member
Join Date: Sep 2008
Old 04-16-2010 , 11:02   Re: SpawnProtection
Reply With Quote #10

RegisterHam(Ham_Spawn, "player", "SpOn")

RegisterHam(Ham_Spawn, "player", "SpOn",1)

In SpOn(id) add is_user_alive(id) check
lazarev 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 05:38.


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