Witamy w Nieoficjalnym polskim support'cie AMX Mod X
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.
|
Say , wiadomosci
#1
Napisano 13.09.2010 19:01
[TT] nick: Siema
[CT] pittero: Witam:d
Takie przedrostki przed nickiem jak zrobic?
#2
Napisano 13.09.2010 19:57
Załączone pliki
#3
Napisano 14.09.2010 12:14
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).
Użytkownik Pittero edytował ten post 14.09.2010 12:21
#4
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;
}
#5
Napisano 14.09.2010 17:58
#6
Napisano 14.09.2010 18:30
#7
Napisano 14.09.2010 18:34
Chcesz wysłać do mnie PW ? użyj nazwy GoQ zamiast G[o]Q
Chcesz Kupić moduł płatności via Pukawka,Tserwery, Gamesol, Zabijaka do mojego sklepu? napisz PW cena to tylko 10 zł/sztuka
GG:6022845 (nie pomagam za free osobom ponizej rangi MoD)
#8
Napisano 14.09.2010 18:52
#9
Napisano 16.09.2010 14:15
w innej opcji (Twojej?) pokaże wszystko w jednym kolorze.
#10
Napisano 16.09.2010 14:57
#11
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
http://forums.allied...ad.php?p=752407
Użytkownik Seba edytował ten post 16.09.2010 15:07
#12
Napisano 16.09.2010 16:15
Chcesz wysłać do mnie PW ? użyj nazwy GoQ zamiast G[o]Q
Chcesz Kupić moduł płatności via Pukawka,Tserwery, Gamesol, Zabijaka do mojego sklepu? napisz PW cena to tylko 10 zł/sztuka
GG:6022845 (nie pomagam za free osobom ponizej rangi MoD)
#13
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
#14
Napisano 16.09.2010 16:48
Chcesz wysłać do mnie PW ? użyj nazwy GoQ zamiast G[o]Q
Chcesz Kupić moduł płatności via Pukawka,Tserwery, Gamesol, Zabijaka do mojego sklepu? napisz PW cena to tylko 10 zł/sztuka
GG:6022845 (nie pomagam za free osobom ponizej rangi MoD)
#15
Napisano 16.09.2010 17:40
#16
Napisano 16.09.2010 17:48
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
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych