Hey i need help with this script, the server states theres an error and then disables scripting on the server.
function OnCommand(ID: Byte; Text: string): boolean;
begin
ks_OnCommand(ID, Text);
if Text = '/score' then begin
SetScore(ID,GetPlayerStat(ID,'Kills')+10);
// This will add 10 points to player 1's current score
end;
Result := false; // Return true if you want to ignore the command typed.
end;