PHP Code:
new said[6], i = 0
read_argv(1, said, 5)
while (containi(said[i], "> !") != -1)
{
i++
}
while (said[i] == '!')
{
i++
}
hi, i'm trying to modify admin chat, so when admin types !hi it will make a hud message like @hi, but also i want to make a hud message appear he admin types > !hi
and this part i can't get to work, when admin types > !hi nothing happens, it just shows in chat like usual
and i tried
PHP Code:
if (containi(said, "> !") != -1)
{
i++
log_amx("> ! Found!")
}
but when admin typed > !hi
nothing it didn't found it )= no amx log was made
and if i do while (containi(said[i], "!") != -1) it works only for first characters, i want to make string like "> !hi" make an hud chat like @hi and "> !!hi" make it like @@hi
__________________