Author Topic: Client MessageboxOK  (Read 3092 times)

Hi, im working on a script, but i need to be able to have a selected client have a messageboxOK popup, how do i do that if im the host, using a server-sided script? ive tryed everything i could think of, nothing has worked.

Replys appriciated!
-Ipquarx

Edit: Actually, your question is so unclear I have no idea what you are asking. Ignore this post.
« Last Edit: March 17, 2011, 04:36:48 PM by Treynolds416 »

Actually I think there's a premade command for it. Not sure of the specifics, search it.

commandtoclient(client,'MessageBoxOK',"Title","Message");

Code: [Select]
commandToClient(%client, 'MessageBoxOK', %title, %message);
I'm pretty sure there is a 5th argument that lets you do a callback, if they choose to press OK instead of X.

Like so:

Code: [Select]
commandToClient(%client, 'MessageBoxOK', %title, %message, 'ConfirmMessage');

function serverCmdConfirmMessage(%client)
{
// Code here.
}

You'd have to try it out, I can't say for certain.

I'm pretty sure there is too but I don't know how so I didn't mention it

Code: [Select]
commandToClient(%client, 'MessageBoxOK', %title, %message);
I'm pretty sure there is a 5th argument that lets you do a callback, if they choose to press OK instead of X.

Like so:

Code: [Select]
commandToClient(%client, 'MessageBoxOK', %title, %message, 'ConfirmMessage');

function serverCmdConfirmMessage(%client)
{
// Code here.
}

You'd have to try it out, I can't say for certain.
Correct. The callback MUST be a serverCmd. Was just doing a bunch of experimenting with this a few weeks ago

Correct. The callback MUST be a serverCmd. Was just doing a bunch of experimenting with this a few weeks ago
That was never the question. The question was: Does MessageBoxOK have a callback?

That was never the question. The question was: Does MessageBoxOK have a callback?
He just answered that, though.

It was kinda implied...

It wasn't implied, it was a straight out "Correct."

It wasn't implied, it was a straight out "Correct."
Correct. The callback MUST be a serverCmd. Was just doing a bunch of experimenting with this a few weeks ago


Details after statement. Newspapers do it all the time.

The internet argument to useful post ratio in this thread is pretty huge.

The internet argument to useful post ratio in this thread is pretty huge.

No it's not.