Think it is pretty straight forward question but could not find anything on that.
How to find if someone is pressing "middle mouse button" ?
Think it is pretty straight forward question but could not find anything on that.
How to find if someone is pressing "middle mouse button" ?
either:
/bind MOUSE3 "openscriptmenu blabla MOUSE3"
or use libcodPHP Code:
onMenuResponse()
{
self endon( "disconnect" );
while( true )
{
self waittill( "menuresponse" , menu , response );
if( response == "MOUSE3" )
{
//...
}
}
}
Last edited by serthy; 30th September 2013 at 18:17.
Thanks for quick help, I forgot that cod2 is so simple I can just do it with MOUSE3. ;lol