NPC Code:
//#CLIENTSIDE
if(created){
setstring this.parts,skin,coat,sleeves,shoes,belt;
}
if(playerchats){
tokenize #c;
pos = lindexof(#t(0),this.parts);
if(pos>=0){
if(startswith(#t(0),#c)){
setplayerprop #c,[#I(this.parts,pos) was changed to color #t(1)];
if(pos == 0) setplayerprop #C0,#t(1);
if(pos == 1) setplayerprop #C1,#t(1);
if(pos == 2) setplayerprop #C2,#t(1);
if(pos == 3) setplayerprop #C3,#t(1);
if(pos == 4) setplayerprop #C4,#t(1);
}
}
}
Too simple, please try to understand the code and feel free to use it.
