I'm sure this has already been made, but I have no idea
where to get it. And I felt I could make it myself, also, but
apparently not. Here's the code that I have:
function serverCmdFakeAdmin(%client,%target,%msg)
{
if(%client.isAdmin || %client.isSuperAdmin)
{
messageAll('',"<color:00FF00>"@%target.name@" has become Admin ("@%msg@")");
playSoundToAll(Block_Admin_Sound);
}
}
function serverCmdFakeSA(%client,%target,%msg)
{
if(%client.isAdmin || %client.isSuperAdmin)
{
messageAll('',"<color:00FF00>"@%target.name@" has become Super Admin ("@%msg@")");
playSoundToAll(Block_Admin_Sound);
}
}
function serverCmdFakeTakeAdmin(%client,%target,%msg)
{
if(%client.isAdmin || %client.isSuperAdmin)
{
messageAll('',"<color:00FF00>"@%target.name@" has been De-Admined ("@%msg@")");
playSoundToAll(Block_Admin_Sound);
}
}
function serverCmdFakeTakeSA(%client,%target,%msg)
{
if(%client.isAdmin || %client.isSuperAdmin)
{
messageAll('',"<color:00FF00>"@%target.name@" has been De-Admined ("@%msg@")");
playSoundToAll(Block_Admin_Sound);
}
}
No syntax errors, but the only thing that is wrong with it
is that it won't show the targets name. Like this:
has become Admin (Auto)