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

Knife strach


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
Exolent ID
BANNED
Join Date: Mar 2012
Old 03-14-2012 , 20:21   Knife strach
Reply With Quote #1

A little plain one is additional. If to a wall or land you beat the knife then will scintillate.
Attached Files
File Type: sma Get Plugin or Get Source (knife_strach.sma - 1000 views - 1.8 KB)

Last edited by xPaw; 03-15-2012 at 02:14.
Exolent ID is offline
Send a message via Skype™ to Exolent ID
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 03-14-2012 , 20:50   Re: Knife strach
Reply With Quote #2

You are not allowed to post .amxx files.
__________________
kramesa is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 03-15-2012 , 15:02   Re: Knife strach
Reply With Quote #3

just a tip

Code:
#include < amxmodx > #include < fakemeta > #include < hamsandwich > #pragma semicolon 1 #define PLUGIN_VERSION  "1.0.0" new gKnifeHitDecalIndex[ 2 ]; new gMaxClients; public plugin_init() {     register_plugin( "Knife Hit Decal", PLUGIN_VERSION, "tuty" );     RegisterHam( Ham_TraceAttack, "worldspawn", "bacon_TraceAttackWorldspawn" );         gMaxClients = get_maxplayers(); } public plugin_precache() {     gKnifeHitDecalIndex[ 0 ] = engfunc( EngFunc_DecalIndex, "{crack1" );     gKnifeHitDecalIndex[ 1 ] = engfunc( EngFunc_DecalIndex, "{crack2" ); } public bacon_TraceAttackWorldspawn( iVictim, iAttacker, Float:flDamage, Float:flDirection[ 3 ], iTr, iDamageBits ) {     if( 1 <= iAttacker <= gMaxClients )     {         if( get_user_weapon( iAttacker ) == CSW_KNIFE )         {             new Float:flEndOrigin[ 3 ];             get_tr2( iTr, TR_vecEndPos, flEndOrigin );                         UTIL_WorldDecal( flEndOrigin, gKnifeHitDecalIndex[ random_num( 0, charsmax( gKnifeHitDecalIndex ) ) ] );         }     } } stock UTIL_WorldDecal( Float:flOrigin[ 3 ], iDecal ) {     engfunc( EngFunc_MessageBegin, MSG_PAS, SVC_TEMPENTITY, flOrigin, 0 );     write_byte( TE_WORLDDECAL );     engfunc( EngFunc_WriteCoord, flOrigin[ 0 ] );     engfunc( EngFunc_WriteCoord, flOrigin[ 1 ] );     engfunc( EngFunc_WriteCoord, flOrigin[ 2 ] );     write_byte( iDecal );     message_end(); }


this will be better than your code you can use it
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
sami_spt
Veteran Member
Join Date: Sep 2012
Location: I<3 pussy cats
Old 03-28-2013 , 08:21   Re: Knife strach
Reply With Quote #4

The author is banned.. I dont think he can support it anymore.
sami_spt 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 13:46.


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