Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Sublime AMXX Editor v2.2 */
- #include <amxmodx>
- #include <cc>
- #include <cstrike>
- new const color_rojo[] = "Rojo";
- new const color_azul[] = "Azul";
- new const color_gris[] = "Gris";
- public plugin_init()
- {
- register_plugin("test", "1.0", "Teni")
- register_clcmd("say color", "color_rojo")
- }
- public color_rojo(id)
- set_task(1.0, "printear", id)
- public printear(id)
- {
- switch(cs_get_user_team(id))
- {
- case CS_TEAM_CT:
- {
- colorChat(id, CT, "^3%s", color_azul)
- }
- case CS_TEAM_T:
- {
- colorChat(id, TERRORIST, "^3%s", color_rojo)
- }
- case CS_TEAM_SPECTATOR, CS_TEAM_UNASSIGNED:
- {
- colorChat(id, SPECTATOR, "^3%s", color_gris)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement