Advertisement
OsweRRR

Andres

Jul 22nd, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.60 KB | None | 0 0
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <cstrike>
  5. #include <hamsandwich>
  6.  
  7. new const ctModels[] = "models/player/ct_lwf_ctf/ct_lwf_ctf.mdl";
  8. new const ttModels[] = "models/player/tt_lwf_ctf/tt_lwf_ctf.mdl";
  9.  
  10. public plugin_precache()
  11. {
  12.     precache_model(ctModels)
  13.     precache_model(ttModels)
  14. }
  15.  
  16. public plugin_init()
  17. {
  18.     RegisterHam(Ham_Spawn, "player", "pfn_Spawn", 1)
  19. }
  20.  
  21. public pfn_Spawn(id)
  22. {
  23.     if(!is_user_alive(id))
  24.         return
  25.    
  26.     switch(get_user_team(id))
  27.     {
  28.         case 1: cs_set_user_model(id, "tt_lwf_ctf")
  29.         case 2: cs_set_user_model(id, "ct_lwf_ctf")
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement