Advertisement
iFenomenal

Untitled

Jan 25th, 2019
3,058
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <amxmodx>
  2. #include <cstrike>
  3. #include <hamsandwich>
  4.  
  5. public plugin_init() {
  6. RegisterHam(Ham_Spawn, "player", "ham_player_spawn", 1)
  7. }
  8.  
  9. public plugin_precache() {
  10. precache_model("models/player/tero/tero.mdl")
  11. precache_model("models/player/ct/ct.mdl")
  12. }
  13.  
  14. public ham_player_spawn(id) {
  15. if (cs_get_user_team(id) == CS_TEAM_T)
  16. {
  17. cs_set_user_model(id, tero)        
  18. }
  19. else if (cs_get_user_team(id) == CS_TEAM_CT)
  20. {
  21. cs_set_user_model(id, ct)          
  22. }
  23. else
  24. {
  25. cs_reset_user_model(id)
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement