I tested it on a scrip entirely made by me (well actually it was a practise script made of other scripts) and nothing, it just wont work this is it:
function ServerCmdaddname(%client,%Name)
{
{
if (%client.isAdmin==1 || client.isSuperAdmin==1)
{
new aiplayer(%name) { datablock=playernojet; position=%client.player.getposition(); };
MessageClient(%client,0,"\c3You have added the name\c6" @ " " @ %Name);
%client.Bot=%Name;
%Name.setshapename(%Name);
}
else
{
messageclient(%client,"Sorry, You are not a admin.");
}
{
//O_O
}
function ServerCmdremovename(%client,%Name)
{
{
if (%client.isAdmin==1 || client.isSuperAdmin==1)
{
%Name.kill();
}
else
{
messageclient(%client,"You have no names to remove.");
}
}
//O_O
}
function serverCmdsay(%client,%Name,%Msg)
{
if (%client.isAdmin==1 || client.isSuperAdmin==1)
{
messageAll(%Name,"\c3" @ %Name @ "\c6 " @ %Msg);
}
else
{
messageclient(%client,0,"HAHAHA you cant add names.");
}
}
Some of it if from the bot mod, I wanted admins to be able to hide there name on chat so I made this.