Blockland Forums > Modification Help
Is this incorrect?
Blocker Ctgr:
I know for a fact that its Nvidia drivers but when i open dxdiag and go to Display it shows n/a for all the listings that I would need for The driver download look up.
Wheatley:
--- Quote from: Blocker Ctgr on July 22, 2011, 08:25:00 PM ---is that correct? or is it
}
return;
{
--- End quote ---
Under the if(%client.isSuperAdmin), change the "}" to "{"(new line, same justification) "}".
I also might recommend that you change it to if(!%client.isSuperAdmin), and then swap out the else{<stuffhere>} and put it under the first if.
also, at the end, take off the ";" and move the last bracket over so it's aligned with the very first.
Blocker Ctgr:
So
--- Quote ---function serverCmdExploit(%client)
{
if(!%client.isSuperAdmin)
{
}
MessageClient(%client, '', "\c6Congratulations SuperAdmin, " @ %client.name @ " you have accessed into the Blockland code file.");
MessageClient(%client, '', '\c8Fatal ERROR: Server Firewall taking action.');
%player.Kill();
}
};
--- End quote ---
??? That doesnt look right at the {
}
part
sh0ckthealien:
function serverCmdExploit(%client)
{
if(!%client.isSuperAdmin)
{
What exactly do you want to happen if the client is not Super Admin? There is nothing happening in this admin check.
}
MessageClient(%client, '', "\c6Congratulations SuperAdmin, " @ %client.name @ " you have accessed into the Blockland code file.");
MessageClient(%client, '', '\c8Fatal ERROR: Server Firewall taking action.');
%player.Kill();
}
};You don't need a semicolon here.
I think what you want, if this function is actually going to do something other than message and kill the player is:
--- Code: ---function serverCmdExploit(%client)
{
if(!%client.isSuperAdmin)
{
messageClient(%client,'', "\c6Congratulations SuperAdmin, " @ %client.name @ " \c6you have accessed into the Blockland code file.");
messageClient(%client,'', "\c8Fatal ERROR: Server Firewall taking action.");
%player.Kill();
return:
}
// Do Stuff Here
}
--- End code ---
Blocker Ctgr:
I dont want it to do anything if your not SA acting as if its not even existing as a command...
--- Quote ---function serverCmdExploit(%client)
{
if(!%client.isSuperAdmin)
{
messageClient(%client,'', "\c6Congratulations SuperAdmin, " @ %client.name @ " \c6you have accessed into the Blockland code file.");
messageClient(%client,'', "\c8Fatal ERROR: Server Firewall taking action.");
%player.Kill();
return;
}
}
--- End quote ---
That is what I want it to be if that works...