MegastoRM

Untitled

Aug 10th, 2012
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <cs_player_models_api>
  3. #include <hamsandwich>
  4.  
  5. public plugin_init()
  6. {
  7. RegisterHam(Ham_Spawn,"player","spawnovan", 1)
  8. // Add your code here...
  9. }
  10.  
  11. public plugin_precache()
  12. {
  13. precache_model("models/player/sas/sas.mdl")
  14. }
  15.  
  16.  
  17. public spawnovan(id)
  18. {
  19. if(is_user_alive(id) && get_user_flags(id) & ADMIN_LEVEL_H)
  20. {
  21. cs_set_player_model(id, "sas")
  22. }
  23. else
  24. {
  25. cs_reset_player_model(id)
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment