commandToClient("SetAdminLevel","BOTORPLAYERNAME","2");
Well, im trying to make a bot admin, and i know the code to do so is something like this:Code: [Select]commandToClient("SetAdminLevel","BOTORPLAYERNAME","2");Please help
Im useing a code to spawn a bot, and i need a code to make the bot into admin.
Its possible. Ive done it about a year ago.
function servercmdadmin(%c){ %c.isAdmin == 1; return;}
////////////////////////////////////////////////////////////// Creates the client object needed for a player object //// //// //// %bot - The bot that is being fake cliented. //// //// //// halts: //// If the bot object is invalid //// If the bot object has a client object //// //// //////////////////////////////////////////////////////////////function emulateClient(%bot){ if(!isObject(%bot) || isObject(%bot.client)) return; %bot.client = new SimObject() { isAdmin = 0; };}
you just use ___.isAdmin == 1
.isAdmin=1;