Anonymous
public text v1 · immutable//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;
}