Advertisement
VukRadunovic

Untitled

Oct 6th, 2013
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <hamsandwich>
  4. #include <cstrike>
  5.  
  6. native give_item( index, const item[] )
  7.  
  8. public plugin_init()
  9. {
  10. register_plugin( "auto respawner", "50", "DeathRun Serbia" )
  11.  
  12. RegisterHam( Ham_Killed, "player", "Smrt_igraca", 1 )
  13.  
  14. register_clcmd( "say /respawn", "respawnuj" )
  15. }
  16. public client_putinserver( id )
  17. {
  18. set_task( 1.2, "respawnuj", id )
  19. }
  20. public respawnuj( id )
  21. {
  22. if( !is_user_alive( id ) && cs_get_user_team( id ) == CS_TEAM_CT )
  23. {
  24. ExecuteHamB( Ham_CS_RoundRespawn, id )
  25. give_item( id, "weapon_knife" )
  26. give_item( id, "weapon_scout" )
  27. give_item(id,"ammo_0nato")
  28. }
  29. }
  30. public Smrt_igraca( id )
  31. {
  32. if( is_user_connected( id ) )
  33. {
  34. set_task( 0.2, "respawnuj", id )
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement