Code: [Select]functionStarts the functionCode: [Select]function serverCmdTell the function it's going to be a serverCmdCode: [Select]function serverCmddieTells the function to trigger when you type /dieCode: [Select]function serverCmddie(%client)Records the client (computer) that entered the command for use in the actions sectionCode: [Select]function serverCmddie(%client){Opens up the actions section, where the main part of the script is.Let's go to the next part now.Code: [Select] %clientTargets the client of who entered /die.Code: [Select] %client.playerTargets the player of the client who entered /die.Code: [Select] %client.player.kill();Tells the player of the client who entered /die to, well, die.Code: [Select] %client.player.kill();}Closes the function.So we have...Code: [Select]function serverCmddie(%client){ %client.player.kill();}When you type /die, you die. It's pretty simple.
function
function serverCmd
function serverCmddie
function serverCmddie(%client)
function serverCmddie(%client){
%client
%client.player
%client.player.kill();
%client.player.kill();}
function serverCmddie(%client){ %client.player.kill();}