I'm trying to learn how to script, and I am starting off with some pretty simple things. I tried to turn the console command
messageall('MsgAdminForce', "\c2PersonsName has become Super Admin (Auto)");
Into a Server Command but I failed. Here is the script, can you tell me what is wrong?
function serverCmdFakeAdmin (%client,%target)
{
if(%client.isAdmin == true && isObject(findclientbyname(%target)))
{
messageall('MsgAdminForce', "\c2findeclientbyname(%target).name@" has become Super Admin (Auto)");