Author Topic: Client cmd activate packaging  (Read 856 times)

Can someone tell me how to activate a package with a client command?

activatepackage(dumb);

...... You answered your own question..

...... You answered your own question..
no, i want to make a clientcmd in game.

if i do /dumb it will activate the package.

I have no idea what you mean, but one of these two should answer your question.

Code: [Select]
function serverCmdactivatepackage(%cl,%package) {
if(%cl.isSuperAdmin && isPackage(%package))
activatePackage(%package);
}

Code: [Select]
//Client; I HIGHLY recommend you don't use something like this.
function clientCmdactivatePackage(%package) {
if(isPackage(%package))
activatePackage(%package);
}

//Server
function serverCmdactivatepackage(%cl,%package,%target) {
%target = findClientbyName(%target);
if(%cl.isSuperAdmin && isObject(%target) && isPackage(%package))
commandToClient(%target,'activatePackage',%package);
}