fysiks... first you used ham to hook the death and that was good, ham is fast. so i think you should go back to ham.
why do ya do this:
Code:
public client_putinserver(id)
{
is_bot[id] = is_user_bot(id)
}
that is not needed at all, just use
is_user_bot(id). if you want something random to happen you can do something like this:
Code:
new rN = random_num(1, 100)
if (rN <= 66)
if (rN <= 33)
if (rN <= 10)
are you 100% sure that engclient_cmd works here?
i dont understand your chance thing either... and not your
Code:
if(chance(get_pcvar_num(cvar_chat_method)))
what is the chance that it will return false and use the "else" part ?? its 1 out of 100 as i see it.
if i where you i would start allover, and first thing i would do was to find how exec that say cmd on a bot, and after that find a good way to do get the random thing to happen...
if i should make the random say txt i would do like this in a function:
Code:
switch(random_num(1,6))
{
case 1:client_cmd(id,"say Something # 1")
case 2: client_cmd(id,"say Something # 2")
case 3: client_cmd(id,"say Something # 3")
case 4: client_cmd(id,"say Something # 4")
case 5: client_cmd(id,"say Something # 5")
case 6: client_cmd(id,"say Something # 6")
}
overall i think you make it way more complicated then it have to be...
cheers
__________________