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

TF2 *Request* Godmode until Attack


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xomp
BANNED
Join Date: Jul 2008
Old 12-30-2010 , 15:10   TF2 *Request* Godmode until Attack
Reply With Quote #1

Heyo,

Would be excellent to have a plugin that spawns a player with godmode on until they attack. I would venture to say this wouldn't be hard to implement with existing godmode plugins out there, but am no coder myself so

Anyways, just throwing that request out there!
xomp is offline
Send a message via Skype™ to xomp
Samantha
SourceMod Donor
Join Date: Feb 2010
Location: Madagascar
Old 12-30-2010 , 15:53   Re: TF2 *Request* Godmode until Attack
Reply With Quote #2

Done. Will post after testing.
__________________
"I give sopport and knolage in making extractions"
"MASTER(D) - dun0: are you mocing me?" -Master the grate

Plugins
Godmode Until Attack | No Block Team Filter
Extensions
Rcon Hooks
Samantha is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 12-30-2010 , 16:07   Re: TF2 *Request* Godmode until Attack
Reply With Quote #3

Well, here's my take on it.
This is a bare minimum version, maybe samantha's will have more options to it.
Attached Files
File Type: sp Get Plugin or Get Source (PacifistGodmode.sp - 245 views - 755 Bytes)
Tylerst is offline
Samantha
SourceMod Donor
Join Date: Feb 2010
Location: Madagascar
Old 12-30-2010 , 16:22   Re: TF2 *Request* Godmode until Attack
Reply With Quote #4

http://forums.alliedmods.net/showthr...90#post1382590
__________________
"I give sopport and knolage in making extractions"
"MASTER(D) - dun0: are you mocing me?" -Master the grate

Plugins
Godmode Until Attack | No Block Team Filter
Extensions
Rcon Hooks
Samantha is offline
xomp
BANNED
Join Date: Jul 2008
Old 12-30-2010 , 16:57   Re: TF2 *Request* Godmode until Attack
Reply With Quote #5

Quote:
Originally Posted by samantharp View Post
Thanks for this.. JAMES!
xomp is offline
Send a message via Skype™ to xomp
max42
Member
Join Date: Nov 2009
Old 01-06-2011 , 17:54   Re: TF2 *Request* Godmode until Attack
Reply With Quote #6

awsome idea

i would like to add this to my server but only allow admins with the P tag to use it

would it work if i changed :-

Quote:
public Action:Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
SetEntProp(client, Prop_Data, "m_takedamage", 0, 1)
}
to

Quote:
public Action:Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
if(!(GetUserFlagBits(client) & ADMFLAG_CUSTOM2))
{
SetEntProp(client, Prop_Data, "m_takedamage", 0, 1)
}
}


hmmm tested and seems to fail anyone know how i can get this to work for admins with P tage only ?

Last edited by max42; 01-06-2011 at 17:55. Reason: failed ><
max42 is offline
Samantha
SourceMod Donor
Join Date: Feb 2010
Location: Madagascar
Old 01-06-2011 , 22:44   Re: TF2 *Request* Godmode until Attack
Reply With Quote #7

Remove the !
__________________
"I give sopport and knolage in making extractions"
"MASTER(D) - dun0: are you mocing me?" -Master the grate

Plugins
Godmode Until Attack | No Block Team Filter
Extensions
Rcon Hooks
Samantha is offline
max42
Member
Join Date: Nov 2009
Old 01-07-2011 , 03:41   Re: TF2 *Request* Godmode until Attack
Reply With Quote #8

ahhh thanks samantharp works great now
max42 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 02:17.


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