Say , wiadomosci
Pittero
13.09.2010
Witajcie jak uzyskac efekt na sayu taki ze:
[TT] nick: Siema
[CT] pittero: Witam:d
Takie przedrostki przed nickiem jak zrobic?
[TT] nick: Siema
[CT] pittero: Witam:d
Takie przedrostki przed nickiem jak zrobic?
Pittero
14.09.2010
hardbot, teraz wiadomosci na say_team w ogóle nie dzialaja...
Dead playersow tez nie dziala i spectow.
I jak np w innych pluginach mam return plugin_handled jak ktos cos na sayu wpisze to to pokazuje
Logi:
Edited by Pittero, 14.09.2010 12:21.
Dead playersow tez nie dziala i spectow.
I jak np w innych pluginach mam return plugin_handled jak ktos cos na sayu wpisze to to pokazuje
Logi:
L 09/14/2010 - 13:15:21: Start of error session. L 09/14/2010 - 13:15:21: Info (map "ba_jail_rofl_v2") (file "addons/amxmodx/logs/error_20100914.log") L 09/14/2010 - 13:15:21: String formatted incorrectly - parameter 6 (total 5) L 09/14/2010 - 13:15:21: [AMXX] Run time error 25 (plugin "TeamChat.amxx") - debug not enabled! L 09/14/2010 - 13:15:21: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 09/14/2010 - 13:15:23: String formatted incorrectly - parameter 6 (total 5) L 09/14/2010 - 13:15:23: [AMXX] Run time error 25 (plugin "TeamChat.amxx") - debug not enabled! L 09/14/2010 - 13:15:23: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 09/14/2010 - 13:15:30: String formatted incorrectly - parameter 6 (total 5) L 09/14/2010 - 13:15:30: [AMXX] Run time error 25 (plugin "TeamChat.amxx") - debug not enabled! L 09/14/2010 - 13:15:30: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 09/14/2010 - 13:16:08: String formatted incorrectly - parameter 6 (total 5) L 09/14/2010 - 13:16:08: [AMXX] Run time error 25 (plugin "TeamChat.amxx") - debug not enabled! L 09/14/2010 - 13:16:08: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 09/14/2010 - 13:16:13: String formatted incorrectly - parameter 6 (total 5) L 09/14/2010 - 13:16:13: [AMXX] Run time error 25 (plugin "TeamChat.amxx") - debug not enabled! L 09/14/2010 - 13:16:13: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 09/14/2010 - 13:20:18: Start of error session. L 09/14/2010 - 13:20:18: Info (map "ba_jail_rofl_v2") (file "addons/amxmodx/logs/error_20100914.log") L 09/14/2010 - 13:20:18: String formatted incorrectly - parameter 6 (total 5) L 09/14/2010 - 13:20:18: [AMXX] Run time error 25 (plugin "TeamChat.amxx") - debug not enabled! L 09/14/2010 - 13:20:18: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
Edited by Pittero, 14.09.2010 12:21.
DarkGL
14.09.2010
try
#include <amxmisc>
#include <colorchat>
#include <cstrike>
new iMaxPlayers
public plugin_init()
{
register_plugin("Team Chat", "3", "DarkGL");
register_clcmd("say", "hook_say");
iMaxPlayers = get_maxplayers();
}
public hook_say(id)
{
new SzAlive = is_user_alive(id);
new text[192]
read_argv(1,text,191)
if(equal(text,"")){
return PLUGIN_HANDLED;
}
new name[128];
get_user_name(id,name,127)
if(cs_get_user_team(id) == CS_TEAM_CT)
{
SzAlive ? format(text, 191, "[CT] %s: %s", name, text) : format(text, 191, "*DEAD* [%s] %s: %s", name, text)
}
else
{
SzAlive ? format(text, 191, "[TT] %s: %s", name, text) : format(text, 191, "*DEAD* [%s] %s: %s", name, text)
}
for(new i = 1; i <= iMaxPlayers; i++)
{
if(!is_user_connected(i)) continue;
if((SzAlive && is_user_alive(i)) || (!SzAlive && !is_user_alive(i)))
{
ColorChat(i,YELLOW,text)
}
}
return PLUGIN_HANDLED;
}
G[o]Q
14.09.2010
a jak team to spec to i tak pokaze mu tag TT to po pierwsze po drugie w colorchat uzyj 0 a nie baw sie z petlami
grankee
16.09.2010
po trzecie to nie pokaże każdemu nicka CT na niebiesko, ponieważ nie ma takiej opcji niestety, pokaże kolor teamu
w innej opcji (Twojej?) pokaże wszystko w jednym kolorze.
w innej opcji (Twojej?) pokaże wszystko w jednym kolorze.
Seba 16.09.2010
Choćby dlatego.format(text, 191, "*DEAD* [%s] %s: %s", name, text)
Bez pętli nie zakoloruje tekstu.a jak team to spec to i tak pokaze mu tag TT to po pierwsze po drugie w colorchat uzyj 0 a nie baw sie z petlami
http://forums.allied...ad.php?p=752407
Edited by Seba, 16.09.2010 15:07.
kyku
16.09.2010
#include <amxmodx> #include <cstrike> #include <colorchat> #define PLUGIN "SAY" #define VERSION "1.0" #define AUTHOR "kyku" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd ( "say", "scheck" ) } public scheck(id){ if(is_user_connected(id)){ new name[33],said[192] get_user_name(id,name,32) read_args ( said, 191 ) replace_all(said, 191, "^"", ""); if(strlen(said) > 0){ if(is_user_alive(id)){ if(cs_get_user_team(id) == CS_TEAM_CT) ColorChat(0,BLUE, "^x04[CT]^x03 %s^x01 : %s",name, said) else if(cs_get_user_team(id) == CS_TEAM_T) ColorChat(0,RED, "^x04[CT]^x03 %s^x01 : %s",name, said) else ColorChat(0,GREY, "^x04[CT]^x03 %s^x01 : %s",name, said) } else { if(cs_get_user_team(id) == CS_TEAM_CT) ColorChat(0, BLUE, "^x01*DEAD*^x04 [TT]^x03 %s^x01 : %s",name, said) else if(cs_get_user_team(id) == CS_TEAM_T) ColorChat(0, RED, "^x01*DEAD*^x04 [TT]^x03 %s^x01 : %s",name, said) else ColorChat(0, GREY , "^x01*DEAD*^x04 [TT]^x03 %s^x01 : %s",name, said) } } return PLUGIN_HANDLED; } return PLUGIN_CONTINUE; }pisalem dawno, dziala na pewno
Adminek AMXX.PL 16.09.2010
Wiadomość wygenerowana automatycznie
Ten temat został zamknięty przez moderatora.
Powód: Rozwiazane
Jeśli się z tym nie zgadzasz, raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.
Z pozdrowieniami,
Zespół AMXX.PL
Ten temat został zamknięty przez moderatora.
Powód: Rozwiazane
Jeśli się z tym nie zgadzasz, raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.
Z pozdrowieniami,
Zespół AMXX.PL