Well, I am opening the post again because Space Guys advice didn't work, At least it didn't work all the way. I put the host check in that he told me to put in, and when I did that, no matter what setting the preference was on, not even the host could use it, and now I put == false on both of the admin checks, and now it works a little better but, No matter what setting it is on, only the host can use the command. Here is the code
if(isFile("Add-Ons/System_ReturnToBlockland/server.cs"))
{
if(!$RTB::RTBR_ServerControl_Hook)
exec("Add-Ons/System_ReturnToBlockland/RTBR_ServerControl_Hook.cs");
RTB_registerPref("Kill Command","Server Commands","Kill::Users","list SuperAdmin 0 Admins 1 Host 2", "Kill Command","0", 0, 1);
}
else
{
$Kill::Users = "0";
}
package kill
{
function servercmdkill(%client, %user)
{
if($kill::Users == 0 && !%client.isSuperAdmin)
{
messageClient(%client, '', '\c6You must be a super admin to use this command.');
return;
}
if($kill::Users == 1 && !%client.isAdmin)
{
messageClient(%client, '', '\c6You must be an Admin to use this command.');
return;
}
if($Kill::User == 2 && !((isObject(localclientconnection) && %client.getID() == localclientconnection.getID()) == false) || %client.bl_id == getNumKeyID() == false)
{
messageClient(%client, '', '\c6You must be the Host to use this command.');
return;
Please tell me how to fix this so that when it is on Admins, both admins can use it, when it is on Super admins, Super Admins can use it, and when it is on Host, only the host can use it.