i've added a bit more to it just for more practice, and there is a syntax error somewhere, but i cant find it
function servercmdkill(%client, %target)
{
if(%target $= "")
{
messageclient(%client, '',"\c6No target specified.");
}
else
{
%killer = %client.player.getname();
findclientbyname(%target).player.kill();
messageclient(%client, '',"\c6" @ %killer "\c6 killed you.");
}
}