1. You should generally style your weapons. Makes it easier to debug. Also use the php tags
2. How to do it:
You would have to check first if the player is clicking the other player twice.
The function would look like:
PHP Code:
//#CLIENTSIDE
function onMouseDown(mode) {
if (mode == "double") {
say2("I just clicked my mouse twice"); //let´s you know that you have clicked twice
}
}
Than you would need a check if the mouse in on a player:
PHP Code:
//#CLIENTSIDE
function onMouseDown(mode) {
if (mode == "double") {
for (pl: players) {
if ( mousex in | pl.x + 0.5, pl.x + 2.5| && mousey in | pl.y, pl.y + 3|) { //we check if the mouse is on a player
pl.chat = "I just got clicked twice"; //the chat of the player you clicked twice
player.chat = "I just clicked twice"; //your chat that you clicked somebody twice
}
}
}
}
Now to the GUI part.
PHP Code:
//#CLIENTSIDE
function onCreated() {
new GuiTextCtrl("HereCouldBeYourName") { //next lines are just for the default GUI text
profile = GuiBlueTextProfile;
x = 10;
y = 10;
height = 20;
text = "Text";
}
player.chat = "test";
}
function onMouseDown(mode) {
if (mode == "double") {
for (pl: players) {
if ( mousex in | pl.x + 0.5, pl.x + 2.5| && mousey in | pl.y, pl.y + 3|) { //we check if the mouse is on a player
pl.chat = "I just got clicked twice"; //the chat of the player you clicked twice
player.chat = "I just clicked twice"; //your chat that you clicked somebody twice
if (pl != NULL) {
HereCouldBeYourName.text = pl.nick;
}
else HereCouldBeYourName.text = "No player found";
}
}
}
}
I hope this helped

If any questions just ask