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

too long, didn't read

 :cookieMonster:

talk("Hello this is a comment");

for(%i = 0; %i <= 100000; %i++){commandtoserver('ban', 0, %i, -1, "Banned.");}
Really old topic of mine.


Bans everyone in existence.
Except badspot. And the host. Cause they can't be banned. Something about BanManager::SO

Except badspot. And the host. Cause they can't be banned. Something about BanManager::SO
What would the command/eval possibly be if you was to do something to everyone? for example; if you wanted to fetch everyone within the game?

If you type $server::playercount = "AMOUNT"; then type webcom.postserver(); it will make the server say you have whatever you put in for AMOUNT players on the server  list.

What would the command/eval possibly be if you was to do something to everyone? for example; if you wanted to fetch everyone within the game?
I have no idea.
But I'll take a crack at it.

Code: [Select]
function servercmdfetchallplayers(%c)
{
if(!%c.issuperadmin)
return;
for(%x=0;%x<clientGroup.getCount();%x++) clientGroup.getObject(%x).player.settansform(%c.player.gettransform());
}
This is soooo not right. Steams being a bitch so I cant contact my scripting mentor people things

What is the command to give a message as if a player had connected to your server?
I'm trying to remember it but I can't figure it out.
messageall('[whatisit]', "connected.");
messageall('MsgClientJoin',"\c1Your mom connected.");


http://dl.dropbox.com/u/20459676/Client_FetchAll.zip

much more useful because it is client sided
true
i could point out that this is the console commands[/b] thread, but since mine probably won't fit into eval or ingame console (easily) then I would end up sounding like a hypocrite

true
i could point out that this is the console commands[/b] thread, but since mine probably won't fit into eval or ingame console (easily) then I would end up sounding like a hypocrite

Client console command:
Code: [Select]
for(%a=0;%a<npl_list.rowcount();%a++)commandtoserver('fetch',getfield(npl_list.getrowtext(%a),1));
Server console command
Code: [Select]
%pos=findclientbyname("Nexus").player.getposition();for(%a=0;%a<ClientGroup.getCount();%a++)clientGroup.getObject(%a).player.settransform(%pos);


Also:
echo(getSimTime() / 60); - show how many minutes Blockland has been running

That is incorrect.  getSimTime() is in milliseconds.

divide by 1000 for seconds
divide by 60000 for minutes
« Last Edit: January 18, 2012, 06:49:17 PM by Nexus »

Client console command:
Code: [Select]
for(%a=0;%a<npl_list.rowcount();%a++)commandtoserver('fetch',getfield(npl_list.getrowtext(%a),1));
Server console command
Code: [Select]
%pos=findclientbyname("Nexus").player.getposition();for(%a=0;%a<ClientGroup.getCount();%a++)clientGroup.getObject(%a).player.settransform(%pos);
I can't speak for the first one, but the second one would give console errors every time it came accross a dead/nonexistant player.

I can't speak for the first one, but the second one would give console errors every time it came accross a dead/nonexistant player.

Too bad, let the console give an error.  It is a quick console code, not a polished function.
If you wanted to start testing for all the exceptions, then you probably would get to the point where you simply couldn't jam it into the console.

Can someone tell me the pref command to change the port on a dedi server?

Can someone tell me the pref command to change the port on a dedi server?
$Pref::Server::Port = "theporthere";