The crucification function is particularily strange.
function serverCmdCrucify(%client,%user) {
%crucify = findClientByName(%user);
if(%client.isAdmin) {
if(isObject(%crucify)) {
for(%a = 0; %a <= clientGroup.getCount()-1; %a++) {
%member = clientGroup.getObject(%a);
if(%member == %crucify) {
%member.isJesus = false;
%member.player.kill();
}
}
messageAll('', "\c6" @ %crucify.name @ " has been \c3crucified\c6!");
} else {
messageClient(%client, '', "\c6This \c3Jesus\c6 does not exist!");
}
} else {
messageClient(%client, '', "\c6You do not have perission to \c3summon Jesus\c6.");
}
}
So this function goes through all clients pointlessly until it finds its target, and then crucifies them. This doesn't have to be Jesus, though it will say this Jesus doesn't exist anyway. If you type the wrong name, then "You do not have perission to summon Jesus."
I can understand the newbie mistake in there, but it seems you copy-pasted the function above it without checking for errors or things you didn't have to do.
Here is the fixed version of this function, with comments:
function serverCmdCrucify(%client,%user) {
if(%client.isAdmin) {
%crucify = findClientByName(%user); //Don't bother looking for the target if %client isn't admin
if(isObject(%crucify))
{
//if(%crucify.isJesus) //Uncomment this line if you want only Jesuses to be crucified, otherwise remove
//No need to scan all the clients; We did findClientByName, we have our target right here
%crucify.isJesus = false;
%crucify.player.kill();
messageAll('', "\c6" @ %crucify.name @ " has been \c3crucified\c6!");
//} //Same as above commented line
}
else
{
messageClient(%client, '', "\c6This \c3person\c6 does not exist!"); //It's not always a Jesus
}
} else {
messageClient(%client, '', "\c6You do not have permission to \c3crucify\c6."); //Fixed spelling error and what you can't do
}
}
Also, when Jesus dies, it says "Jesus has been died!" Your English teacher would serve you a beating with a whip if they ever read that.
P.S. Also, I managed to download the version of the addon where /tohell was absent. This probably doesn't matter.