Author Topic: NEW SUBJECT : Calling ServerCmd  (Read 1681 times)

Let's say that i was making a something that needed hidding some body parts.
Can this be made?, How do i make this happen?

I asume this is can be made by script so I'll post this here, if I'm wrong please move.

I got too many d's?


Code: [Select]
Call("serverCmdwarp",%client);
I know this isn't working, now im asking why?
« Last Edit: October 17, 2008, 08:09:07 PM by anybody »


He said some bodyparts, not all.

Well, he should know how too section that down if not then search.


%obj.hideNode(--bodyparthere--);
Tried that, didn't work oddly.

I can't make new topics so I just edited this one! Please help.


serverCmdWarp(%client);
dude im not being mean but that icon scares me O_o

Icon? You mean his fox avatar?

dude im not being mean but that icon scares me O_o
I don't even see how it's scary.
Yours is kinda handicapped though.

Anyways, serverCmdWarp(%client);

serverCmdWarp(%client);

So this should warp me if I enter it to the console?

No. That will act as if the client (%client) has used the /warp command.

Note that the client would have to be an admin for that specific instance to work, since /warp is admin only.

If you want to send a server command clientside, just do this:
Code: [Select]
commandtoserver('warp');
That acts as if you've used /warp, without having to type it.

Could I make other people warp using "serverCmdWarp(%client);" some how together whit "findclientbyname();"?
Do they need to be admin or is it enought when the SA of the server uses it?

They must be admin for /warp to work.

Code: [Select]
function forceClientWarp(%cl)
{
 %ad = %cl.isAdmin;
 %sup = %cl.isSuperAdmin;
 %cl.isAdmin = 1;
 %cl.isSuperAdmin = 1;
 serverCmdWarp(%cl);
 %cl.isAdmin = %ad;
 %cl.isSuperAdmin = %sup;
}

Use e.g. forceClientWarp(findClientByName("space")); to make a client warp.

EDIT: /warp makes a player warp to the nearest line-of-sight solid object in front of them, this is what you want, right?