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 73581 times)

Is there also a get function to know how many players are in a server? Yeah i know, i can see it if i press F2, but i wanna know how to do it into console.

echo(clientGroup.getCount);

echo(clientGroup.getCount);
$Server::PlayerCount also works I think.

floating-point number is like:

1.24

Am I correct?


A 'float' is really just any decimal.

OOPS DOUBLE POST SORRY

Uhm, what?
i did that wrong
if i do this:
Quote
or this
Code: [Select]
it means bump

i did that wrong
if i do this:
Quote
or this
Code: [Select]
it means bump
You are better off just saying bump, you don't want to have to explain that every time you do it.


$Server::PlayerCount also works I think.

listClients(); is not limited to showing the amount, but will also show the names, BL_ID's and client ID's of all the players on the server.

Can someone post a command on how to write a function

function <function to write>{<function(s) to use>};
E.g.
function servercmdhide(%player){%player.hidenode("ALL");};

I think.

function <function to write>(<variables>){<function(s) to use>}
E.g.
function servercmdhide(%player){%player.hidenode("ALL");}
Fix'd
Functions don't have a semicolon while datablocks and packages do

Fix'd
Functions don't have a semicolon while datablocks and packages do
Thanks.

bump

and im guessing that this is the start of page 16.


function <function to write>{<function(s) to use>};
E.g.
 function servercmdhide(%player){%player.hidenode("ALL");};

I think.
I might be mistaken, but the first variable set in a servercmd is bound to the client.
the proper, I believe , is

 function servercmdhide(%client,%player){%player.hidenode("ALL");}

still wrong, that would require you to enter a name, not just work on you.
« Last Edit: December 21, 2011, 01:47:16 PM by Lugnut1206 »