Advertisement
Guest User

d12

a guest
Sep 2nd, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <fun>
  3. #include <cstrike>
  4. #include <hamsandwich>
  5.  
  6. public plugin_init()
  7. {
  8. register_plugin("Respawn", "1.", "LoMi")
  9. register_clcmd("say /respawn", "Respawnujse")
  10. }
  11. public Respawnujse(id)
  12. {
  13. if(is_user_alive( id )) {
  14. return PLUGIN_HANDLED; // Zaustavlja jer je igrac mrtav
  15. }
  16.  
  17.  
  18. if ( cs_get_user_team(id) == CS_TEAM_T )
  19. {
  20. ExecuteHam(Ham_Respawn, id)
  21. give_item(id, "weapon_glock18")
  22. }
  23.  
  24. else if ( cs_get_user_team(id) == CS_TEAM_CT )
  25. {
  26. ExecuteHam(Ham_Respawn, id)
  27. give_item(id, "weapon_usp")
  28. }
  29. return PLUGIN_HANDLED;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement