client print have more arguments.
and i don't think you can add a whole word in one cell
Code:
#define word "gaben"
public swearcheck(id)
{
new szSaid[192]
read_args(szSaid,191)
new bool:found = false
new pos, i = 0
while ( i < g_swearsNum )
{
if ( (pos = containi(szSaid,g_swearsNames[i][1])) != -1 ) {
replace(szSaid, 191, g_swearsNames[i][1], word)
found = true
continue
}
++i
}
if ( found ){
new cmd[32]
read_argv(0,cmd,31)
engclient_cmd(id,cmd,szSaid)
}
return PLUGIN_CONTINUE
}
dunno if it would work, try it