Advertisement
Guest User

Untitled

a guest
Jun 30th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. public Event_DeathMessage( )
  2. {
  3. new intKiller = read_data( 1 );
  4. new intVictim = read_data( 2 );
  5. new intHeadshot = read_data( 3 );
  6.  
  7. if(native_is_lr_satrt())
  8. {
  9. if(cs_get_user_team( intVictim ) == CS_TEAM_T && is_user_lr(intVictim))
  10. {
  11. set_task(0.3, "Task_CreateBox", intVictim);
  12. }
  13. }
  14.  
  15. new strWeapon[ 32 ];
  16. read_data( 4, strWeapon, 31 );
  17. if(intKiller == intVictim|| cs_get_user_team( intKiller ) != CS_TEAM_T|| cs_get_user_team( intVictim ) == CS_TEAM_T)
  18. {
  19. return;
  20. }
  21.  
  22. new intCash = intHeadshot ? 250 : 200;
  23.  
  24. if( g_PlayerKnives[ intKiller ][ playerUsingknife[ intKiller ] ] )
  25. {
  26. intCash += Knife_Info[ playerUsingknife[ intKiller ] ][ INFOKNIFE_EXTRA_CASH ];
  27. }
  28.  
  29. if ( CountPlayers() > 5 )
  30. {
  31. pev(intVictim, pev_origin, g_ClientOrigin[ intVictim ]);
  32. set_task(0.3, "Task_CreateBox", intVictim);
  33. }
  34. else
  35. {
  36. ColorPrint( 0, "^1Need^4 5 Players ^1to ^3Drop Boxes" )
  37. }
  38.  
  39.  
  40. Player[ intKiller ][ PLAYER_CASH ] += intCash;
  41.  
  42. Save( intKiller )
  43.  
  44. ColorPrint(0, "^4%s^1 killed^4 %s^1 with ^3%s%s.", GetUserName( intKiller ), GetUserName( intVictim ), strWeapon, intHeadshot ? "^4(^1Headshot^4)^1" : "")
  45.  
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement