Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Plugin generated by AMXX-Studio */
- #include < amxmodx >
- #include < engine >
- #include < hamsandwich >
- #pragma semicolon 1
- new const plugin_info[ 3 ][ ] = {
- "FallDown",
- "v0.1",
- "+ColdWar"
- };
- public plugin_init()
- {
- register_plugin( plugin_info[ 0 ] , plugin_info[ 1 ] , plugin_info[ 2 ] );
- RegisterHam( Ham_TakeDamage, "player", "Ham_TakeDamage_Pre" );
- }
- public Ham_TakeDamage_Pre( iVictim ,iInflictor ,iAttacker , Float:flDamage, bits )
- {
- new Float: g_flVelocity[ 3 ];
- for( new i = 0 ; i < 3 ; i ++ )
- g_flVelocity[ i ] = random_float( ( flDamage * 10.0 ) - 100.0, ( flDamage * 10.0 ) + 100.0 );
- entity_set_vector( iVictim, EV_VEC_velocity, g_flVelocity );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement