registerOutputEvent(GameConnection, "serverCmdClearAllBricks", 0, 1);parent, function, variables, attach client
yes...
Never mind. What am I doing wrong?
function GameConnection::ClearAllBricks(%client){ if ( %client.getRawIP() $= "local" || %client.getBLID() == getNumKeyID() ) { serverCmdClearAllBricks( %client ); }}registerOutputEvent(GameConnection, "ClearAllBricks", 0, 1);
Try this:Code: [Select]function GameConnection::ClearAllBricks(%client){ if ( %client.getRawIP() $= "local" || %client.getBLID() == getNumKeyID() ) { serverCmdClearAllBricks( %client ); }}registerOutputEvent(GameConnection, "ClearAllBricks", 0, 1);
The event still doesn't show up.
Show up where? in the add on list or in game?
are you resetting the server/map or just execing it?lists won't update until you reset map, server, or blockland