serverCmdUseInventory

Author Topic: serverCmdUseInventory  (Read 1198 times)

I'm attempting to create a menu using serverCmdUseInventory and centerprint, but this would be used inside a minigame with building disabled. When the client has building disabled it just pops up that Building is currently disabled, which is client-sided I believe so I can't just make that message go away. If I use commandtoclient(%cl, 'setbuildingdisabled', false); then it just says they don't have any bricks.

Is there a way to give clients some bricks or disable the centerPrint when building is disabled?

function serverCmdUseInventory(%cl, %slot) {
   commandToClient(%cl, 'centerPrint', %slot);
}


I guess when building is disabled the client doesn't even send serverCmdUseInventory to the server anyways.
« Last Edit: February 06, 2015, 08:22:33 PM by Crøwn »

I say just enable building, seems like it'd work out better.

Well the issue with that is that I don't want people placing random ghostbricks down.

How about unmountimg the brick tool when they pull it out?

If you're packaging the functions anyways you can just not call the parent, then the brick tool wont be mounted.

Watch out for serverCmdInstantUseBrick.