Raised This Month: $ Target: $400
 0% 

knive flash plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mahooo60
Senior Member
Join Date: Apr 2005
Old 02-14-2009 , 08:41   knive flash plugin
Reply With Quote #1

i am not sure..ive give a look but couldnt find.

(damaged)by knive;the enemy gets flashed or gets shakeing screen...

help

Last edited by mahooo60; 02-14-2009 at 09:02.
mahooo60 is offline
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 02-14-2009 , 10:29   Re: knive flash plugin
Reply With Quote #2

test this

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Knife Shake"
#define VERSION "1.0"
#define AUTHOR "Starsailor"

new MsgScreenShake

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("Damage""Knife_Event""b""2!0""3=0""4!0")
    
MsgScreenShake get_user_msgid("ScreenShake")
}

public 
Knife_Event(id)
{        
    new 
attacker get_user_attacker(id)
    
    if( !
attacker ) return
    
    new 
weapon get_user_weapon(attacker)
    
    if(
attacker != id && weapon == CSW_KNIFE){  
        
message_begin(MSG_ONE,MsgScreenShake,{0,0,0},id)
        
write_short1<<14 )
        
write_short1<<14 )
        
write_short1<<14 )
        
message_end()
    }
    

__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor is offline
mahooo60
Senior Member
Join Date: Apr 2005
Old 02-14-2009 , 11:09   Re: knive flash plugin
Reply With Quote #3

yow thx i try out now
mahooo60 is offline
mahooo60
Senior Member
Join Date: Apr 2005
Old 02-14-2009 , 11:21   Re: knive flash plugin
Reply With Quote #4

tested and works but one thing; the shake is to weak :/
could the shake stronger like this??: http://forums.alliedmods.net/showthread.php?p=207502
mahooo60 is offline
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 02-14-2009 , 11:26   Re: knive flash plugin
Reply With Quote #5

is the same

v3x's plugin

PHP Code:
    write_short1<<14 );
    
write_short1<<14 );
    
write_short1<<14 ); 
my plugin
PHP Code:
    write_short1<<14 );
    
write_short1<<14 );
    
write_short1<<14 ); 
for more stronger

change it with this
PHP Code:
      write_short(255<< 14
      
write_short(10 << 14
      
write_short(255<< 14
__________________
Find my plugins here..

Ex - Spanish Moderator.

Last edited by Starsailor; 02-14-2009 at 11:36.
Starsailor is offline
mahooo60
Senior Member
Join Date: Apr 2005
Old 02-14-2009 , 11:32   Re: knive flash plugin
Reply With Quote #6

but it looks really weak :/
maybe can u make also also " weird angel" in it to confuse them pls m8??
mahooo60 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 01:29.


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