Target Players With Point_Servercommand

  • If you're asking a question make sure to set the thread type to be a question!

Stickeyjam

L2: Junior Member
Jun 2, 2009
52
1
First of all, sorry for all the threads. I should really stick to 1 thread but I keep having questions pop into my head :O

Is it possible to target a specific player with the point_servercommand entity? For example, I have a trigger_once placed on my map. I want the server command that's executed (let's use sm_noclip as an example), to be executed on the person that tirggered it. Is that possible?

And is it even possible to have it execute Sourcemod commands?
 

Seba

DR. BIG FUCKER, PHD
aa
Jun 9, 2009
2,364
2,728
Use !activator => addoutput => [playername] on the trigger_once, then have the point_servercommand filter by name and only allow whatever name you set on the trigger_once. I believe that should work.

Oh, and since you have so many questions, just come into chat (link on top of the page) instead of making threads ;)
 

Stickeyjam

L2: Junior Member
Jun 2, 2009
52
1
So say you joined my server for the first time and your name wasn't in the filter. Could you still trigger it and get the point_servercommand to noclip you? Or can it only do it from names I provide?
 

tyler

aa
Sep 11, 2013
5,102
4,621
You wouldn't actually be creating a list of names or a filter of certain names. The game would do that dynamically.

I'm not sure how to explain it. You should ask in chat for sure.

Not that the forums are bad, but you can probably get more timely answers.
 

Stickeyjam

L2: Junior Member
Jun 2, 2009
52
1
Thanks for the help. I just need to figure out how I would write the targets name in the sourcemod command, to make it all work. Anyone know?
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,669
point_servercommand issues commands on the server. You would want point_clientcommand, which automatically targets the player who activates it.

Also, the names are entity names, they have nothing to do with player aliases.