sorry for double post, if i edit the last message i will not be able to set the following code in a box
btw, try this one created by hattrick, i think it is better scripted
that lazy mofo always finds a way to write code in half the lines the others do
PHP Code:
#include < amxmodx >
#include < csx >
new const Float: g_flCoords[ ][ ] =
{
{ 0.50, 0.40 },
{ 0.56, 0.44 },
{ 0.60, 0.50 },
{ 0.56, 0.56 },
{ 0.50, 0.60 },
{ 0.44, 0.56 },
{ 0.40, 0.50 },
{ 0.44, 0.44 }
};
new g_iPosition[ 33 ];
new g_iSize;
public plugin_init( )
{
register_plugin( "Bullet Damage", "1.0", "Hattrick" );
g_iSize = sizeof( g_flCoords );
}
public client_damage( iAttacker, iVictim, iDamage )
{
if( ++g_iPosition[ iAttacker ] == g_iSize )
g_iPosition[ iAttacker ] = 0;
set_hudmessage( 0, 40, 80, Float: g_flCoords[ g_iPosition[ iAttacker ] ][ 0 ], Float: g_flCoords[ g_iPosition[ iAttacker ] ][ 1 ], 0, 0.1, 1.0, 0.02, 0.02, -1 );
show_hudmessage( iAttacker, "%i", iDamage );
}
Later Edit:
I tried, doesn't work, i don't think it can be done