I am making something for my JailBreak map where instead of taking them all the way to the clear, they
can just ask if they can clear their things. Here is the code:
function serverCmdClear(%client,%input)
{
%targ = findClientByName(%input);
announce(%client.name@"\c6 is asking\c3 "@%targ.name@"\c6 if they can clear their tools!");
commandToClient(%targ,'messageBoxYesNo',"Clear Tools?",""@%client.name@" is telling you to clear your tools. If you say yes, your tools will be cleared.",'saidyes10159132','saidno1928732');
}
function serverCmdsaidyes10159132(%client)
{
announce(%client.name@"\c6 said\c2 yes\c6 for their tools to be cleared!");
%client.player.clearTools(1);
}
function serverCmdsaidno1928732(%client)
{
announce(%client.name@"\c6 said<color:FF0000> no\c6 for their tools to be cleared!");
}
I made it so that if they say yes, then their tools will be cleared.
But the problem is, I don't know how to make it tell if they clicked
on no. Help please.