AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [Request] : 2 Plugins (https://forums.alliedmods.net/showthread.php?t=176759)

Ang52 01-22-2012 12:17

[Request] : 2 Plugins
 
Someone can make me the following plugins:

Plugin 1
-------
I need a plugin that when player jumping and falls it will not hurt him.
( current health )

Plugin 2
-------
when player shoot is friends team and the FriendlyFire is On it will not damage
and is health will stay currently was.

thanks for help.

ConnorMcLeod 01-22-2012 12:33

Re: [Request] : 2 Plugins
 
2. What's wrong with mp_friendlyfire 0 ?

wickedd 01-22-2012 12:45

Re: [Request] : 2 Plugins
 
1.Search "no fall damage"

deadman909 01-22-2012 12:49

Re: [Request] : 2 Plugins
 
Like Connor said use mp_friendlyfire 0 and you can use Connors plugin for the fall damage

PHP Code:

#include <hamsandwich>

#define VERSION "0.0.1"
#define PLUGIN "No Fall Damage"

const DMG_FALL = (1<<5)      // Fell too far

public plugin_init()
{
    
register_plugin(PLUGINVERSION"ConnorMcLeod")
    
RegisterHam(Ham_TakeDamage"player""CBasePlayer_TakeDamage"false)
}

public 
CBasePlayer_TakeDamage(idiInflictoriAttackerFloat:flDamagebitsDamageType)
{
    if( 
bitsDamageType == DMG_FALL )
    {
        
set_hudmessage(0100200, -1.0, -1.00_3.00.0010.001, -1)
        
show_hudmessage(id"You should have take %.0f damage"flDamage)
        
SetHamReturnInteger(0)
        return 
HAM_SUPERCEDE
    
}
    return 
HAM_IGNORED



Ang52 01-22-2012 12:55

Re: [Request] : 2 Plugins
 
i found the no fall damage.

Connor i will explain better:

i want a auto friendlyfire on.

but when player hit is teammate it will not damage.

deadman909 01-22-2012 12:56

Re: [Request] : 2 Plugins
 
Quote:

Originally Posted by Ang52 (Post 1636664)
i found the no fall damage.

Connor i will explain better:

i want a auto friendlyfire on.

but when player hit is teammate it will not damage.

Than what is the point of it being on in the first place? The point of friendly fire on is so teammates are able to hurt one another.

ConnorMcLeod 01-22-2012 12:56

Re: [Request] : 2 Plugins
 
I've understood what you are asking, just wondering why you don't want to set mp_friendlyfire 0.

Ang52 01-22-2012 13:27

Re: [Request] : 2 Plugins
 
just give me the plugin please i can't give you more information.

wickedd 01-22-2012 14:20

Re: [Request] : 2 Plugins
 
He gave you the answer already.

Quote:

2. mp_friendlyfire 0

OxfordL 01-22-2012 14:31

Re: [Request] : 2 Plugins
 
Ang52 It's not a plugin it's a config in server.cfg


All times are GMT -4. The time now is 00:24.

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