Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Event_DeathMessage( )
- {
- new intKiller = read_data( 1 );
- new intVictim = read_data( 2 );
- new intHeadshot = read_data( 3 );
- if(native_is_lr_satrt())
- {
- if(cs_get_user_team( intVictim ) == CS_TEAM_T && is_user_lr(intVictim))
- {
- set_task(0.3, "Task_CreateBox", intVictim);
- }
- }
- new strWeapon[ 32 ];
- read_data( 4, strWeapon, 31 );
- if(intKiller == intVictim|| cs_get_user_team( intKiller ) != CS_TEAM_T|| cs_get_user_team( intVictim ) == CS_TEAM_T)
- {
- return;
- }
- new intCash = intHeadshot ? 250 : 200;
- if( g_PlayerKnives[ intKiller ][ playerUsingknife[ intKiller ] ] )
- {
- intCash += Knife_Info[ playerUsingknife[ intKiller ] ][ INFOKNIFE_EXTRA_CASH ];
- }
- if ( CountPlayers() > 5 )
- {
- pev(intVictim, pev_origin, g_ClientOrigin[ intVictim ]);
- set_task(0.3, "Task_CreateBox", intVictim);
- }
- else
- {
- ColorPrint( 0, "^1Need^4 5 Players ^1to ^3Drop Boxes" )
- }
- Player[ intKiller ][ PLAYER_CASH ] += intCash;
- Save( intKiller )
- ColorPrint(0, "^4%s^1 killed^4 %s^1 with ^3%s%s.", GetUserName( intKiller ), GetUserName( intVictim ), strWeapon, intHeadshot ? "^4(^1Headshot^4)^1" : "")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement