Author Topic: dedicated command(s)  (Read 934 times)

i tryed and search for a dedicated server command that gives me the option to talk to players via (dedicated) conosle, yet i couldnt find it
can someone help me with the command?

EDIT: i also need a command to help me get players ID via console
« Last Edit: October 29, 2008, 01:30:00 PM by chetzs »

Code: [Select]
talk("Insert text here.");

This makes "CONSOLE" say things to players in-game.

« Last Edit: October 29, 2008, 01:30:20 PM by chetzs »

Is that a console command or a code?

i also need a command to help me get players ID via console

Use this code, where the red part is the player's name.
It'll put their ID on a new line in the console.

echo(findclientbyname(name).bl_id);

Or if you need their ID to kick them, you could just use this instead.

findclientbyname(name).delete("reason for kicking");
(This console commands works on kicking Admins/Super Admins, too.)
« Last Edit: October 29, 2008, 02:58:24 PM by Truce »

There are much easier ways to do these things. You can see a list of players on your server and their IDs using this command:

listClients();

And you can kick someone by doing:

kickID(blid);

and

banBLID(blid,bantime (-1 = permanent),reason);

Meh, I figured there'd be something like that.
I learned about talk("text"); only about a month ago.

Before that, I was using messageall('','text');

:|

Thabk you for your help

LOCKED