Why is this
function serverCmdKill(%client,%targetName)
{
Echo("Killing " @ %targetname);
if(%client.isAdmin)
{
findclientbyname(%targetname).player.kill();
}
}
not working.
My Script_KillPlayer.Zip File has this in it.
description.txt
nameCheck.txt
server.cs
Inside my description.txt file i have this.
Name: Kill
Author: Zefoo
Inside my nameCheck.txt file i have this
Script_KillPlayer
Inside my server.cs file i have this
function serverCmdKill(%client,%targetName)
{
Echo("Killing " @ %targetname);
if(%client.isAdmin)
{
findclientbyname(%targetname).player.kill();
}
}