Author Topic: Short Server Commands  (Read 2489 times)

Short meaning  they can fit on about one-two lines :P

You can activate these on your server by copy/pasting the text that looks like this into the console
Here's some of mine:

/setmusic song_name_with_underscores
Sets the music of the player object
function serverCmdsetmusic(%client,%music) {%music=strReplace(%music,"-","DASH"); %client.player.playAudio(0,"MusicData_"@%music); }

/say message_here
Sends a message like (NAME --> message_here)
function serverCmdsay(%client, %msg) {%msg=strReplace(%msg,"_"," "); announce(%client.name SPC "-->" SPC %msg);}

\me message_here (type /, not \)
Sends a message like (NAME message_here
function serverCmdme(%client, %msg) {%msg=strReplace(%msg,"_"," "); announce(%client.name SPC """ SPC %msg);}

/tags prefix suffix
Lets you change your tags in-game (you can also make them longer, colored, and fonted)
function serverCmdtags(%client, %prefix, %suffix) {findclientbyname(%client.name).clanprefix=(%prefix); findclientbyname(%client.name).clansuffix=(%suffix);}

/burn duration
Makes the player burn for %duration seconds
function serverCmdburn(%client, %time) {%time=strReplace(%time,"_"," "); findclientbyname(%client.name).player.burnPlayer(%time); announce(%client.name SPC "has been set on fire!");}

/slap name
Takes 1 health point away from the target
function serverCmdslap(%client, %target) {%extra=strReplace(%extra,"_"," "); findclientbyname(%target).player.addHealth("-1"); announce(%client.name SPC " slapped " SPC %target);}

/vel Xpower Ypower Zpower
Same as the add velocity event
function serverCmdvel(%client, %x, %y, %z) {findclientbyname(%client.name).player.addvelocity(%x SPC %y SPC %z);}

/want name message_here
Sends a message saying: NAME wants OTHERNAME to Message_here
function serverCmdwant(%client, %target, %extra) {%extra=strReplace(%extra,"_"," "); announce(%client.name SPC " wants " SPC %target SPC " to " SPC %extra);}

/namecolor paintcolorid
Sets the player's name to the paint color you selected
function servercmdnamecolor(%client, %col) {if(isObject(%client.player)) %client.player.setShapeNameColor(getColorIDTable(%col));}

(i use announce because it is shorter than chatmessageall)

Do you have any?!
[/sub]
« Last Edit: August 17, 2012, 11:28:05 AM by MARBLE MAN »

Some of these (slap + burn) are MSP only. Not default.

Some of these (slap + burn) are MSP only. Not default.
Well, does it bother you?

No, but i kinda guessed that this would just be default stuff, cuz with add ons, its obvious the commands that work with it.


announce is not a default function you silly.


announce is a default function with blockland what

announce is not a default function you silly.
yes it is...

announce("stuff");
is shorter than
chatmessageall("<color:ffff00>stuff");

and messageAll('', "\c3stuff"); is shorter than what you wrote!


yes it is...
I am doing this right now:

>starts up bl
>bl loads main menu
>opens console
>types echo(isFunction(announce));
>presses enter
>console: 0

As far as I know you can't delete functions.

ok

then why don't you try calling it announce("hi");


also, it's a server sided function

try opening a server first

Some of these (slap + burn) are MSP only. Not default.
what do you mean? they work perfectly without msp