My scripts (there were other variations, but I place only "best"):
addhook("serveraction","bot.spray")
function bot.spray(id,"health")
if (player(id,"health")<50 then
player(id,"health")ai_spray
end
end
Error: <name> "..." near "health" - something like that, I don't understand.
Other sample:
addhook("serveraction","bot.spray")
function bot.spray(id,"reload")
if (player(id,"reload") then
ai_spray
end
end
similar error, but with reload.
Could someone write example of script that I have to create in order to make bots spray while reloading or having less than 50hp?
I have found on the forum that I need ai_spray, but how to use that?
I want to add only that I don't want links to ready scripts for bots, beacause I am not interested in resuts, but in how to achieve them.
I will be very gratefull for help. Also I am sorry for my English, but it is not my main language
