Forum
General
help whit classes script!!
help whit classes script!!
2 replies
1

So the lua check if the class id it's "0" or "1".
Try this function at spawn.
1
2
3
4
5
6
2
3
4
5
6
class_max = 6 -- Limit of class for bots.
addhook("spawn","sample.classes.spawn")
function sample.classes.spawn(id)
if sample.classes.class[id] == 0 then
	sample.classes.class[id] = math.random(1,class_max)
end
1

Offline