Quote:
Originally Posted by RateX
Have you actually did what I told you? Because if you did, you would have solved the cash problem by now.
|
Please stop responding if you did not understand and did not you read my post.
I added myself, but I do not get a message that I have killed the terrorist
PHP Code:
public EventDeathMsg( client )
{
static killer, victim, cash;
killer = read_data( 1 );
victim = read_data( 2 );
if ( !is_user_connected( victim ) )
return 0;
static CsTeams:teams[ 2 ];
if ( is_user_connected( killer ) )
teams[ 0 ] = cs_get_user_team( killer );
teams[ 1 ] = cs_get_user_team( victim );
if ( teams[ 0 ] == teams[ 1 ] || teams[ 0 ] != CS_TEAM_T || teams[ 1 ] != CS_TEAM_CT )
return 0;
if ( is_user_connected( killer ) && teams[ 0 ] == CS_TEAM_T )
{
cash = 100;
user_give_cash( killer, cash );
ColorChat( 0, NORMAL, "^x03 %s^x01 has killed^x03 %s^x01 Builder and gain^x04 %i^x01 CP.", GetUserName( killer ), GetUserName( victim ), cash );
}
if ( is_user_connected( killer ) && teams[ 0 ] == CS_TEAM_CT )
{
cash = 50;
user_give_cash( killer, cash );
ColorChat( client, NORMAL, "You killed^x03 %s^x01 Zombie and gain^x04 %i^x01 CP.", GetUserName( victim ), cash );
}
return 0;
}