[TT] nick: Siema
[CT] pittero: Witam:d
Takie przedrostki przed nickiem jak zrobic?

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Napisano 13.09.2010 19:01
Napisano 13.09.2010 19:57
Napisano 14.09.2010 12:14
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).
Użytkownik Pittero edytował ten post 14.09.2010 12:21
Napisano 14.09.2010 15:01
#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;
}
Napisano 14.09.2010 17:58
Napisano 14.09.2010 18:30
Napisano 14.09.2010 18:34
Napisano 14.09.2010 18:52
Napisano 16.09.2010 14:15
Napisano 16.09.2010 14:57
Napisano 16.09.2010 15:05
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
Użytkownik Seba edytował ten post 16.09.2010 15:07
Napisano 16.09.2010 16:15
Napisano 16.09.2010 16:27
#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
Napisano 16.09.2010 16:48
Napisano 16.09.2010 17:40
Napisano 16.09.2010 17:48
0 użytkowników, 1 gości, 0 anonimowych