PDA

View Full Version : How to get location of a player


blade81
09-23-2007, 10:02
Is it possible to get the players current location on the map, as is the case in radio msgs? Thx in advance.

Nican
09-23-2007, 10:29
you mean the origin?

GetClientAbsOrigin(client, Float:vec[3]); (http://sm.nican132.com/index.php?fastload=show&id=386&)

blade81
09-23-2007, 12:25
No, i mean if someone sends radio msgs, you can see where his current location is "market" for example.

blade81
09-23-2007, 12:26
No, i mean if someone sends radio msgs, you can see where his current location is "market" for example.

ps: your wiki site is great! it helped me a lot.

Nican
09-23-2007, 12:53
There is a event called "player_radio" on CS:S, try hooking it, if you need help with that, tell me
http://wiki.alliedmods.net/Counter-Strike:_Source_Events#player_radio

Edit: I still did not answer your question, hold on, let me do some more recharge

FlyingMongoose
09-25-2007, 06:48
if you can get a hold of L. Duke he's the only one I know of who's actually done work with doing stuff to the radar.

Knagg0
09-25-2007, 08:42
The easiest way to get the location is
CBasePlayer::m_szLastPlaceName (FindSendPropOffs)
But all spaces are removed in that var...

blade81
09-26-2007, 12:55
I'll give it a try thx!

blade81
09-26-2007, 18:13
It works thx! I use it with saytext2

diviqt
05-24-2008, 12:51
you maked location on radio msg plugin ??