Mam problem gdy chce skompilować ten plugin wyskakuje error:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#define PLUGIN "Zakaz reklamy w nicku"
#define VERSION "1.0.1"
#define AUTHOR "Mochi, edycja THOMAS"
new cvar,zezwolone[32],kara
new const reklama[][] =
{
"www.",
".pl",
".com",
".net",
".org",
".ru" ,
".waw",
".waw.",
".biz",
".eu",
".info",
".co",
".cn",
".de",
"89.",
"91.",
"83.",
"193.",
"212.",
"194.",
"195.",
"216.",
"79.",
"80.",
"91.",
"213.",
"77.",
"79.",
"178.",
"188.",
"94.",
"153.",
":27000",
":27001",
":27002",
":27003",
":27004",
":27005",
":27006",
":27007",
":27008",
":27009",
":27010",
":27011",
":27012",
":27013",
":27014",
":27015",
":27016",
":27017",
":27018",
":27019",
":27020",
":14000",
":27026",
":27025",
":27077",
":27033",
":27164",
":27070",
":27022",
":27041",
":27222",
":27122",
":27030",
":27276",
":27365",
":27196",
":27606",
":29023",
":27053",
":27068",
":27066",
":27088",
":27146",
":27039",
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
cvar = register_cvar("amx_reklama_www","www.Cs-Network.pl")
kara = register_cvar("amx_reklama_sp","1")
}
public client_putinserver(id)
{
new name[32]
get_user_name(id,name,31);
get_pcvar_string(cvar,zezwolone,31)
if(containi(name,zezwolone) != -1)
{
return PLUGIN_HANDLED
}
for(new i = 0; i < sizeof(reklama); i++)
{
if(containi(name, reklama[i]) != -1)
{
if(kara == 1)
{
server_cmd("kick #%d Reklama! Zmien nick!",get_user_userid(id))
}
else
{
set_user_info(id,"name","www.Cs-Network.pl")
}
}
}
return PLUGIN_CONTINUE
}
public client_infochanged(id)
{
new name[32]
get_user_info(id, "name", name,31)
get_pcvar_string(cvar,zezwolone,31)
if(containi(name,zezwolone) != -1)
{
return PLUGIN_HANDLED
}
for(new i = 0; i < sizeof(reklama); i++)
{
if(containi(name, reklama[i]) != -1)
{
if(kara == 1)
{
server_cmd("kick #%d Reklama! Zmien nick!",get_user_userid(id))
}
else
{
set_user_info(id,"name","www.Cs-Network.pl")
}
}
}
return PLUGIN_CONTINUE
}
Dam +


Dodatki SourceMod



Temat jest zamknięty











