Hello.
I want to replace a word with '*'
I've done the code for that
PHP Code:
public cmdSay(id)
{
new szArg[128], iPos,len;
read_args(szArg, 127);
if((iPos = containi(szArg, "word")) != -1)
{
len = strlen("word");
while(len--)
{
szArg[iPos++] = '*';
//client_prin(id,print_chat, "%s",szArg);
}
}
}
If i uncomment //client_prin(id,print_chat, "%s",szArg); it shows all steps like : if i say hello word it will show me hello *ord hello **rd etc.. else when i write the word, it shows on chat my word without censure.
Something i expected?