Jeśli masz polonistkę tą inną, niż
sebul
a, to zapewne jest to wina pluginu polonistka.
amxx:
#include <amxmodx>
#include <amxmisc>
#include <colorchat>
#define PLUGIN "Polonistka"
#define VERSION "1.0"
#define AUTHOR "GT TEAM & ExTaZa?!"
#define END_WORD "-end-"
new FileDir[64], word1[20], word2[20], nick[33], TeamInfo
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say", "CmdSay")
get_configsdir(FileDir, 63)
formatex(FileDir, 63, "%s/slowa.ini", FileDir)
if(!file_exists(FileDir))
{
write_file(FileDir, ";Plugin By GT TEAM & ExTaZa?!", 0)
write_file(FileDir, ";W razie problemow pisz na GG : 10088886(Piotrek) - 40023429(Tomek) - 38862128(Grzesiek)", 1)
write_file(FileDir, "puzno pozno", 2)
write_file(FileDir, "-end-", 3)
}
TeamInfo = get_user_msgid ("TeamInfo")
}
public CmdSay(id)
{
new say[256], text[256], tLen, gracze[32], liczbagraczy, i, gracz
read_args(say, 255)
remove_quotes(say)
if(strlen(say) == 0)
return PLUGIN_HANDLED
new team[10]
get_user_team(id, team, 9)
for(new i = 0 ; read_file(FileDir, i, text,255, tLen) ; i++)
{
for(new i = 0 ; i < 255 ; i++)
{
text[i] = tolower(text[i])
say[i] = tolower(say[i])
if(text[i] == ';' || text[i] == '/')
continue
}
if(equal(text, END_WORD))
continue
parse(text, word1, 19, word2, 19)
replace_all(say, 255, word1, word2)
}
get_user_name(id, nick, 32)
if(!is_user_alive(id) && !(equali(team, "SPECTATOR")))
{
get_players(gracze, liczbagraczy, "b")
for(i = 0; i < liczbagraczy; i++)
{
gracz = gracze[i]
if(equali(team, "TERRORIST"))
{
new color[]="TERRORIST", teamName[10]
get_user_team (gracz, teamName, 9)
ZmienInfoGracza (gracz, color)
ColorChat(gracz, YELLOW, "*DEAD*^x03 %s ^x01: %s", nick, say)
ZmienInfoGracza (gracz, teamName)
}
else if(equali(team, "CT"))
{
new teamName[10]
get_user_team(gracz, teamName, 9)
new color[]="CT"
ZmienInfoGracza (gracz, color)
ColorChat(gracz, YELLOW, "*DEAD* ^x03%s ^x01: %s", nick, say)
ZmienInfoGracza (gracz, teamName)
}
}
}
else if(equali(team, "SPECTATOR"))
{
get_players(gracze, liczbagraczy, "b")
for(i=0; i<liczbagraczy; i++)
{
gracz=gracze[i]
new teamName[10]
get_user_team(gracz, teamName, 9)
new color[]="SPECTATOR"
ZmienInfoGracza (gracz, color)
ColorChat(gracz, TEAM_COLOR, "%s^x01 : %s", nick, say)
ZmienInfoGracza (gracz, teamName)
}
}
else if(is_user_alive(id))
{
get_players(gracze, liczbagraczy, "c")
for(i=0; i < liczbagraczy ; i++)
{
gracz = gracze[i]
if(get_user_team(id)==1)
{
new color[]="TERRORIST", teamName[10]
get_user_team (gracz, teamName, 9)
ZmienInfoGracza (gracz, color)
ColorChat(gracz, TEAM_COLOR, "%s^x01 : %s", nick, say)
ZmienInfoGracza (gracz, teamName)
}
else if(get_user_team(id)==2)
{
new color[] = "CT", teamName[10]
get_user_team(gracz, teamName, 9)
ZmienInfoGracza(gracz, color)
ColorChat(gracz, TEAM_COLOR, "%s^x01 : %s", nick, say)
ZmienInfoGracza(gracz, teamName)
}
}
}
return PLUGIN_HANDLED
}
public ZmienInfoGracza(player, team[])
{
message_begin(MSG_ONE, TeamInfo, _, player)
write_byte (player)
write_string (team)
message_end()
return PLUGIN_HANDLED
}
Wówczas spróbuj wyłączyć plugin na czas testów i jeśli zadziała, to zmień plugin na polonistkę Sebula.