The 'leftmousebutton' variable might not be set anymore at the time the script is run though, so if people click fast then it might not work.
So either do (in old script):
PHP Code:
//#CLIENTSIDE
if (mousedown && strequals(#p(0),left)) {
putbomb 1,mousex,mousey;
}
or (new scripting):
PHP Code:
//#CLIENTSIDE
function onMouseDown() {
putbomb 1,mousex,mousey;
}
The onMouseDown event is only invoked on left mouse click, there is also onRightMouseDown for the right mouse button, may be should add some onMiddleMouseDown too.
http://wiki.graal.net/index.php/Crea...ent/GuiControl