Advertisement
Guest User

Untitled

a guest
Jul 17th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. /* Sublime AMXX Editor v2.2 */
  2.  
  3. #include <amxmodx>
  4. #include <cc>
  5. #include <cstrike>
  6.  
  7. new const color_rojo[] = "Rojo";
  8. new const color_azul[] = "Azul";
  9. new const color_gris[] = "Gris";
  10.  
  11. public plugin_init()
  12. {
  13. register_plugin("test", "1.0", "Teni")
  14. register_clcmd("say color", "color_rojo")
  15. }
  16.  
  17. public color_rojo(id)
  18. set_task(1.0, "printear", id)
  19.  
  20. public printear(id)
  21. {
  22. switch(cs_get_user_team(id))
  23. {
  24. case CS_TEAM_CT:
  25. {
  26. colorChat(id, CT, "^3%s", color_azul)
  27. }
  28. case CS_TEAM_T:
  29. {
  30. colorChat(id, TERRORIST, "^3%s", color_rojo)
  31. }
  32. case CS_TEAM_SPECTATOR, CS_TEAM_UNASSIGNED:
  33. {
  34. colorChat(id, SPECTATOR, "^3%s", color_gris)
  35. }
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement