I looking for a make a script for make a bot (yes again

When bot Dracula kill, he win the blood (+ 20 HP)
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
addhook("kill", "bot_vampire")
function bot_vampire(killer, victim, weapon, x, y)
if player(id,"bot")==true and player(id,"name")=="Dracula" then
if weapon==50 then
parse('equip '..id..' '..65)
else
return
end
end
end
But, have a error(s) :

-> [C]: in function 'player'
Thanks for advance.