Double Toast.
Alright, So I've got some more code done.
Here's the code:
function serverCmdWarn(%client, %name)
{
if(%client.isSuperAdmin)
{
%target = findClientByName(%name);
if(isObject(%target))
{
commandToClient(%target, 'MessageBoxOK', "This is a warning!", "This is warning number);
$Pref::Server::Warnings[%target.bl_ID]++;
if($Pref::Server::Warnings[%target.bl_ID] = 3)
{
commandtoclient(%client, 'MessageBoxYesNo', "Warnings", "This person has 3 warnings! Would you like to kick them?", 'saidyes');
}
}
}
else
{
messageClient(%client, '', "\c6You must be Super Admin to use this command.");
}
}
function ServerCmdSaidYes(%client)
{
}
What I want to know, Is how would I get %target from function serverCmdWarn to use in function ServerCmdSaidYes?
Also, I dont know if I did messageboxyesno right, or did I?
edit: Oh, I just noticed i havnt finished the commandToClient(%target, 'MessageBoxOK', "This is a warning!", "This is warning number);
part of it. I was skipping around, So for that part, How would I include the warnings var in the message?