I tried:
$CanGrantScore = 1;
if(isFile("Add-Ons/System_ReturnToBlockland/server.cs"))
{
if(!$RTB::RTBR_ServerControl_Hook)
exec("Add-Ons/System_ReturnToBlockland/RTBR_ServerControl_Hook.cs");
RTB_registerPref("Score Grant", "Score Grant Prefs", "$CanGrantScore","list Admin 1 SuperAdmin 2 Host 3","Server_ScoreGrant", 0, 0, 1);
}
function servercmdgrantscore(%client, %player, %number)
{
%Status = %client.isSuperAdmin + %client.isAdmin;
%player = findClientByName(%player);
if(findLocalClient() == %client || %client.bl_id == getNumKeyID() || !%client)
{
%Status = 1;
}
if(%Status >= $CanGrantScore)
{
if(!isObject(%player))
return messageClient(%client, '', "<color:f0f0f0>Player not found.");
{
findclientbyname(%player).incscore(%number);
}
else
{
commandToClient(%client, 'centerPrint', "<color:f0f0f0>You must be a <color:FFFF00>admin<color:f0f0f0> to grant points.", 4);
}
}
But it's not working.