All pastes #490701 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-05-16 05:17 UTC
rendered paste body
//Console Commands//
switch (global.consoleaction){
    case 1: //Case 1: /kick (user)
        temp = string_copy(global.consoleaction,0,5);
        if (temp == "/kick "){
            temp = string_replace(global.consoleaction,"/kick ","");
            if (file_exists(temp+".ini")){
                for (i = 0; i < players; i++){
                    if (global.playername[i] == temp){
                        //Kick the user
                        clearbuffer();
                        writebyte(2); //Kick
                        writestring("You have been kicked from the server.");
                        sendmessage(global.player[i]);
                    }
                }
            }
        }
        break;
}