@ the joker: i want if its censeld of compleet that a var downloads -1 so wat i do is this
code:
function OnEvent_ChatWndReceiveMessage(wnd, user, message, kind)
{
Debug.Trace(kind);
    if(message.charAt(0) == "!")
    {
        var command = trim(message.substring(1, message.indexOf(" ")));
        var param = trim(message.substring(message.indexOf(" ")));
        
        Debug.Trace("Command: " + command + ", param: " + param);
        
        switch(command)
        {
            case "send":
            
                var valid = false;
                
                for(var i = 0; i < valid_files.length; i++)
                {
                    if(param == valid_files[i].getName())
                    {
                        downloaders++
                        totaaldownloaders++
                        Messenger.MyPersonalMessage = 'Downloaders nu: '+downloaders+ ', Totaal aantal bestanden gedownload: '+totaaldownloaders+',';
                        wnd.SendFile(valid_files[i].getPath());
                        valid = true;
                            
                        break;
                    }
                }
                if(!valid)
                {
                    var message;
                    message = "Het opgegeven bestand is niet geldig.\nJe kan kiezen uit de volgende bestanden:\n\n";
                
                    for(var i = 0; i < valid_files.length; i++)
                    {
                        message += (i+1) + ". " + valid_files[i].getName() + "\n";
                    }
                
                    wnd.SendMessage(message);
                }
            break;
        }
    }
                if (kind == 0)
                {
                downloaders--
                }
}            
the 0 means:
this is from scripting documentation:
MessageKind 
[enum] Number specifying the kind of message received. It can be one of the following identifiers:
0 - Unknown. 
1 - Text message typed by the user. 
2 - A wink being sent. 
3 - A voice clip being sent. 
4 - A search made with the "Search" button. 
5 - The result of a search made with the "Search" button. 
6 - A text message sent while the current user was offline. 
but you have a true and a false with SendFile
so maybe can i use that