How to make say command
Code:
/live <cttag> <ttag> <esl/kode5> <rec> (rec - record if defined)
I made this:
Code:
public cmdSay(id)
{
if (!access(id, ADMIN_LEVEL_A))
{
return PLUGIN_CONTINUE
}
new text[200]
read_args(text,199)
remove_quotes(text)
if(containi(text,"/live ")==0)
{
startLive(0)
format(text,199,"%s",text[6])
strbreak(text,glavniCT,31,text,199)
new i = strlen(text)
while(i>=0)
{
if(text[i]==' ')
{
break
}
i--
}
strbreak(text,glavniT,31,text,199)
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}