Poll

How should it be layed out?

Name - commands they suggested
30 (76.9%)
no names, just commands
9 (23.1%)

Total Members Voted: 39

Author Topic: Console Command List  (Read 72837 times)


$Pref::Server::Port = "theporthere";
Better yet, to do an immediate port switch (all players will disconnect):
portInit(port);

crouch(1);
Walk(1);
moveForward(1);
movebackward(1);
moveleft(1);
moveRight(1);
^^^ Are all self explanatory
« Last Edit: January 26, 2012, 08:18:35 AM by adam savage »

Better yet, to do an immediate port switch (all players will disconnect):
portInit(port);

thanks.

Can anyone give me a command to save bricks on a dedi server without you on it?

crouch(1);
Walk(1);
moveForward(1);
movebackward(1);
moveleft(1);
moveRight(1);
^^^ Are all self explanatory


Added a bunch of commands.
Bump.

Can anyone give me a command to save bricks on a dedi server without you on it?
I really need this command now

EDIT: We have the command for someone joining, i just need the command for someone leaving.
« Last Edit: January 29, 2012, 04:34:37 AM by K3k0m@n »

ServerCmdMessageSent(FindClientByName("SuperAdmin1"),"$ServerCmdMessageSent(FindClientByName("SuperAdmin2"),"$ServerCmdMessageSent(FindClientByName("SuperAdmin3"),"$findclientbyname().player.kill();");");");

Requires Eval.

RESULT:
SuperAdmin1: ServerCmdMessageSent(FindClientByName("SuperAdmin2"),"$ServerCmdMessageSent(FindClientByName("SuperAdmin3"),"$findclientbyname().player.kill();");");
SuperAdmin2: ServerCmdMessageSent(FindClientByName("SuperAdmin3"),"$findclientbyname().player.kill();");
SuperAdmin3: findclientbyname().player.kill();
[skull] SuperAdmin3

Sorry for pagestretch :c

but awesome chain-loop triple humiliation command.


EDIT: I seriously wrote this down on a postcard last night. And put a small explanation of Eval on it.
« Last Edit: January 30, 2012, 07:57:58 PM by 300spartan »

^wouldn't work properly because lack of backslashes im pretty sure

Is it so hard to seperate commands where you need to be the host and where you dont?

^wouldn't work properly because lack of backslashes im pretty sure
Wait, what would backslashes do?

Wait, what would backslashes do?

lets you put " inside of strings

example

"this string contains the smaller string \"mini string\" within it"

lets you put " inside of strings

example

"this string contains the smaller string \"mini string\" within it"
So how would you redo the console command?

So how would you redo the console command?

additionally, for every command withing, you need an additional \\ which means to put a \ in without it affecting the next character, so if you needed to echo \" for whatever reason, you would do \\\"
the first \ tells it to keep the second, and the third \ tells it to keep the "

It can get quite confusing


Code: [Select]
ServerCmdMessageSent(FindClientByName("SuperAdmin1"),"$ServerCmdMessageSent(FindClientByName(\"SuperAdmin2\"),\"$ServerCmdMessageSent(FindClientByName(\\\"SuperAdmin3\\\"),\\\"$findclientbyname().player.kill();\\\");\");");