Raised This Month: $7 Target: $400
 1% 

Migraine


Post New Thread Reply   
 
Thread Tools Display Modes
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-02-2013 , 16:50   Re: Migraine
Reply With Quote #51

Command doesn't hurt, can safely let it.
Anyway, would be nice to remove the effect after some time.

Have updated plugin, minor update, can be skipped.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 05-02-2013 at 17:09.
ConnorMcLeod is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 05-02-2013 , 22:06   Re: Migraine
Reply With Quote #52

Quote:
Originally Posted by ConnorMcLeod View Post
Command doesn't hurt, can safely let it.
Anyway, would be nice to remove the effect after some time.

Have updated plugin, minor update, can be skipped.
Well in fact for me the command is really a problem, i dont want admins to use that, just on knife stab.
Btw i dont think him version does set screen back to normal after 5 seconds.
If you free can you do that edit for me?
__________________
Jhob94 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-03-2013 , 02:20   Re: Migraine
Reply With Quote #53

Maybe this is enough :

PHP Code:
#include < amxmodx >
#include < fakemeta >
#include < hamsandwich >

#tryinclude <cstrike_pdatas>

#if !defined _cbaseentity_included
        #assert Cstrike Pdatas and Offsets library required! Read the below instructions:   \
                
1. Download it at forums.alliedmods.net/showpost.php?p=1712101#post1712101   \
                
2. Put it into amxmodx/scripting/include/ folder   \
                
3. Compile this plugin locallydetailswiki.amxmodx.org/index.php/Compiling_Plugins_%28AMX_Mod_X%29   \
                
4. Install compiled plugindetailswiki.amxmodx.org/index.php/Configuring_AMX_Mod_X#Installing
#endif

#define VERSION "0.0.6"

new g_iMaxPlayers;
#define IsPlayer(%0)    ( 1 <= (%0) <= g_iMaxPlayers )

public plugin_init()
{
    
register_plugin("Migraine"VERSION"ConnorMcLeod");

    
RegisterHam(Ham_TakeDamage"player""OnCBasePlayer_TakeDamage_P"true);

    
g_iMaxPlayers get_maxplayers();
}

// int CBasePlayer :: TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, float flDamage, int bitsDamageType )
public OnCBasePlayer_TakeDamage_PidiInflictoriAttackerFloat:flDamagebitsDamageType // return int
{
    if( 
id != iAttacker && IsPlayer(iAttacker) && iAttacker && iInflictor && get_user_weapon(iAttacker) == CSW_KNIFE && pev(idpev_dmg_take) )
    {
        new 
iAttackerWeapon get_pdata_cbase(iAttackerm_pActiveItem);
        if( 
iAttackerWeapon && get_pdata_float(iAttackerWeaponm_flNextSecondaryAttackXO_CBASEPLAYERWEAPON) == 1.1 )
        {
            
set_pev(idpev_punchangleFloat:{180.00.00.0});
        }
    }

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 05-03-2013 at 02:21.
ConnorMcLeod is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 05-03-2013 , 13:39   Re: Migraine
Reply With Quote #54

Ok thanks

EDIT:

Does it set back to normal after 5 seconds?
__________________

Last edited by Jhob94; 05-03-2013 at 13:46.
Jhob94 is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 05-03-2013 , 17:11   Re: Migraine
Reply With Quote #55

Ok thanks. I edited, and its working. Btw it havent same look then the picture x)
__________________
Jhob94 is offline
TeddiBer
Senior Member
Join Date: Oct 2011
Old 05-18-2013 , 23:15   Re: Migraine
Reply With Quote #56

not working.
the command not give them migraine.
TeddiBer is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 10-20-2013 , 13:03   Re: Migraine
Reply With Quote #57

Quote:
Originally Posted by Jhob94 View Post
Ok thanks. I edited, and its working. Btw it havent same look then the picture x)
Quote:
Originally Posted by TeddiBer
not working.
the command not give them migraine.
I can confirm that. I just installed the plugin and it doesn't flip the screen, so I came here and checked the comments to see if anyone else was having this problem and it happens that it does.
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
Old 10-23-2013, 03:03
LordOfNothing
This message has been deleted by ConnorMcLeod. Reason: troll, or posting random confusing code, or posting for posts count
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 04-15-2019 , 15:36   Re: Migraine
Reply With Quote #58

amx_migraine "nick" not working

amx_migraine "nick" 1 working

example

amx_migraine "Krtola" not working

amx_migraine "Krtola" 1 working
__________________
Check my original plugins for cs 1.6 and subscribe on channel
Look at the video below to see blind grenade for zombies

https://www.youtube.com/watch?v=ORC7ZmoaipQ

Look at the video below to see Zombie Hide And Seek mode

https://www.youtube.com/watch?v=xpyYb65EgGs

Last edited by Krtola; 04-15-2019 at 15:38.
Krtola is offline
Send a message via Skype™ to Krtola
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 04-15-2019 , 16:00   Re: Migraine
Reply With Quote #59

If you read the first post again you will notice that it is exactly how the command has to be used.
__________________

Mordekay 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 22:28.


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