MegastoRM

Untitled

Jan 27th, 2013
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <hamsandwich>
  3. #include <cstrike>
  4.  
  5. new const model_head[] = "models/player/head/head.mdl"
  6. new const model_admin[] = "models/player/vip/vip.mdl"
  7.  
  8.  
  9. public plugin_init() {
  10. register_plugin("","","")
  11. RegisterHam(Ham_Spawn, "player", "Pocetak", 1);
  12. }
  13.  
  14. public plugin_precache()
  15. {
  16. precache_model(model_head)
  17. precache_model(model_admin)
  18. }
  19.  
  20. public Pocetak(id)
  21. {
  22. if(!is_user_alive(id) || !is_user_connected(id))
  23. return PLUGIN_CONTINUE;
  24.  
  25. if(get_user_flags(id) & ADMIN_RCON)
  26. cs_set_user_model(id, "head")
  27. else if(get_user_flags(id) & ADMIN_BAN)
  28. cs_set_user_model(id, "vip")
  29.  
  30. return PLUGIN_CONTINUE
  31. }
Advertisement
Add Comment
Please, Sign In to add comment