Hey guys. So i have a code, first of all, i get the champions name, then check whether a user has this champion and apply some privileges to him. It looks like this :
Code:
new champions_name[64];
new cclass = get_champion(id)
get_class_name(cclass, champions_name, 63)
// Then i do tonns of checks
if (equali(champions_name, "Podarok")
//bla bla bla
I do like 15-20 checks- it works fine , but im pretty sure there must be a way in optimising this code.