Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <fun>
- #include <csdm>
- new Round,
- bool:hsOnly[33];
- static None[]="";
- public aim_prac(id)
- {
- if (id && !((get_user_flags(id) & ADMIN_CVAR)))
- {
- client_print(id, print_console, "[Indungi] Nu ai acces la aceasta comanda.")
- return PLUGIN_CONTINUE
- }
- new arg[8]
- read_argv(1, arg, 7)
- if(equal(arg, None))
- {
- client_print(id, print_console, "amx_hsonly <on/off>");
- return PLUGIN_HANDLED;
- }
- if((equali(arg, "on"))||(equali(arg, "1")))
- {
- set_user_hitzones(0 ,0, 2)
- client_print(id, print_console, "[Indungi] Modul HS Only a fost activat.")
- new name[32]
- get_user_name(id,name,charsmax(name))
- colorchat_CC( 0, "!E[Indungi]!N Modul!V HS Only!N a fost activat de catre!V %s!N.", name)
- hsOnly[id] = true;
- }
- else
- {
- set_user_hitzones(0, 0, 255)
- client_print(id, print_console, "[Indungi] Modul HS Only a fost dezactivat.")
- new name[32]
- get_user_name(id,name,charsmax(name))
- colorchat_CC( 0, "!E[Indungi]!N Modul!V HS Only!N a fost dezactivat de catre!V %s!N.", name)
- hsOnly[id] = false;
- }
- return PLUGIN_HANDLED
- }
- public hsOnlyMsg(id)
- {
- Round++;
- if(Round == 1)
- {
- if(hsOnly[id] == true)
- {
- set_hudmessage 0, 128, 0, 0.06, 0.13, 0, 6.0, 12.0;
- show_hudmessage id, "HS ONLY: ON";
- }
- else if(hsOnly[id] == false)
- {
- set_hudmessage 200, 0, 0, 0.06, 0.13, 0, 6.0, 12.0;
- show_hudmessage id, "HS ONLY: OFF";
- }
- }
- }
- public plugin_init()
- {
- register_plugin("Aim Practice","1.0","James Romeril")
- register_concmd("amx_hsonly", "aim_prac", ADMIN_CVAR, "")
- register_logevent("hsOnlyMsg", 1, "1=Round_Start");
- }
- stock colorchat_CC(const id, const input[], any:...)
- {
- new count = 1, Jucatori[32]
- static msg[191]
- vformat(msg, 190, input, 3)
- replace_all(msg, 190, "!V", "^4") // Culoarea Verde
- replace_all(msg, 190, "!N", "^1") // Culoarea Normala a Chat-ului (galben)
- replace_all(msg, 190, "!E", "^3") // Culoarea Echipei : CT = Albastru | T = Rosu.
- if (id) Jucatori[0] = id; else get_players(Jucatori, count, "ch")
- {
- for (new Y = 0; Y < count; Y++)
- {
- if (is_user_connected(Jucatori[Y]))
- {
- message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, Jucatori[Y])
- write_byte(Jucatori[Y]);
- write_string(msg);
- message_end();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement