bot = findchainflags(flags, FL_CLIENT);
while (bot)
{
- if(clienttype(bot) == CLIENTTYPE_BOT)
+ if(IS_BOT_CLIENT(bot))
if(bot.netname==name)
return bot;
bot = findchainflags(flags, FL_CLIENT);
while (bot)
{
- if(clienttype(bot) == CLIENTTYPE_BOT)
+ if(IS_BOT_CLIENT(bot))
{
if(++c==number)
return bot;
if(n >= 3)
vol = stof(argv(1));
if(n >= 4)
- atten = stof(argv(1));
+ atten = stof(argv(2));
precache_sound(f);
sound(self, chan, sample, vol, atten);