viewing paste Unknown #19507 | C

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14
ACMD(color) {
    int color = 0;
 
    if(!message || !*message || (sscanf(message, "%x", &color)) {
        clif->message(fd, "Usage: @color <HEX_COLOR>");
        return false;
    }
 
    color = message;
    if(color == 0) color = 0x000000;
    
    pc_setglobalreg_str(sd, script->add_str("CHAT_COLOR$"), color);
    return true;
}
Viewed 696 times, submitted by Guest.